<!--
//////////////////////////////////////////////////////////////////////////////////////////
//function MM_reloadPage(init) 
//{  //reloads the window if Nav4 resized
//  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
//    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
//  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
//}
//////////////////////////////////////////////////////////////////////////////////////////
//MM_reloadPage(true);
//myPix = new Array("images/001.jpg","images/002.jpg","images/003.jpg","images/004.jpg","images/005.jpg","images/006.jpg","images/007.jpg")
//imgCt = myPix.length 
//////////////////////////////////////////////////////////////////////////////////////////
//function choosePic() 
//{
//		if (document.images) {
//			randomNum = Math.floor((Math.random() * imgCt))
//			document.myCollage.src = myPix[randomNum]
//		}
//	}
//////////////////////////////////////////////////////////////////////////////////////////
//function newWindow(form) 
//{
//	formWindow = window.open(form, "formWin", "width=380,height=430")
//	formWindow.focus()
//}
//////////////////////////////////////////////////////////////////////////////////////////
var winModalWindow

function ShowModalWindow(myURL,myWidth,myHeight)
{
	window.top.name='TopXT';
  if (window.showModalDialog)
  {
    window.showModalDialog(myURL, null, 'dialogWidth='+myWidth+'px;dialogHeight='+myHeight+'px;scroll=0;status=0;')
  }
  else
  {
    window.top.captureEvents (Event.CLICK|Event.FOCUS)
    window.top.onclick = IgnoreEvents
    window.top.onfocus = HandleFocus 
    winModalWindow = window.open (myURL, null, 'left=0,top=0,dependent=yes,width='+myWidth+',height='+myHeight)
    winModalWindow.focus()
  }
}

function IgnoreEvents(e)
{
  return false
}
 
function HandleFocus()
{
  if (winModalWindow)
  {
    if (!winModalWindow.closed)
    {
      winModalWindow.focus()
    }
    else
    {
      window.top.releaseEvents (Event.CLICK|Event.FOCUS)
      window.top.onclick = ''
    }
  }
  return false
}
//////////////////////////////////////////////////////////////////////////////////////////
function SubmitRequestForm() 
{
	if(!CheckRequestForm()) return;
	window.name=document.RequestForm.target;
	//document.RequestForm.encoding='multipart/form-data';
	document.RequestForm.submit();
}
////////////////////////////////////////////////////////////////////////////////////
  function CheckRequestForm() 
  {
    var myCheck = 
			CheckComplete(document.RequestForm.p21_basic_company_name, 'Company Name', 2) +
			CheckComplete(document.RequestForm.p22_basic_first_name, 'First Name', 2) +
			CheckComplete(document.RequestForm.p23_basic_last_name, 'Last Name', 2) +
			CheckComplete(document.RequestForm.p24_basic_refer_source, 'How did you hear about us?', 2) +
			CheckEmail(document.RequestForm.p26_basic_email) +
			CheckComplete(document.RequestForm.p25_basic_phone, 'Phone', 10);
		if(myCheck.length > 0)
		{
			alert(myCheck);
			return(0);
		}
    return(MyCheckRequestForm());
  }
////////////////////////////////////////////////////////////////////////////////////
function CheckComplete(source, source_name, min_length) 
{
	if (source.value.length < min_length) 
	{
		source.focus();
		return('Please verify your "' + source_name + '" information!\n');
	}
	return('');
}
//////////////////////////////////////////////////////////////////////////////////////////
function CheckEmail(email) 
{
	var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
	var check=/@[\w\-]+\./;
	var checkend=/\.[a-zA-Z]{2,3}$/;

	if(((email.value.search(exclude) != -1)||(email.value.search(check)) == -1)||(email.value.search(checkend) == -1)){
		email.focus();
		return('Please verify your Email address!\n');
	}
	else 
	{
		return('');
	}
}
//////////////////////////////////////////////////////////////////////////////////////////
function ValidatePassword(password,uname,fname,lname) {
	var exclude=/[^0-9a-zA-Z]/;
	var include1=/[0-9]/;
	var include2=/[a-zA-Z]/;
	if (password.value.length<8 || password.value.length>16 || password.value.search(exclude)!=-1 || password.value.search(include1)==-1 || password.value.search(include2)==-1 || password.value.search(uname.value)>=0 || password.value.search(fname.value)>=0 || password.value.search(lname.value)>=0) {
		password.focus();
		return('Password has to be 8 to 16 alphabetic AND numeric characters only AND not contain your First, Last or User names!\n');
	}
	return('');
}
//////////////////////////////////////////////////////////////////////////////////////////
function ValidateNumber(source, source_name) {
	var exclude=/[^0-9]/;
	if (source.value.length<1 || source.value.search(exclude)!=-1) {
		source.focus();
		return('Please verify your "' + source_name + '" information!\n');
	}
	return('');
}
//////////////////////////////////////////////////////////////////////////////////////////
function ConfirmPassword(password1,password2) {
	if (password1.value!=password2.value) {
		password1.focus();
		return('Password has not confirmed correctly!\n');
	}
	return('');
}
//////////////////////////////////////////////////////////////////////////////////////////
function ValidateName(vname, source_name, max_length) {
	var exclude=/[^0-9a-zA-Z\-\&_]/;
	if (vname.value.length<2 || vname.value.length>max_length || vname.value.search(exclude) != -1) {
		vname.focus();
		return('Please verify your "' + source_name + '" information!\n');
	}
	return('');
}
//////////////////////////////////////////////////////////////////////////////////////////
function MyOnLoad ()
{
	try
	{
		WebDex();
	}
	catch(e) {}
}
//////////////////////////////////////////////////////////////////////////////////////////
/* -- WebDex - TrafficStats web tools statistics hit counter code */
function WebDex ()
{
	var data,nhp,ntz,rf,sr,i,d=new Date(),pageName;

	// The pageName variable can be customized if needed
	pageName=location.pathname;

	document.cookie='__support_check=1';
	nhp='http';
	rf=document.referrer;sr=window.location.search;
	
	if(top.window.location==document.referrer || (document.referrer == '' && top.window.location != ''))
		{ rf=top.document.referrer;sr=top.window.location.search }
	
	ntz=new Date();
	if(location.href.substr(0,6).toLowerCase()=='https:') 
		nhp='https';
	data='&an='+escape(navigator.appName)+ 
	'&sr='+escape(sr)+'&ck='+document.cookie.length+
	'&rf='+escape(rf)+'&sl='+escape(navigator.systemLanguage)+
	'&av='+escape(navigator.appVersion)+'&l='+escape(navigator.language)+
	'&pf='+escape(navigator.platform)+'&pg='+escape(pageName);
	
	if(navigator.appVersion.substring(0,1)>'3') 
		{data=data+'&cd='+screen.colorDepth+'&rs='+escape(screen.width+' x '+screen.height)+'&tz='+ntz.getTimezoneOffset()+'&je='+ navigator.javaEnabled()};
	
	i=new Image();
	i.src=nhp+'://loc1.hitsprocessor.com/statistics.asp'+'?v=1&s=21&acct=externalit'+data+'&tks='+d.getTime();
}
/* End WebDex - TrafficStats statistics web tools hit counter code */
//////////////////////////////////////////////////////////////////////////////////////////
-->
