	<!--

	function isWin(){

	        if (navigator.appVersion.indexOf("Win") != -1)  return true;

	        else return false;

	}

	

	function isIE(){

	        if (navigator.appName == "Microsoft Internet Explorer") return true;

	        else return false;

	}

	

	function isIEPC(){

	        if (isWin() && isIE()) return true;

	        else return false;

	}



	function popem(page,winname,width,height){

	winname = window.open(page,winname,'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes');

	        if (isIEPC() != 1) {

	                winname.focus();

	        }

	}







		function change()

		{

		number = Math.floor(Math.random()*5)

		if (number==0)

		document.write('<img src="images/top_spash_1.jpg" border="0">')

		if (number==1)

		document.write('<img src="images/top_spash_2.jpg" border="0">')

		if (number==2)

		document.write('<img src="images/top_spash_3.jpg" border="0">')

		if (number==3)

		document.write('<img src="images/top_spash_4.jpg" border="0">')

		if (number==4)

		document.write('<img src="images/top_spash_5.jpg" border="0">')

		}



	function checkInput() {

     if (document.login_form.UserId.value.length == 0) {

  	alert("Login Name Required");

  	document.login_form.UserId.focus()

  	return false;

     } else if (document.login_form.Password.value.length == 0) {

  	alert("You must enter a password");

  	document.login_form.Password.focus()

  	return false;

     } else {

     	return true;

     }

}

	//-->

	

	

	

// *************** FORM VALIDATION VARIABLE DECLARATIONS *************** //

var regex_whitespace = /^\s+$/

var regex_alphabetic = /^[a-zA-Z]+$/

var regex_alphanumeric = /^[a-zA-Z0-9]+$/

var regex_integer = /^\d+$/



// remove all the spaces to restore the original regexp



var regex_email = /^.+$/

var error_location = "Pick a location";

var error_telephone = "Enter a telephone number";

var error_street1 = "Enter a street address";

var error_address2 = "";

var error_city = "Enter a city";

var error_state = "Enter a state";

var error_zip = "Enter a zip";

var error_city_state_zip = "Enter a city and state and/or a zip"

var error_email = "Enter an email address";





// *************** QUALTOOL FORM VALIDATION FUNCTIONS *************** //

// Return TRUE if "text" is empty

function isEmptyString(text) {

	return ((text == null) || (text.length == 0));

}



// Return TRUE if "text" is empty or contains whitespace characters

function isWhitespace(text) {

	return (validateEmptyString(text) || regex_whitespace.test(text));

}



// Return TRUE if "text" is comprised of integers

function isIntegerString(text) {

	return (regex_integer.test(text));

}



// Return TRUE if one element in a Radio Button group is selected



function isRadioSelected(radioGroup) {

	var length = radioGroup.length;

	if (length == 0)

		return radioGroup.checked;

	for (var i=0; i<length; i++) {

		if (radioGroup[i].checked)

			return true;

	}

	return false

}



// does not check zip+4

function isZipCode(text) {

	if (text.length < 5)

		return false;

	return isIntegerString(text.substring(0, 5));

}



function isStreetAddress(text) {

	return (!isEmptyString(text))

}



function isCity(text) {

	return (!isEmptyString(text))

}



function isState(select) {

	return (select.selectedIndex != 0)

}



function isPhoneAreaCode(text) {

	if(! (text.length == 3))

		return false;

	return isIntegerString(text)

}



// Prefix - the first 3 digits of a 7 digit phone number.

function isPhonePrefix(text){

	if(! (text.length == 3))

		return false;

	return isIntegerString(text)

}



// Extension is the last 4 digits of a 7 digit phone number

function isPhoneExtension(text) {

	if(! (text.length == 4))

		return false;

	return isIntegerString(text)

}



// Do the correct action for a validation error

function validationError(anErrorMsg, aValidationManager) {

	aValidationManager.addError(anErrorMsg);

	return false;

}



// Object for management of error messages.

function ValidationManager() {

	this.errors = [];

	this.addError = function (aString) {

		this.errors[this.errors.length] = aString;

	};

	this.displayError = function() {

		alert(this.errors.join("\n"));

	}

	this.hasError = function() {

		return this.errors.length > 0;

	}

}



// Manages the validation of the qualtool

function QualtoolValidator(aForm) {

	this.qualtoolForm = aForm;

	this.manager = new ValidationManager();

	this.error = function (aString) {

		return validationError(aString, this.manager);

	};



	this.fieldValue = function (aFieldName) {

		return this.qualtoolForm[aFieldName].value

	};



	this.validateChoice = function () {

		if (! isRadioSelected(this.qualtoolForm.choice))

			return this.error(error_location);

		return true

	};



	this.validatePhoneNumber = function () {

		var isValid = isPhoneAreaCode(this.fieldValue("npa")) &

			isPhonePrefix(this.fieldValue("nxx")) & 

			isPhoneExtension(this.fieldValue("lastfour"));

		if (!isValid )

			return this.error(error_telephone);

		return true	

	}



	this.validateAddress = function() {

		if (!isStreetAddress(this.fieldValue("street1")))

			this.error(error_street1);

	};

	

	this.validateZip = function() {

		if (!isZipCode(this.fieldValue("zip")))

			this.error(error_zip);

	};



	this.validate = function() {

		this.validateChoice();

		this.validatePhoneNumber();

		this.validateAddress();

		this.validateZip();

	};



	this.addToCookie = function(aCookie) {

		aCookie.address = this.fieldValue("street1") + "\n" + this.fieldValue("street2"); 

		aCookie.phone = this.fieldValue("npa") + this.fieldValue("nxx") + this.fieldValue("lastfour");

		aCookie.city = this.fieldValue("city");

		aCookie.state = this.qualtoolForm.state.selectedIndex;

		aCookie.zip = this.fieldValue("zip");

		for (var i = 0; i < length; i++)

			if (this.qualtoolForm.choice[i].checked)

				aCookie.choice = i;

		aCookie.store();

	}

}











//dashboard what's new

function Ultimate(Utype,Umsgs,Ucursor,Uwidth,Uheight,Ubgcolor,Ubackground,Uspeed,Udelay,Ufirst) {

		

	document.writeln('<span id="Ubox" style="position:relative;width:'+Uwidth+';height:'+Uheight+';overflow:hiden;background-color:'+Ubgcolor+' ;background-image:url('+Ubackground+')">')

	document.writeln('<div style="position:absolute;width:'+Uwidth+';height:'+Uheight+';clip:rect(0 '+Uwidth+' '+Uheight+' 0);left:0;top:0">')

	

	if (Utype==0) {

		document.writeln('<div id="Utxt" style="position:absolute;width:'+Uwidth+';left:0;top:'+Uheight+';">')

		document.write(Umsgs[Ufirst]);

		Uscroll(Utxt,Umsgs,Uheight,Uspeed,Udelay,Ufirst);

	}

	if (Utype==1) {

		document.writeln('<div id="Utxt"  style="position:absolute;width:'+Uwidth+';left:'+Uwidth+';top:0;">')

		document.write(Umsgs[Ufirst]);

		Uside(Utxt,Umsgs,Uwidth,Uspeed,Udelay,Ufirst);

	}

	if (Utype==2) {

		document.writeln('<div id="Utxt"  style="position:absolute;width:'+Uwidth+';left:'+(Uwidth*-1)+';top:0;">')

		document.write(Umsgs[Ufirst]);

		Ureverseside(Utxt,Umsgs,Uwidth,Uspeed,Udelay,Ufirst,false);

	}

	if (Utype==3) {

		document.writeln('<div id="Utxt"  style="position:absolute;width:'+Uwidth+';left:0;top:0;overflow:hiden;background-color:'+Ubgcolor+' ;">')

		document.write(Umsgs[Ufirst]);

		document.writeln('</div>')

		document.writeln('<div id="Umask"  style="position:absolute;width:'+Uwidth+';left:0;top:0;overflow:hiden;background-color:'+Ubgcolor+' ;">')

		document.write(Ucursor);

		Utouch(Utxt,Umask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ufirst,1,false);

	}

	document.writeln('</div>')

	document.writeln('</div>')

	document.writeln('</span>')

}



// Moves

function Uscroll(IDdiv,Umsgs,Uheight,Uspeed,Udelay,Ufirst){

	ttxt=eval(IDdiv);

	Ustep=eval(Ufirst);

	if (ttxt.style.pixelTop>0&&ttxt.style.pixelTop<=5){

	ttxt.style.pixelTop=0;

	setTimeout("Uscroll(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Udelay);

	return

	}

	else {

		if (ttxt.style.pixelTop>=ttxt.offsetHeight*-1){

		ttxt.style.pixelTop-=5

		setTimeout("Uscroll(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep)",Uspeed);

		return

		}

		else {

		ttxt.style.pixelTop=Uheight;

		if (Ustep>=Umsgs.length-1)

			Ustep=0

			else		

			Ustep++;

		ttxt.innerHTML=Umsgs[Ustep];

		Uscroll(ttxt,Umsgs,Uheight,Uspeed,Udelay,Ustep);

		}

	}

}



function Uside(IDdiv,Umsgs,Uwidth,Uspeed,Udelay,Ufirst){

	ttxt=eval(IDdiv);

	Ustep=eval(Ufirst);

	if (ttxt.style.pixelLeft>0&&ttxt.style.pixelLeft<=5){

	ttxt.style.pixelLeft=0;

	setTimeout("Uside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep)",Udelay);

	return

	}

	else {

		if (ttxt.style.pixelLeft>=ttxt.offsetWidth*-1){

		ttxt.style.pixelLeft-=5

		setTimeout("Uside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep)",Uspeed);

		return

		}

		else {

		ttxt.style.pixelLeft=Uwidth;

		if (Ustep>=Umsgs.length-1)

			Ustep=0

			else		

			Ustep++;

		ttxt.innerHTML=Umsgs[Ustep];

		Uside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep);

		}

	}

}



function Ureverseside(IDdiv,Umsgs,Uwidth,Uspeed,Udelay,Ufirst,stop){

	ttxt=eval(IDdiv);

	Ustep=eval(Ufirst);

	if (ttxt.style.pixelLeft>0&&ttxt.style.pixelLeft<=5&&(!stop)) {

	setTimeout("Ureverseside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep,true)",Udelay);

	return

	}

	else {

		if (ttxt.style.pixelLeft<ttxt.offsetWidth){

		ttxt.style.pixelLeft+=5;

		setTimeout("Ureverseside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep)",Uspeed);

		return

		}

		else {

		ttxt.style.pixelLeft=Uwidth*-1;

		if (Ustep>=Umsgs.length-1)

			Ustep=0

			else		

			Ustep++;

		ttxt.innerHTML=Umsgs[Ustep];

		Ureverseside(ttxt,Umsgs,Uwidth,Uspeed,Udelay,Ustep);

		}

	}

}



function Utouch(IDdiv,IDmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ufirst,Ufirstsens,stop){

	ttxt=eval(IDdiv);

	tmask=eval(IDmask);

	Ustep=eval(Ufirst);

	Usens=eval(Ufirstsens);

	if (tmask.style.pixelLeft>Uwidth){

	tmask.style.pixelLeft=Uwidth;

	setTimeout("Utouch(ttxt,tmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ustep,-1)",Udelay);

	return

	}

	else if (tmask.style.pixelLeft>=-5&&tmask.style.pixelLeft<0&&(!stop)){

	tmask.style.pixelLeft=-5;

	if (Ustep>=Umsgs.length-1)

			Ustep=0

			else		

			Ustep++;

	ttxt.innerHTML=Umsgs[Ustep];

	setTimeout("Utouch(ttxt,tmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ustep,1,true)",Udelay);

	return

	}

	else {

		tmask.style.pixelLeft+=(5*Usens);

		setTimeout("Utouch(ttxt,tmask,Umsgs,Ucursor,Uwidth,Uspeed,Udelay,Ustep,Usens)",Uspeed);

		return

	}

}





//dashboard what's new





