gSTR_PRODUCT_INQUIRYLIST="Product Inquiry List";gSRT_PREPARE_ORDER="Prepare Order";gSTR_PLACE_ORDER="Place Order";gSTR_SELECT_DISTI="Select Distributor";gSTR_REVIEW_TRANSFER_LIST="Review and Transfer List";var str_browser;var int_version;var show;var hide;var str_DOMDocument;str_browser=navigator.appName;int_version=navigator.appVersion;if(str_browser=="Microsoft Internet Explorer"){if(int_version.indexOf("MSIE 5")!=-1){str_browser="ie";int_version="5"}if(int_version.indexOf("MSIE 4")!=-1){str_browser="ie";int_version="4"}if(int_version.indexOf("MSIE 3")!=-1){str_browser="ie";int_version="3"}else{str_browser="ie";int_version="0"}}else{if(str_browser=="Netscape"){if(parseInt(int_version)==5){str_browser="nn";int_version="5"}else{if(parseInt(int_version)==4){str_browser="nn";int_version="4"}else{if(parseInt(int_version)==3){str_browser="nn";int_version="3"}else{if(parseInt(int_version)==2){str_browser="nn";int_version="2"}else{str_browser="nn";int_version="0"}}}}}}if(str_browser=="ie"){str_DOMDocument="document.all"}else{if(str_browser=="nn"){if(int_version==5){str_DOMDocument="document.getElementById"}else{str_DOMDocument="document.layers"}}}if(str_browser=="ie"){show="visible";hide="hidden"}else{if(str_browser=="nn"&&int_version=="5"){show="visible";hide="hidden"}else{show="show";hide="hide"}if(str_browser=="nn"){}window.captureEvents(Event.RESIZE);window.onresize=reloadDoc}function reloadDoc(){parent.location.reload()}var gOR_popup=new Object();gOR_popup.OR_popupWindow=null;gOR_popup.bool_isModal=false;gOR_popup.setProperties=function(){this.OR_popupWindow=null;this.bool_isModal=false};function OpenWindow(d,f,i,a,g,h,c,e,b){gOR_popup.setProperties();gOR_popup.bool_isModal=false;gOR_popup.OR_popupWindow=window.open(d,f,"width="+i+",height="+a+",menubar="+g+",toolbar="+h+",status="+c+",resizeable="+e+",scrollbars="+b)}function OpenModalWindow(f,d,h,e,c,b,g,a){gOR_popup.setProperties();gOR_popup.bool_isModal=true;if(str_browser=="ie"){gOR_popup.OR_popupWindow=this.showModalDialog(f,h,("'dialogWidth:"+e+";dialogHeight:"+c+";center:"+a+"'"))}else{OpenWindow(f,d,e,c,0,0,0,0,0);gOR_popup.OR_popupWindow.captureEvents(Event.BLUR);gOR_popup.OR_popupWindow.onblur=function(){gOR_popup.OR_popupWindow.focus()}}}function pickStyleSheet(){if(navigator.appVersion.indexOf("Mac")!=-1){return"../css/ie_main.css"}else{if(navigator.appVersion.indexOf("X11")!=-1){return"../css/ie_main.css"}else{if(str_browser=="nn"){return"../css/nn_main.css"}else{return"../css/ie_main.css"}}}}function introspect(b){var c;var a="Properties key/vals:\n";for(c in b){a+=(c+" = "+b[c]+"\n")}return a}function isAnObject(){return(typeof this=="object")?true:false}function isAnArray(){return(typeof this=="object"&&this.length>=0)?true:false}function isObjectAssigned(){return(this.isAnObject()&&this!=null)?true:false}function changeElementContent(str_id,arb_content,str_state){if(str_browser=="ie"){eval(str_DOMDocument+"."+str_id+".innerHTML = '"+arb_content+"'")}}Array.prototype.setIndexToNull=setIndexToNull;function setIndexToNull(a){this[a]=null}String.prototype.bool_isNull=bool_isNull;function bool_isNull(){return(this=="null")?true:false}function rolloverObject(c,b,a,d){this.imageReference=c;this.normalState=new Image();this.rolloverState=new Image();this.rolloverText=d;this.normalState.src=b;this.rolloverState.src=a}rolloverObject.prototype.over=mouseOverCommand;rolloverObject.prototype.out=mouseOutCommand;rolloverObject.prototype.swapImage=swapImage;function mouseOverCommand(){document.images[this.imageReference].src=this.rolloverState.src;setWindowStatus(this.rolloverText);return true}function mouseOutCommand(){document.images[this.imageReference].src=this.normalState.src;setWindowStatus(" ");return true}function setWindowStatus(a){self.status=a}function swapImage(a,b){document.images[this.imageReference].src=a;document.images[this.imageReference].name=b}function swapContent(str_domId,str_state,int_top,int_left){var str_domElement=(str_browser=="ie")?(str_DOMDocument+"."+str_domId+".style."):(str_DOMDocument+"."+str_domId+".");eval(str_domElement+"visibility="+str_state);if(str_state=="show"||str_state=="hide"){eval(str_domElement+"top="+int_top);eval(str_domElement+"left="+int_left)}}function increaseFormTextFieldNumeric(a){var b=a.value;a.value=((b-0)+1)}function decreaseFormTextFieldNumeric(a){var b=a.value;if(b>0){a.value=((b-0)-1)}}function clearFormElementValues(){var b;if(arguments[0].isAnArray()){b=arguments[0]}else{if(arguments.length>=1){b=arguments}}for(var a=0;a<b.length;a++){b[a].value=""}b=null}function forceFormElementFocus(a){if(!a.focus()){a.focus()}}function getFormattedRequestString(c,d){var a="";for(var b=0;b<c.length;b++){if(c[b]!=null){a+=(c[b]+d)}}return a}function getFormElementTypePositions(f,b){var e=new Array();var d=f.length;for(var c=0,a=0;c<d;c++){if(f[c].type==b){e[a]=c;a++}}return e}function registerFormFieldsForEvents(OA_frmElements,str_action,R_eventFunction){for(var i=0;i<OA_formElements.length;i++){eval("OA_frmElements[i]."+str_action+"= handler")}}function handler(e){if(str_browser=="ie"){e=window.event;eval(R_eventFunction);e.cancelBubble=true}else{if(str_browser=="nn"){if((e.which-0)==13){eval(R_eventFunction)}}}}function getRequestStringOneToMany(f,e,d){var c=f;for(var b=0,a=0;b<e.length;b++){if(e[b]!=null){c+=e[b];c+=(a<e.length-1)?d:"";a++}}return c}function getRequestOneToOne(f,e,d){var c=f;for(var b=0,a=0;b<e.length;b++){if(e[b]!=null){c+=e[b];c+=d;a++}}return c}function setObjectProperty(c,b,a){c[b]=a}function closeSelf(){if(str_browser=="ie"){self.close()}else{}}function validateLength(b,a){if(b.length<=a){return true}else{return false}}function validateSearchForm(b){var d=b.value;if(d==""){alert("Please specify query string.");b.focus();return false}var a=d.split(" ");for(var c=0;c<a.length;c++){if(a[c].charAt(0)=="*"||a[c].charAt(0)=="?"){alert('Search word cannot start with "*" or "?".');b.focus();return false}}if(!validateLength(d,256)){alert("Please enter a search string less than 256 characters long.");b.focus();return false}return true}function resizeMiniList(){if(!document.getElementById("MiniList")){return}if(navigator.appName=="Microsoft Internet Explorer"){document.getElementById("MiniList").style.height=window.frames.MiniList.document.body.scrollHeight}};
