// function defaultSetups(){ document.searchForm.keyword.focus(); };; function clearKeyword(formPath){ if (formPath.value == 'Product Search') { formPath.value = ""; } };; function defaultSetups2(){ document.advancedSearch.keyword.focus(); };; function clearKeyword2(formPath){ if (formPath.value == 'Keyword') { formPath.value = ""; } };; // var popupWin; function openWin(windowURL,windowName,wit,hite,scroll) { var winH = (screen.height - hite) / 2; var winW = (screen.width - wit) / 2; popupWin = window.open( windowURL, windowName, "menubar=no,status=no,toolbar=no,location=no,scrollbars="+scroll+",screenx=1,screeny=1,width=" + wit + ",height=" + hite + ",top="+winH+",left="+winW); popupWin.focus(); };; // function toggleAll() { var sa = document.getElementById("chkViewAll"); var ch = sa.checked; toggleQuestions(ch); } function toggleQuestion(tName, qName, aName) { var title = document.getElementById(tName); if (title == null) return; var ans = document.getElementById(aName); if (ans == null) return; var que = document.getElementById(qName); if (ans.style.display == '') { if (que != null) que.style.display = 'none'; ans.style.display = 'none'; var sa = document.getElementById("chkViewAll"); sa.checked = false; } else { if (que != null) que.style.display = ''; ans.style.display = ''; } } function expandQuestion(tName, qName, aName) { var title = document.getElementById(tName); if (title == null) return; var ans = document.getElementById(aName); if (ans == null) return; var que = document.getElementById(qName); if (que != null) que.style.display = ''; ans.style.display = ''; } function collapseQuestion(tName, qName, aName) { var title = document.getElementById(tName); if (title == null) return; var ans = document.getElementById(aName); if (ans == null) return; var que = document.getElementById(qName); if (que != null) que.style.display = 'none'; ans.style.display = 'none'; } // if(window.attachEvent) window.attachEvent("onload",setListeners); function setListeners(){ inputList = document.getElementsByTagName("INPUT"); for(i=0;i