	function checkThis() {
		if (trim(document.tform.fname.value) == ""){
			alert("Please enter your first name.");
			document.tform.fname.focus();
			return false;
		} else if (trim(document.tform.lname.value) == ""){
			alert("Please enter your last name.");
			document.tform.lname.focus();
			return false;
		} else if (!isEmail(document.tform.email.value)){
			alert("Please enter a valid email address.");
			document.tform.email.focus();
			return false;
		} else if (!isPhone(document.tform.phone.value)) {
			alert("Please enter your telephone number, including area code.");
			document.tform.phone.focus();
			return false;
		} else if (trim(document.tform.city.value) == ""){
			alert("Please enter your city.");
			document.tform.city.focus();
			return false;		
		} else if (trim(document.tform.state.value) == "0"){
			alert("Please select your state.");
			document.tform.state.focus();
			return false;
		} else if (document.tform.country.value == 'US' && !isZip(document.tform.zip.value)){
			alert("Please enter a valid zipcode.");
			document.tform.zip.focus();
			return false;	
		} else if (!isPassword(document.tform.password.value)) {
			alert("Your password must be between 6 and 10 letters and numbers only.");
			document.tform.password.focus();
			return false;
		} else {
			document.tform.phone.value=formatPhone(document.tform.phone.value);
			return true;
		} 
	}

		function trim(strText) { 
		    while (strText.substring(0,1) == ' ') 
		        strText = strText.substring(1, strText.length);
		    while (strText.substring(strText.length-1,strText.length) == ' ')
		        strText = strText.substring(0, strText.length-1);
		   return strText;
		}
		function isZip(string){
			var num= removeNums(string);
			if (num.length <5 || num.length >9)
				return false;
			else
				return true;
		}
		function removeNums(string) {
		    for (var i=0, output='', valid="0123456789"; i<string.length; i++)
		       if (valid.indexOf(string.charAt(i)) != -1)
		          output += string.charAt(i)
		    return output;
		}		
		function isEmail(string) {
		    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		        return true;
		    else
		        return false;
		}
		function isPassword(string) {
	if (string.length < 6 || string.length > 10)
		return false;
	else if (removeChars2(string) != string )
		return false;
	else
		return true;
	}
	function removeChars2(string) {
	    for (var i=0, output='', valid="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; i<string.length; i++)
	       if (valid.indexOf(string.charAt(i)) != -1)
	          output += string.charAt(i)
	    return output;
	}
	function isPhone(string){
	var num= removeNums(string);
		if (num.length != 10 )
			return false;
		else
			return true;
	}
	function formatPhone(string) {
		var string= removeNums(string);
		var fphone= string.substring(0,3) + '/' + string.substring(3,6) + '-' + string.substring(6,10);
		return fphone
	}