var AppPath="";function SearchSubmit(){if(document.getElementById("IMS_Header1_GoogleSearchSelection").checked){window.location.href=AppPath+"/Public/GoogleSearchInputTextBox.htm?Search="+document.getElementById("IMS_Header1_input").value}if(document.getElementById("IMS_Header1_MoldingSearchSelection").checked){return"IMSSearch"}if(document.getElementById("IMS_Header1_MRODataSearchSelection").checked){return"MROSearch"}return" "}function ExtendSession(){setTimeout(ExtendSession,1020000);IMS_Web_Gold.UserControls.IMS_Header.ExtendSession("parameter",ExtendSession_CallBack)}function ExtendSession_CallBack(a){}function EnterKeyPressed(a){if(window.event){keynum=a.keyCode}else{if(a&&a.which){keynum=a.which}}if(keynum==13&&document.getElementById("IMS_Header1_input")){document.getElementById("IMS_Header1_input").click()}}function ThreeCharsOrMore(){document.getElementById("IMS_Header1_input").value=Trim(document.getElementById("IMS_Header1_input").value);if(document.getElementById("IMS_Header1_input").value.length>=3){return true}else{document.getElementById("IMS_Header1_errorLabel").innerHTML="Please enter 3 or more characters to search";return false}}function Trim(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function DetectCookies(){var a=new Date();chkcookie=(a.getTime()+"");document.cookie="chkcookie="+chkcookie+"; path=/";if(document.cookie.indexOf(chkcookie,0)<0){document.getElementById("NoCookiesLabel").style.display=""}};
