function companyCheck(formName){ a = document.forms[formName]; //frmAccount if(checkString(a.companyName, "Bedrijfsnaam")&& checkString(a.phone, "Telefoon")&& checkIfFilled(a.fax,"Fax","phone")&& //checkString(a.www, "Internetadres")&& checkEmail(a.Email, "e-Mailadres algemeen")){ return true; } else{return false} } function regularAddressCheck(formName){ a = document.forms[formName]; if(checkString(a.address, "Adres")&& checkString(a.homeNumber, "Huisnummer")&& checkString(a.zipcode, "postcode")&& checkString(a.city, "Plaats")&& checkString(a.country, "Land")){ return true; } else{return false} } function postAddressCheck(formName){ a = document.forms[formName]; if(checkString(a.faddress, "Adres")&& checkString(a.fhomeNumber, "Huisnummer")&& checkString(a.fzipcode, "postcode")&& checkString(a.fcity, "Plaats")&& checkString(a.fcountry, "Land")){ return true; } else{return false} } function contactCheck(formName){ a = document.forms[formName]; if(checkBoxChecked(a.gender, "Aanhef")&& checkString(a.firstName, "Voornaam")&& checkString(a.lastName, "Achternaam")&& checkString(a.mobile, "Mobiel telefoonnummer")&& checkEmail(a.emailcontact, "e-Mailadres")){ return true; } else{return false} } function ReferenceCheck(formName){ a = document.forms[formName]; if(checkString(a.Reference, "Media Referentie")){ return true; } else{return false} } function checkForm(formName) { if( companyCheck(formName) && regularAddressCheck(formName) && postAddressCheck(formName) && contactCheck(formName) && ReferenceCheck(formName) && CheckPassword(formName) && CheckUserName(formName) ) { return true; } else { return false } } function CheckUserName(formName) { var a = document.forms[formName]; if (checkString(a.username, "gebruikersnaam")) { return true; } else { return false; } } function CheckPassword(formName) { var a = document.forms[formName]; if (a.password.value != "" && (a.password.value == a.password2.value)) { return true; } else { alert('U moet 2 keer het zelfde wachtwoord invoeren'); return false; } } function copyPostToRegular(formName){ a = document.forms[formName]; a.faddress.value = a.address.value; a.fhomeNumber.value = a.homeNumber.value; a.fhomeNumberAddition.value = a.homeNumberAddition.value; a.fzipcode.value = a.zipcode.value; a.fcity.value = a.city.value; a.fcountry.selectedIndex = a.country.selectedIndex; } function resetClassname(name){ name.className = "validCreateAccountField"; //document.getElementById("formHelper").style.display = "none"; } var menu; var theTop = 10; var old = theTop; function movemenu() { document.getElementById("formHelper").style.display = ""; if (window.innerHeight) { pos = window.pageYOffset } else if (document.documentElement && document.documentElement.scrollTop) { pos = document.documentElement.scrollTop } else if (document.body) { pos = document.body.scrollTop } if (pos < theTop) pos = theTop; else pos += 10; if (pos == old) { } document.getElementById("formHelper").style.top = pos; old = pos; } // javachecks for Login en Mail function LoginChk(){ if(checkString(document.frmLogin.username,"Gebruikersnaam")&& checkString(document.frmLogin.password,"Wachtwoord")){ return true; } else{ return false; } } function MaillistChk(){ if(checkEmail(document.frmMaillist.Email,"e-Mailadres")){ return true; } else{ return false; } } function logOff(){ // redirect to Loginpage document.location = "/internet/Login/Login.asp?Action=logoff"; } var errorWin = null function openErrorWindow(){ if(errorWin && errorWin && !errorWin.closed){ errorWin.focus();errorWin.document.location.reload();} else{ errorWin = window.open("/system/help/errorWindow.asp","help","height=200,width=250,top=10,left=10,resizable=no,scrollbars=yes") errorWin.focus(); } }