/* Extranet Login Functionalityfunction Login(){	var done=0;	var username=document.login.username.value;	username=username.toLowerCase();	var password=document.login.password.value;	password=password.toLowerCase();	window.location="clients/" + username + "/" + password + ".html";	if (document.login.username.value == "" || document.login.password.value == "") {    alert("You did not enter a valid\nUser Name and/or Password.\n \nPlease try again.");  }}*///POPUP WINDOW FUNCTIONfunction OpenBrWindow(theURL,winName,features) {   window.open(theURL,winName,features);}// Extranet Login Clear Fieldsfunction clearFields(){document.login.reset();}// Netscape CSS Window Resize Bug Fix// Doesn't work if there is Flash on the page!NS4 = document.layers;		if (NS4) {   		origWidth = innerWidth;   		origHeight = innerHeight;}function reDo() {   if (innerWidth != origWidth || innerHeight != origHeight)       location.reload();}if (NS4) onresize = reDo;// Form validationfunction checkrequired(which) {var pass=true;if (document.images) {for (i=0;i<which.length;i++) {var tempobj=which.elements[i];if (tempobj.name.substring(0,8)=="required") {if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==0)) {pass=false;break;         }      }   }}if (!pass) {shortFieldName=tempobj.name.substring(8,30).toUpperCase();alert("Please make sure the "+shortFieldName+" field was properly completed.");return false;}elsereturn true;}// Form Check Requiredfunction checkName(field) {	if (field.value == "") { 		alert("Please enter a full name");      field.focus();      field.blur();      field.select();  }  else {   if (field.value.split(" ").length < 2) {    alert("Please enter a full name");      field.focus();      field.blur();      field.select();    }  }}function checkEmail(field) {	if (field.value.indexOf("@") == -1) {    alert("Please enter a valid e-mail address");      field.focus();      field.blur();      field.select();  }}	function checkPhone(field) {  if (field.value == "") {   alert("Please enter a phone number!");     field.focus();     field.blur();     field.select();  }}