function hidebutton(btn,frm)
{
document.getElementById(btn).disabled = true;
document.getElementById(btn).value = '..Please wait...';
document.getElementById(frm).submit();
}
function sure(url)
{
if(confirm('ARE YOU SURE?'))
{
window.location = url;
}
}

function toggle(what)
{
var status = document.getElementById(what).style.display;
if(status == 'none')
{
document.getElementById(what).style.display = 'block';
}
else
{
document.getElementById(what).style.display = 'none';
}
}

//used by navi on the left side of site
function leftnavi(which, parents)//which gets expand, parents get reset
{
p = parents.split(';');
len = p.length;
for(x = 0; x < len; x++)
{
if(p[x] != '')
{
document.getElementById(p[x]).style.display = 'none';
}
}
document.getElementById(which).style.display = 'block';
}
