/******************************************************************************************** 
	This page consists of functions which will be used in most of the pages.
********************************************************************************************/
<!--
function checkLogin()
{
	if (notBlank(document.sessionForm.SESSION_EXPIRED.value)==false)
	{
		parent.window.location='login.asp'
	}
	else
	{
		document.sessionForm.SESSION_EXPIRED.value= "Session still valid"
	}
}


function disp_confirm()
{
	var name=confirm("Are you sure you wish to logoff?")
	if (name==true)
	{
		
		parent.window.location='logoff.asp';
	}
	else
	{
	}
}

function mmLoadMenus() {
  if (window.mm_menu_0) return;
  window.mm_menu_0 = new Menu("root",145,22,"Verdana, Arial, Helvetica, sans-serif",10,"#336688","#ffffff","#ffffff","#003063","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0.addMenuItem("Bryce 3D","location='vendor.asp?VendorName=Bryce3D'");
  mm_menu_0.addMenuItem("Heulab","location='vendor.asp?VendorName=Heulab'");
  mm_menu_0.addMenuItem("LCSI","location='vendor.asp?VendorName=LCSI'");

   mm_menu_0.hideOnMouseOut=true;
   mm_menu_0.menuBorder=1;
   mm_menu_0.menuLiteBgColor='#ffffff';
   mm_menu_0.menuBorderBgColor='#336688';
   mm_menu_0.bgColor='#336688';

    mm_menu_0.writeMenus();
} // mmLoadMenus()

function notBlank(thisstring)
	{
	if (thisstring == "")
			{
			return false
			}
return true
}

function numericOnly(thisstring)
	{
  	var ch = "";
	for (i = 0; i < thisstring.length; i++) {
	ch = thisstring.charAt(i);
	if (ch < "0" || ch > "9")
			{
			return false
			}
	}
return true
}

function alphaOnly(thisstring)
	{
  	var ch = "";
	for (i = 0; i < thisstring.length; i++) {
	ch = thisstring.charAt(i);
	if ( ((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch))  && ch != "-" && ch != " ")
			{
			return false
			}
	}
return true
}

function phoneOnly(thisstring)
	{
  	var ch = "";
	for (i = 0; i < thisstring.length; i++) {
	ch = thisstring.charAt(i);
	if ((ch < "0" || ch > "9") && ch != " ")
			{
			return false
			}
	}
return true
}

//-->
