function goSubmit(form) { if (!form.InsuredName.value) { alert("Please fill in the Insured's name"); form.InsuredName.focus(); return false; } if (!form.PersonToContact.value) { alert("Please fill in the Person to Contact"); form.PersonToContact.focus(); return false; } if (!form.AreaCode.value) { alert("Please fill in the Area Code"); form.AreaCode.focus(); return false; } if (!form.ContactPhone.value) { alert("Please fill in the Telephone Number"); form.ContactPhone.focus(); return false; } if (form.ContactEmail.value) { if (!validEmail(form.ContactEmail.value)) { form.ContactEmail.focus(); return false; } } if (!form.ProducerBroker.value) { alert("Please fill in the Producer/Broker"); form.ProducerBroker.focus(); return false; } if (!form.ContactName.value) { alert("Please fill in the Contact Name"); form.ContactName.focus(); return false; } if (!form.LossDate.value) { alert("Please fill in the Date of Loss"); form.LossDate.focus(); return false; } if (form.LossDate.value) { if (!validDate(form.LossDate.value)) { form.LossDate.focus(); return false; } } if (!form.LossDesc.value) { alert("Please fill in the Loss Description"); form.LossDesc.focus(); return false; } if (!form.ReporterName.value) { alert("Please fill in the Reported by"); form.ReporterName.focus(); return false; } if (!form.ReporterPhone.value) { alert("Please fill in the reporter's Telephone number"); form.ReporterPhone.focus(); return false; } if (!form.ReporterEmail.value) { alert("Please fill in the reporter's Email Address"); form.ReporterEmail.focus(); return false; } if (!validEmail(form.ReporterEmail.value)) { form.ReporterEmail.focus(); return false; } //alert( document.getElementById( "test" ).action ); setActionProp(); return true; } function setActionProp() { var formVal = document.getElementById( "test" ); var ip = "10.10.10.218"; var docid = "9bbb977c4a6e72d5882567c900601ab2" var cmd = "?CreateDocument" formVal.action = "http://" + ip + "/claimsOnline/claimsonline.nsf/" + docid + cmd; }