////////////////////////////////////////////////////////////////////
// xps_942BBB7A-776C-4283-B45E-AD4F73B6E3D0.js SCRIPTS - CREATED ON 1/17/2008
// Copyright 2008 XenoWize LLC
////////////////////////////////////////////////////////////////////
//Empty Check
function emptyCheck(sValue, sFieldName, sNoShow) {
	//Convert to string if nessasary - MAS 2002-12-04
	sCheck = new String(sValue);
	bError = false;
	
	//Remove spaces and then check length
	var spaceExp = new RegExp('(\\s)+', 'g');
	sCheck = sCheck.replace(spaceExp , '');
	if (sCheck.length==0) {
	  //There are still chars in the string after removing the spaces.
	  bError = true;
	}
	
	if ( (bError) && (sNoShow!='NO_SHOW') ) {
	  popMessage(sFieldName + ' must not be empty.','VALIDATION');
	}
	
	return bError;
}
function popMessage(sMessage, sType) {
	if (sType=='VALIDATION') {
	  alert('Validation Error:\n\n' + sMessage);
	}else{
	  alert(sMessage);
	}
}

//Submit Form
function submit_form()
{
  var nErrors = 0;
  nErrors = nErrors + emptyCheck(document.all('EMAIL').value, 'Email');
  nErrors = nErrors + emptyCheck(document.all('USER_PASSWORD').value, 'Password');
          ////////////////////////////////////////////////////
      if (nErrors<1) {
           document.all('form1').submit();
     }
}
//Google Analytics
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

var pageTracker = _gat._getTracker("UA-3426332-2");
pageTracker._initData();
pageTracker._trackPageview();

