function validEmail(email) { invalidChars = " /:,;" if (email == "") { return false } for (i=0; i email.length) { return false } return true } function Validate(theForm) { if (theForm.txtWebName.value == "") { alert("Please enter the name of your website."); theForm.txtWebName.focus(); return (false); } if (theForm.txtWebURL.value == "") { alert("Please enter the URL of your website."); theForm.txtWebURL.focus(); return (false); } if (theForm.txtWebURL.value.substring(0,7)!="http://") { if (theForm.txtWebURL.value.substring(0,8)!="https://"){ alert("The URL must start with http://"); theForm.txtWebURL.focus(); return (false); } } if (theForm.txtKeywords.value == "") { alert("Please enter keywords that describe your website."); theForm.txtKeywords.focus(); return (false); } if (theForm.txtWebDesc.value == "") { alert("Please enter a description of your website."); theForm.txtWebDesc.focus(); return (false); } if (theForm.ddCategory.options[theForm.ddCategory.selectedIndex].value=="") { alert("Please choose a category for your website."); theForm.ddCategory.focus(); return (false); } if (theForm.txtFirstName.value == "") { alert("Please enter the first name of the company's authorized representative."); theForm.txtFirstName.focus(); return (false); } if (theForm.txtLastName.value == "") { alert("Please enter the last name of the company's authorized representative."); theForm.txtLastName.focus(); return (false); } if (theForm.txtPhone.value == "") { alert("Please enter the phone number of the company's authorized representative."); theForm.txtPhone.focus(); return (false); } if (theForm.txtEmail.value == "") { alert("Please enter the e-mail address of the company's authorized representative."); theForm.txtEmail.focus(); return (false); } if (!validEmail(theForm.txtEmail.value)) { alert(document.forms[0].txtEmail.value + " does not appear to be a valid email address. Please enter your full email address."); theForm.txtEmail.focus(); return (false); } if (theForm.txtCompany.value == "") { alert("Please enter the name of your company."); theForm.txtCompany.focus(); return (false); } if (theForm.txtPhone1.value == "") { alert("Please enter the phone number for your company."); theForm.txtPhone1.focus(); return (false); } if (theForm.txtAddress1.value == "") { alert("Please enter your company's address."); theForm.txtAddress1.focus(); return (false); } if (theForm.txtCity.value == "") { alert("Please enter the city for your company's address."); theForm.txtCity.focus(); return (false); } if (theForm.txtState.value == "") { alert("Please enter the state for your company's address."); theForm.txtState.focus(); return (false); } if (theForm.txtZip.value == "") { alert("Please enter the zip for your company's address."); theForm.txtZip.focus(); return (false); } if (theForm.txtUserID.value == "") { alert("Please enter a UserID that will be used to manage your account."); theForm.txtUserID.focus(); return (false); } if (theForm.txtUserID.value.length < 6) { alert("Please enter a UserID that is at least 6 characters."); theForm.txtUserID.focus(); return (false); } if (theForm.txtPassword.value == "") { alert("Please enter a password."); theForm.txtPassword.focus(); return (false); } if (theForm.txtPassword.value.length < 6) { alert("Please enter a Password that is at least 6 characters."); theForm.txtPassword.focus(); return (false); } if (theForm.txtPasswordConfirm.value !=theForm.txtPassword.value) { alert("Your repeated password did not match the password field. Please reenter you password."); document.forms[0].txtPassword.value = ""; document.forms[0].txtPasswordConfirm.value = ""; theForm.txtPassword.focus(); return (false); } } function makevisible(cur,which) { if (which==0) cur.filters.alpha.opacity=37 else cur.filters.alpha.opacity=100 } opacityFadeObjects = new Object(); opacityFadeTimers = new Object(); function opacityFade(object, destOp, rate, delta){ if (!document.all) return if (object != "[object]"){ setTimeout("opacityFade("+object+","+destOp+","+rate+","+delta+")",0); return; } clearTimeout(opacityFadeTimers[object.sourceIndex]); diff = destOp-object.filters.alpha.opacity; direction = 1; if (object.filters.alpha.opacity > destOp){ direction = -1; } delta=Math.min(direction*diff,delta); object.filters.alpha.opacity+=direction*delta; if (object.filters.alpha.opacity != destOp){ opacityFadeObjects[object.sourceIndex]=object; opacityFadeTimers[object.sourceIndex]=setTimeout("opacityFade(opacityFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate); } if (object.filters.alpha.opacity == 0) { object.style.visibility='hidden'; } } function formsubmit(op) { alert ("hi"); document.cookie="Op="+op; document.forms[0].submit(); } function AffiliateApprove(form) { document.frmMerchantResponse.ApproveAffiliate.value="yes"; document.frmMerchantResponse.submit; } function AffiliateDecline(form) { document.frmMerchantResponse.ApproveAffiliate.value="no"; document.frmMerchantResponse.submit; } function ForwardIfNotSecure() { if(document.location.protocol != "https:") { document.location = "https://" + "www.linkconnector.com" + document.location.pathname + document.location.search; } }