function noship(oForm){
//alert(oForm.name);
	var counter = oForm.length;
	var errstr= "";	
    if (oForm.shopper_first_name.value.length == 0) {
		errstr += "First Name field cannot be empty. \n";
	} else {
		if ( !isValidName(oForm.shopper_first_name.value) ) {
			errstr += "First Name does not appear to be a valid name. \n";	
		}
	}
	
   //alert(errstr);
    if (oForm.shopper_last_name.value.length == 0) {
		errstr += "Last Name field cannot be empty. \n";
	} else {
		if ( !isValidName(oForm.shopper_last_name.value) ) {
			errstr += "Last Name does not appear to be a valid name. \n";	
		}
	}
   
    if (oForm.shopper_address1.value.length == 0) {errstr += "Street Address field cannot be empty. \n";}
    if (oForm.shopper_city.value.length == 0) {errstr += "City field cannot be empty. \n";}
    if (oForm.shopper_zip.value.length == 0){errstr += "Zip Code field cannot be empty. \n";}
	 
  /*  if (oForm.shopper_phone1.value.length == 0) {errstr += "Phone field cannot be empty. \n";}
    if (oForm.shopper_email.value.length == 0) {errstr += "Email field cannot be empty. \n";}*/
	 
	
	var sState = oForm.shopper_state.options[oForm.shopper_state.selectedIndex].value;
	//var sCountry = oForm.shopper_country.options[0].value;
	//alert(sState.length);
	//if (sCountry=="US") {		
		
		if (oForm.shopper_state.options.length > 0){
			if (sState == " "){
				errstr += "State field cannot be empty. \n";
			}
		}
		if (oForm.shopper_phone1.value.length == 0) {errstr += "Phone field cannot be empty. \n";}
    
		//alert(errstr);
		var sPh = stripNonNumeric(oForm.shopper_phone1.value);
		if ((sPh.length<10)&& (sPh.length>0)){
			errstr += "Phone number should include area code + seven digits. \n";
		}		
		var sZ=stripNonNumeric(oForm.shopper_zip.value);
		//alert(sZ);
		//var retZip = checkZip(oForm.shopper_zip);
		if (sZ.length == 0){
			errstr+="U.S. Zip codes have either 5 or 9 digits.\n Canadian postal codes have either 6 or 7 characters.\n";
		}
	   //}
	 //alert(errstr);
	 if (oForm.shopper_email.value.length == 0) {errstr += "Email field cannot be empty. \n";}
	if (!isValidEmail(oForm.shopper_email.value)) {
		errstr += "Email must be in standard internet format e.g. name@domain.com' \n";
	}
	
	var sMembership = oForm.shopper_membership.options[oForm.shopper_membership.selectedIndex].value;
	 if (oForm.shopper_membership.options.length > 0){
			if (sMembership == " "){
				errstr += "Select a membership type. \n";
			} else if(sMembership != "N"){
				if(oForm.shopper_number.value.length == 0){
					errstr += "Enter a membership number. \n";
				}
			} 
			
		}

	 if (oForm.shopper_username.length==0){
	 	errstr += "Username field cannot be empty. \n";
	 }
    if (oForm.shopper_password!=null){
		if (oForm.shopper_password.value.length == 0) {errstr += "Password field cannot be empty. \n";}
		if (oForm.shopper_password2.value.length == 0) {errstr += "Password confirmation cannot be empty. \n";}
		if (oForm.shopper_password2.value != oForm.shopper_password.value) {errstr += "Password entries do not match.. \n";}
    } else  {
		if (oForm.shopper_password_old!=null){
			if (oForm.shopper_password_old.value.length == 0) {errstr += "Password field cannot be empty for changes to be accepted. \n";}
		}
    }
	 

	 
    if (errstr.length > 0){
	 	errstr += "\n Please correct the errors and try again.  Thank you. \n"; 
		alert(errstr); 
		return false;
	} else {
		return true;
	}
   //alert(errstr);
	
}

function getdropdowns() {
	for (var i = 0; i < document.oForm.shopper_state.length; i++){
		if (document.oForm.shopper_state[i].value == "") {
			document.oForm.shopper_state.options.selectedIndex = i;
		}
	}
}
function nolookup(oForm){
 
     var passYN  = true;
     var counter = oForm.length;
     var errstr= "";
    if (oForm.shopper_email.value.length == 0) {errstr += "Email field cannot be empty. \n";}
	if (!isValidEmail(oForm.shopper_email.value)) {errstr += "Email must be in standard internet format e.g. name@domain.com' \n";}
    if (oForm.shopper_password!=null){
		if ((oForm.shopper_password.value.length == 0)&& (!oForm.forgotten.checked)) {errstr += "Password field cannot be empty. \n";}
    } 
    if (errstr.length > 0){errstr += "\n Please correct the errors and try again.  Thank you. \n"; alert(errstr); passYN = false;}
    return passYN;
}

