<!--
		function validEmail(email) {
			invalidChars = " /:,;"
	
			if (email == "") {						// cannot be empty
				return false
			}
			for (i=0; i<invalidChars.length; i++) {	// does it contain any invalid characters?
				badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) > -1) {
					return false
				}
			}
			atPos = email.indexOf("@",1)			// there must be one "@" symbol
			if (atPos == -1) {
				return false
			}
			if (email.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
				return false
			}
			periodPos = email.indexOf(".",atPos)
			if (periodPos == -1) {					// and at least one "." after the "@"
				return false
			}
			if (periodPos+3 > email.length)	{		// must be at least 2 characters after the "."
				return false
			}
			return true
		}
		
		function submitIt(myForm) {
		   //check first name
		   if (myForm.txtFirstName.value == "") {
				alert("Please enter your first name")
				myForm.txtFirstName.focus()
				return false
			}

		  //check last name
		   if (myForm.txtLastName.value == "") {
				alert("Please enter your last name")
				myForm.txtLastName.focus()
				return false
			}	
          	
			// check to see if the email's valid
			if (!validEmail(myForm.txtEmail.value)) {
				alert("Invalid Email Address")
				myForm.txtEmail.focus()
				myForm.txtEmail.select()
				return false
			}		
			
			
			//check phone number
	        if (myForm.txtPhone.value == "") {
				alert("Please enter your phone number")
				myForm.txtPhone.focus()
				return false
			}
                    
		//check address 
	        if (myForm.txtAddress1.value == "") {
				alert("Please enter your mailing address 1")
		        myForm.txtAddress1.focus()
				return false
			}
          
          //check city 
	        if (myForm.txtCity.value == "") {
				alert("Please enter city name")
				myForm.txtCity.focus()
				return false
			}
			
			//check state
			 if (myForm.optState.selectedIndex == 0) {
             alert("Please choose a state")
             return false
			}

	      //check zip
	        if (myForm.txtZip.value == "") {
            alert("Please enter Zip Code")
            myForm.txtZip.focus()
		    return false
			}

	                
	     	//check country
			 if (myForm.optCountry.selectedIndex == 0) {
             alert("Please choose a country or region")
             return false
			}
				
			// everything's valid
			 return true
		}


// -->