document.write(''); document.write('
'); document.write(''); function validate_error(error) { if (error.length == 0) return true; else { var delimiter = "--------------------------------------------------------------------------------"; var heading = "Errors were Detected!\n\n"; alert(delimiter+"\n"+heading+error+delimiter); return false; } } var wm_jumpedToLocation = 0; function wm_requireValue(field,label,required,error,type) { str = wm_getValue(field,type); if (str.length == 0) { if (wm_jumpedToLocation == 0) { wmGetField(field).focus(); wm_jumpedToLocation = 1; } error = error+"The Field \""+label+"\" requires a value\n"; } return error; } var error = ''; function wmSubFormValidSubmit(page,subpage) { switch (page) { case 1: error = wm_requireValue('title','Title','true',error,'list'); error = wm_requireValue('lname','Last Name','true',error,'text'); error = wm_requireValue('surname','sURNAME','true',error,'text'); error = wm_requireValue('age','Age','true',error,'text'); error = wm_requireValue('dateofbirth','DateofBirth','true',error,'text'); error = wm_requireValue('address2','Address2','true',error,'text'); error = wm_requireValue('zip','Zip','true',error,'text'); error = wm_requireValue('visitor_email1','Email','true',error,'text'); error = wm_requireValue('telephone','Telephone','true',error,'text'); error = wm_requireValue('fname1','First Name','true',error,'text'); error = wm_requireValue('fax','Fax','true',error,'text'); error = wm_requireValue('relastionshipto','Relastionshipto','true',error,'text'); error = wm_requireValue('comments','Comments','true',error,'textarea'); error = wm_requireValue('secondcoursetit','Secondcoursetit','true',error,'text'); error = wm_requireValue('telushereabouta','Telushereabouta','true',error,'textarea'); error = wm_requireValue('tellushereifyou','Tellushereifyou','true',error,'textarea'); error = wm_requireValue('thefullfeeformy','Thefullfeeformy','true',error,'text'); error = wm_requireValue('iwishtopayby','Iwishtopayby','true',error,'menu'); error = wm_requireValue('cc_name','CC Name','true',error,'text'); wm_jumpedToLocation = 0; break;} error_alert = error; error = ''; if (error_alert.length == 0 && subpage == 0) wmDisableSubmitButtons(); return validate_error(error_alert); };function wmFormValidSubmit() { return wmSubFormValidSubmit(1,0);};function wmNotifyClicked(field) { if (typeof(wmNotifiedClicked) == "undefined") { wmNotifiedClicked = new Array();} wmNotifiedClicked.push(field);};function wmDisableSubmitButtons() { if (typeof(wmNotifiedClicked) == "undefined") { return; } else { for (i=0;i