// form handling // functions var special = false; function clearTextbox(textbox) { if(textbox.value == textbox.defaultValue) { textbox.value = ""; textbox.style.color = "#515151"; //textbox.onclick = ""; } return true; } function highlightFormrow(rowid) { document.all[rowid].style.backgroundColor = "#FFFFFF"; } function checkContactchoice() { if ( document.contactchoice.contacttype.selectedIndex > 1 && !document.contactchoice.kiehlgb.value ) { alert( msg['selectCompany'] ); } return false; } function chooseKiehlgb(num) { document.contactchoice.kiehlgb[num].checked = true; } // support functions function checkSupportchoice() { if ( document.supportchoice.application.selectedIndex == 0 && document.supportchoice.product.selectedIndex == 0 && special == false) { var msgtext = msg['selectOnlinesupport']; alert(msgtext); return false; } else { return true; } } function chooseSupport(type) { special = false; document.supportchoice.supporttype.value = type; if(type == "product") { document.supportchoice.application.selectedIndex = 0; } if(type == "application") { document.supportchoice.product.selectedIndex = 0; } document.supportchoice.submit(); } function chooseSpecialsupport() { special = true; document.supportchoice.supporttype.value = "special"; document.supportchoice.application.selectedIndex = 0; document.supportchoice.product.selectedIndex = 0; document.supportchoice.submit(); } // seminar functions var dateIsChosen = false; function checkSeminarchoice() { var check = false; if ((!document.seminarappointment.seminar) && (document.seminarappointment.seminar.length > 1)) { var msgtext = msg['selectSeminar']; alert(msgtext); check = false; } else { if(dateIsChosen == true) { check = true; } else { var msgtext = msg['selectSeminardate']; alert(msgtext); } } return check; } function chooseDate(num) { dateIsChosen = true; chooseSeminar(num); } function chooseSeminar(seminarNum) { if(document.seminarappointment.seminar.length > 1) { document.seminarappointment.seminar[seminarNum].checked = true; } } function choosePrice(num) { document.seminardata.price[num].checked = true; }