function partnerLogin() { if(document.all.username.value=="") { alert("You have to enter a username!"); return; } if(document.all.password.value=="") { alert("You have to enter a password!"); return; } document.all.redirectto.value=location; document.all.loginForm.submit(); } function validateSearch() { if(document.all.SearchString.value=="") { alert("You have to enter a search string!"); return; } document.all.searchForm.submit(); } function validateDownloadForm() { return validateContactInformation(); } function validateTestCodeForm() { conValid = validateContactInformation(); if(conValid == false) return false; return validateLicenseInformation(); } function validateLicenseInformation() { if(document.all.LicenseType.options[document.all.LicenseType.selectedIndex].value=="") { alert("You have to choose a license type!"); return false; } if(document.all.Model.value=="") { alert("You have to enter a model!"); return false; } if(document.all.ProcFeature.value=="") { alert("You have to enter a processor feature!"); return false; } if(document.all.SerialNumber.value=="") { alert("You have to enter a serial number!"); return false; } if(document.all.FormVersion.options[document.all.FormVersion.selectedIndex].value=="") { alert("You have to choose a version!"); return false; } } function validateContactInformation() { if(document.all.Company.value=="") { alert("You have to enter a company!"); return false; } if(document.all.Address.value=="") { alert("You have to enter an address!"); return false; } if(document.all.PostalCode.value=="") { alert("You have to enter a postal code!"); return false; } if(document.all.City.value=="") { alert("You have to enter a city!"); return false; } if(document.all.Country.value=="") { alert("You have to enter a country!"); return false; } if(document.all.ContactPerson.value=="") { alert("You have to enter a contact person!"); return false; } if(document.all.Phone.value=="") { alert("You have to enter a phone number!"); return false; } if(document.all.Email.value=="") { alert("You have to enter an e-mail address!"); return false; } return true; } function openPrintWindow() { newWindow=window.open(orgPath+'&Print', 'print'); newWindow.focus(); newWindow.print(); }