﻿function menuRedirect(url){window.location.href=url}function menuRedirectPathname(url){var host=window.location.protocol+"//"+window.location.host;window.location.href=host+url}function myPopup(url,name,width,height){var settings="titlebar=no,toolbar=no,location=no,directories=no,"+"status=no,menubar=no,scrollbars=yes,"+"resizable=yes,width="+width+",height="+height;window.open(url,name,settings)}function genericPopup(name,width,height){if(typeof(height)=="undefined"){var height="200"}if(typeof(width)=="undefined"){var width="400"}var settings="titlebar=no,toolbar=no,location=no,directories=no,"+"status=no,menubar=yes,scrollbars=yes,"+"resizable=no,width="+width+",height="+height+"screenX=100,screenY=100";window.open("",name,settings)}function discPopup(url,name,width,height){var settings="titlebar=0,toolbar=no,location=0,directories=no,"+"status=no,menubar=no,scrollbars=no,"+"resizable=no,width="+width+",height="+height;var newWindow=window.open(url,name,settings)}function ClearChecksClick(){var inputs=document.forms[0].getElementsByTagName("input");for(var i=0;i<inputs.length;i++){var currentInput=inputs[i];var currentID=inputs[i].id;if(currentID.match("chkSelect")!=null){currentInput.checked=false}}}var globalFlag="";function PrintThisPage(){globalFlag="print";CallServer("print","")}function LookUpExample(){var lb=document.getElementById("_listBox");if(lb.selectedIndex>=0){var product=lb.options[lb.selectedIndex].text;globalFlag="lookup";CallServer(product,"")}}function ReceiveServerData(ret){if(globalFlag=="lookup"){document.getElementById("ResultsSpan").innerHTML=ret}else{if(ret!=null&&ret!=""){var features="toolbar=yes,location=no,directories=yes,menubar=yes,";features+="scrollbars=yes,width=750,height=600,left=100,top=25";var win=window.open("","",features);win.document.open();win.document.write('<HTML><link href="/App_Themes/eMarketplace%20-%20Default/Styles.css" type="text/css" rel="stylesheet" /><body>');win.document.write(ret);win.document.write("<br><input type=\"button\" value=\"Print this page\" onclick=\"javascript:window.print();\" />");win.document.write('</body></html>');win.document.close();win.focus()}}}function btnDisable(myButton,message){if(message==undefined){message="Please wait..."}if(!myButton.disabled){document.getElementById(myButton.id).removeAttribute('href');myButton.style.textDecoration='none';myButton.setAttribute('onclick','');myButton.style.cursor='default';myButton.disabled=true;myButton.innerHTML=message;return true}else{return false}}
