function popup(mypage, myname, w, h, scroll) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' win = window.open(mypage, myname, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } function ValidateForm(formname) { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if(formname=="buyerregistration.asp") { if (document.form.company.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Company"; x = x + 1; } if (document.form.contact.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Contact"; x = x + 1; } if (document.form.address1.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Address1"; x = x + 1; } if (document.form.city.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "City"; x = x + 1; } if (document.form.state.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "State"; x = x + 1; } if (document.form.zip.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Zip"; x = x + 1; } if (document.form.phone.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Phone"; x = x + 1; } if (document.form.email.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Email"; x = x + 1; } if (document.form.type.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Store Type"; x = x + 1; } if (document.form.volume.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Annual Volume"; x = x + 1; } if (document.form.buyer1.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "At Least 1 Buyer"; x = x + 1; } if (document.form.agree.checked != true) { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "You Must Agree to the Buyer Admission Policy and Guidelines"; x = x + 1; } } if(formname=="contact.asp") { if (document.form.name.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Name"; x = x + 1; } if (document.form.company.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Company"; x = x + 1; } if (document.form.phone.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Phone"; x = x + 1; } if (document.form.email.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Email"; x = x + 1; } if (document.form.subject.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Subject"; x = x + 1; } if (document.form.comments.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Comments"; x = x + 1; } } if(formname=="housing.asp") { if (document.form.company.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Company"; x = x + 1; } if (document.form.contact.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Contact"; x = x + 1; } if (document.form.address.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Address"; x = x + 1; } if (document.form.city.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "City"; x = x + 1; } if (document.form.state.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "State"; x = x + 1; } if (document.form.zip.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Zip"; x = x + 1; } if (document.form.phone1.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Phone1"; x = x + 1; } if (document.form.email.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Email"; x = x + 1; } if (document.form.type.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Request Type (Exhibitor, Buyer, Rep)"; x = x + 1; } if (document.form.for1.value == "" || document.form.checkin1.value == "" || document.form.checkout1.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "At Least 1 Reservation (Name, Check-In Date, Check-Out Date, etc)"; x = x + 1; } if (document.form.numrooms.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Total Rooms"; x = x + 1; } } if(formname=="processrequest.asp") { if (document.form.cctype.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "CC Type"; x = x + 1; } if (document.form.ccnumber.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "CC Number"; x = x + 1; } if (document.form.ccexpires.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "CC Expires"; x = x + 1; } } if (x == 0) { document.form.submit(); } else { alert(alertmsg); return false; } } function GetDirections() { var x; var alertmsg; x=0; alertmsg = "The following fields are required: "; if (document.form1.location.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Location"; x = x + 1; } if (document.form1.fromstreet.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Street"; x = x + 1; } if (document.form1.fromzip.value == "") { if (x > 0){alertmsg = alertmsg + ", ";} alertmsg = alertmsg + "Your Zip"; x = x + 1; } if (x == 0) { document.form1.submit(); } else { alert(alertmsg); return false; } } function borderit(which,color){ if (document.all||document.getElementById) { which.style.borderColor=color } }