

function refresh()
{
	var sURL = unescape(window.location.pathname);
	
	//  This version of the refresh function will cause a new
	//  entry in the visitor's history.  It is provided for
	//  those browsers that only support JavaScript 1.0.
	//
	window.location.href = sURL;
}

function clickButton(e, buttonid)
{ 
	var bt = document.getElementById(buttonid); 
	if (typeof bt == 'object')
	{ 
		if(navigator.appName.indexOf("Netscape")>(-1))
		{ 
			if (e.keyCode == 13)
			{
				bt.click(); 
				return false; 
			} 
		} 
		if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
		{ 
			if (event.keyCode == 13)
			{ 
				bt.click(); 
				return false; 
			} 
		} 
	} 
}

function CheckAllCheckBoxes(checkboxvalue, aspCheckBoxName)
{	
	var checkvalue = true;
		
	for(i = 0; i < document.forms[0].elements.length; i++)
	{					
		elm = document.forms[0].elements[i]

		if (elm.type == 'checkbox')
		{
			if (checkboxvalue == elm.value)
			{
				if (elm.name == aspCheckBoxName)
					checkvalue = elm.checked
				
				elm.checked = checkvalue
			}																	
		}					
	}
}

function UncheckHeaderCheckBox(checkboxvalue, aspCheckBoxName)
{
	for(i = 0; i < document.forms[0].elements.length; i++)
	{					
		elm = document.forms[0].elements[i]

		if (elm.type == 'checkbox')
		{
			if (checkboxvalue == elm.value)
			{
				if (elm.name == aspCheckBoxName)
					elm.checked = false;
			}																	
		}					
	}							
}

function YesNo(LabelID)
{	
	var checkvalue = true;
		
	elm = document.getElementById(LabelID)

	if (elm.innerHTML == 'yes')
	{
		elm.innerHTML = 'no'																
	}
	else
	{
		elm.innerHTML = 'yes'	
	}				
}
