function remspaces(what) {
        result=""
        for (x=0;x<=what.length;x++) {
                if (what.substring(x,x+1) != " ") {
                    result=result+what.substring(x,x+1)
                }
        }
        return result
}
function everythingok() {
with (document.contact) {
	  testing=remspaces(keycode.value)
	  if (testing.length == 0 || testing=="") {
		  alert("Please enter your Key Code")
		  return false
	  }
	  testing=remspaces(fname.value)
	  if (testing.length == 0 || testing=="") {
		  alert("Please enter your Name")
		  return false
	  }

	  testing=remspaces(company.value)
	  if (testing.length == 0 || testing=="") {
		  alert("Please enter your Company")
		  return false
	  }
	  testing=remspaces(address1.value)
	  if (testing.length == 0 || testing=="") {
		  alert("Please enter your Address")
		  return false
	  }
	  testing=remspaces(city.value)
	  if (testing.length == 0 || testing=="") {
		  alert("Please enter your City ")
		  return false
	  }
	  testing=remspaces(state.value)
	  if (testing.length == 0 || testing=="") {
		  alert("Please enter your State")
		  return false
	  }
	  testing=remspaces(zip.value)
	  if (testing.length == 0 || testing=="" || testing.length<5 ) {
		  alert("Please enter your Zip Code")
		  return false
	  }
	  return true
 }
}


