Sure..thanks for looking at it. I left the window.alerts as they were.
Code:function checkInputs() { if (document.forms[0].address.value == "" || document.forms[0].city.value == "" || document.forms[0].state.value == "" || document.forms[0].country.value == "" || document.forms[0].post.value == "" || document.forms[0].phone.value == "" ){ window.alert('Missing data'); return false;} if(document.forms[0].post.value.length !=5 ) { window.alert('Not a valid United States Postal Code \nPostal code should have five digits'); return false;} if(document.forms[0].phone.value.length !=10 ) { window.alert('Not a valid United States phone number \nPhone number should have 10 digits'); return false;} { window.alert('All fields successfully entered'); return true; } } function confirmReset() { var resetForm = window.confirm('Are your sure you want to reset this form?'); if (resetForm == true){ return true;} return false; }




Reply With Quote