function checkForm( form ){
    //alert("checking")
    // Written by Tammie Springs, email tsprings@biblesoft.com with any questions.
    var errors = '';
        
				
		if (/^([0-9]{5})$/.test(form.zip.value)){} // do nothing
    else if(form.zip.value == "") 
		{
		    if(form.city.value == "")
        		errors += "- must contain a city/state or zip\n";
    }
		else
		{
		    if(form.city.value == "")
           errors += "- invalid zip\n";     
    }				
		

		RemoveBad(form)
		
    // Output any errors or submit page
    if (errors)
    {
         alert('The following error(s) occurred:\n'+errors);
         return false;
    }
    else
        return true;
} 

function RemoveBad(form) {
    form.city.value = form.city.value.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,"");
		form.zip.value = form.zip.value.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,"");
}