// function defaultSetups(){ document.searchForm.keyword.focus(); };; function clearKeyword(formPath){ if (formPath.value == 'Product Search') { 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(); };; // /*window.onload = onLoad; function onLoad() { var sa = document.getElementById("chkViewAll"); sa.checked = false; }*/ function toggleAll() { var sa = document.getElementById("chkViewAll"); var ch = sa.checked; toggleQuestions(ch); } function toggleQuestions(checked) { var secCount = 5; var faqEntryCount = 30; for(var j=1; j<=secCount; j++) { for (var i=1; i<=faqEntryCount; i++) { var title = document.getElementById("title" + j + i); if(checked == true) expandQuestion("title" + j + i, "question" + j +i, "answer" + j + i); else collapseQuestion("title" + j + i, "question" + j +i, "answer" + j + i); } } if(checked == false) { var sa = document.getElementById("chkViewAll"); sa.checked = false; } } 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