whats wrong with this? Im trying to do an if statement and dont know javascript
<script Language="JavaScript">
<!--
function saveInformation(){
if (Validator()) then {
document.ContactInfo.action="/exhibitparts/store/checkout/contact_info.asp?action=save";
document.ContactInfo.submit();
}
}
function Validator() {
if (document.ContactInfo.Name.value == "") {
alert("Please enter a value for the \"Contact Name\" field.");
document.ContactInfo.Name.focus();
return (false);
}
return true;
}
//-->
</script>
Brad
Edited by - redbrad0 on 07 May 2001 17:38:59