// this function validates the gender box for the free report sign up. function valbutton(thisform) { // validate radio button set, Checkbox0Gender myOption = -1; for (i=thisform.Checkbox0Gender.length-1; i > -1; i--) { if (thisform.Checkbox0Gender[i].checked) { myOption = i; i = -1; } } if (myOption == -1) { alert("Oops! You forgot to select your gender. Please select either Male or Female."); return false; } //alert("You selected button number " + myOption + " which has a value of " + thisform.Checkbox0Gender[myOption].value); thisform.submit(); // this line submits the form after validation } // POPUP Window function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=600,height=600,left=420,top=50');"); }