<!-- Hiding script from browsers that don't understand JavaScript
function cancel(where){
	document.body.from_page.value = ""
	gChanged=""
	go(document.body, where)
}
function goSection(x){
	if (validate()){
		document.body.regbody.value = x
		document.body.from_page.value = "reg"
		gChanged="1"
		go(document.body, 'reg')
	}
}
function validate(){
	var allValid = 1
	if (allValid == 1){
		if (!requiredOK(true, document.body.name)){
			alert("Please enter your name.")
			fieldSelect(document.body.name)
			allValid = 0
		 }
	}
	document.body.addr1.value = document.body.addr1.value.toUpperCase()
	document.body.addr2.value = document.body.addr2.value.toUpperCase()
	document.body.city.value = document.body.city.value.toUpperCase()
	document.body.state.value = document.body.state.value.toUpperCase()
	document.body.zip.value = document.body.zip.value.toUpperCase()
	/**************** ADDRESS VALIDATION ************************/
	if (allValid == 1){
		if (!requiredOK(true, document.body.addr1) && !requiredOK(true, document.body.addr2)){
			alert("Please supply at least one line of valid Street Address.")
			fieldSelect(document.body.addr1)
			allValid = 0
		}
	}
	if (allValid == 1){
		if (!requiredOK(true, document.body.city)){
			alert("Please enter a valid City.")
			fieldSelect(document.body.city)
			allValid = 0
		}
	}
	if (allValid == 1){
		var c = selectedItem(document.body.country).toUpperCase()
		if (c == "UNITED STATES" || c == "USA"){
			if (!requiredOK(true, document.body.state)){
				alert("Please enter a valid State Abbreviation.")
				fieldSelect(document.body.state)
				allValid = 0
			}else{
				if (!isUSState(document.body.state)){
					fieldSelect(document.body.state)
					allValid = 0
				}else{document.body.state.value = document.body.state.value.toUpperCase()}
			}
			if (allValid == 1){
				document.body.zip.value = stripAlpha(document.body.zip.value)
				if (!requiredOK(true, document.body.zip)){
					alert("Please enter a valid Postal/ZIP Code.")
					fieldSelect(document.body.zip)
					allValid = 0
				}else{
					if (!zipOK(document.body.zip.value)){
						fieldSelect(document.body.zip)
						allValid = 0
					}
				}
			}
		}
	}
	if (allValid == 1){
		if (!requiredOK(true, document.body.company)){
			alert("Please enter a valid Company Name.")
			fieldSelect(document.body.company)
			allValid = 0
		}
	}
	if (allValid == 1){
		if (!emailOK(document.body.email.value)){
			fieldSelect(document.body.email)
			allValid = 0
		}else if (isEmpty(document.body.email.value)){
    			alert("Please provide an Email Address.")
    			fieldSelect(document.body.email)
    			allValid = 0
		}
	}
	if (allValid == 1){
		if (!requiredOK(true, document.body.phone1)){
			alert("Please enter a valid Phone Number.")
			fieldSelect(document.body.phone1)
			allValid = 0
		}
	}
	if (allValid == 1){
		if (!requiredOK(false, document.body.phone2)){
			alert("Please enter a valid Fax Number.")
			fieldSelect(document.body.phone2)
			allValid = 0
		}
	}
	if (allValid == 1){
		if (!requiredOK(false, document.body.phone3)){
			alert("Please enter a valid Mobile Number.")
			fieldSelect(document.body.phone3)
			allValid = 0
		}
	}
	return allValid;
}
function save(where){
	if (validate()){
		document.body.from_page.value = "reg"
		gChanged="1"
		go(document.body, where)
	}
}
//End script hiding-->
