<!-- 

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function showMenu(menuAction,menuName) {
	if (menuAction=="click") {
		hideAllMenus();
		MM_showHideLayers(menuName,'','show');
		menusAreOn=true;
	} else if (menuAction=="over" && menusAreOn==true) {
		hideAllMenus();
		MM_showHideLayers(menuName,'','show');
	} else if (menuAction=="out") {
		MM_showHideLayers(menuName,'','hide');
		setTimeout("hideAllMenus2()", 8000);
	}
}

function hideAllMenus2() {
	hideAllMenus();
	menusAreOn=false;
}
function hideAllMenus() {
	nd();
	MM_showHideLayers('divCustomersMenu','','hide');
	MM_showHideLayers('divProjectsMenu','','hide');
	MM_showHideLayers('divTicketsMenu','','hide');
	MM_showHideLayers('divAdminMenu','','hide');
}
function hideMenu(menuName) {
	MM_showHideLayers(menuName,'','hide')
	customersMenuOn=false
}
function menuOn(menuItem,onOff) {
	obj1= document.getElementById(menuItem);
	if (obj1) {
	if (onOff) {
	obj1.style.borderLeft="5px solid #0000FF";
	obj1.style.cursor="hand";
	} else {
	obj1.style.borderLeft="5px solid #ACA899";
	obj1.style.cursor="hand";	
	} }
}


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function isValidFile(file){
	var ext = file.substr(file.lastIndexOf('.')).toLowerCase()
	return '.pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.zip,.ppt,.tif,.gif,.gif'.indexOf(ext+',') >= 0
}
// Validates a login
function FrmValidLogIn(theForm) {
 if (theForm.userEmail.value =="")  {
    alert("Please enter an Email Address.");
    theForm.userEmail.focus();
    return (false);
	} else {
	if(emailCheck(theForm.userEmail.value))	{
	} else {
    theForm.userEmail.focus();
    return (false);
	}
	} if (theForm.userPassword.value =="") {
    alert("Please enter a Password.");
    theForm.userPassword.focus();
    return (false);
  }
 if (validatePW(theForm.userPassword.value) || (theForm.userPassword.value.length<5 || theForm.userPassword.value.length>15)){
		alert("Passwords must be between 5 and 15 characters long, and can only contain letters, numbers, and underscores");
    theForm.userPassword.focus();
    return (false);
	}
	if(isNaN(theForm.userPassword.value))	{
	} else {
    alert("For security reasons Passwords cannot be all numbers.");
    theForm.userPassword.focus();
    return (false);
	}
}
// Validates password
function validatePW(newPW) {
	var pw = newPW;
	tomatch = /^[a-zA-Z0-9_]+$/;  //regular expression shortcut would be /^\w+$/
	if (!tomatch.test(pw)) {		
		return true;
	} 
	return false;
}
function validateUN(newUN) {
	var un = newUN;
	tomatch = /[a-zA-Z0-9_]+$/;  //regular expression shortcut would be /^\w+$/
	if (!tomatch.test(un)) {		
		return true;
	} 
	return false;
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}
-->