
function getmsbrowser()
{
	window.open("http://www.microsoft.com/windows/ie/","MicrosoftWebsite","toolbar=yes,menubar=yes,status=no,scrollbars=yes,resizable=yes,width=780,height=525")
}

function getmobrowser()
{
	window.open("http://www.getfirefox.com/","MozillaWebsite","toolbar=yes,menubar=yes,status=no,scrollbars=yes,resizable=yes,width=780,height=525")
}

function gowebsite(theurl)
{
	window.open(theurl,"","toolbar=yes,menubar=yes,status=no,scrollbars=yes,resizable=yes,width=780,height=525")
}

function printlink(item, id)
{
	window.open("print.asp?item=" + item + "&id=" + id,"Service","toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width=780,height=525")
}

function helpbutton(tag, topic)
{
	window.open("help.asp?tag=" + tag + " &topic=" + topic, "Help","toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no,width=350,height=500")
}

function outoforder()
{
	alert("The function you are trying to access is temporarily disabled due to system maintenance");
}

function trim(TRIM_VALUE)
{
	if(TRIM_VALUE.length < 1)
	{
	return "";
	}
	
	TRIM_VALUE = RTrim(TRIM_VALUE);
	TRIM_VALUE = LTrim(TRIM_VALUE);

	if(TRIM_VALUE=="")
	{
		return "";
	}
	else
	{
		return TRIM_VALUE;
	}
} //End Function

function RTrim(VALUE)
{
	var w_space = String.fromCharCode(32);
	var v_length = VALUE.length;
	var strTemp = "";
	if(v_length < 0)
	{
		return "";
	}

	var iTemp = v_length -1;

	while(iTemp > -1)
	{
		if(VALUE.charAt(iTemp) == w_space)
		{
		}
		else
		{
			strTemp = VALUE.substring(0,iTemp +1);
			break;
		}
	
		iTemp = iTemp-1;

	} //End While	

	return strTemp;

} //End Function

function LTrim(VALUE)
{
	var w_space = String.fromCharCode(32);
	if(v_length < 1)
	{
		return "";
	}

	var v_length = VALUE.length;
	var strTemp = "";

	var iTemp = 0;

	while(iTemp < v_length)
	{
		if(VALUE.charAt(iTemp) == w_space)
		{
		}
		else
		{
			strTemp = VALUE.substring(iTemp,v_length);
			break;
		}
		iTemp = iTemp + 1;
	} //End While

	return strTemp;

} //End Function

function registerbutton(webpage)
{	
		document.sectionform.action = webpage		
		document.sectionform.submit()
		return true
}


