function navigateToURL(sURL){window.location.href=sURL;};function buyProductNow(sProductRefID){navigateToURL("https://"+sSiteName+"/is-bin/BuyNow/"+sProductRefID);return false;};function addToMayBe(sProductRefID){navigateToURL("https://"+sSiteName+"/is-bin/AddToMayBe/"+sProductRefID);return false;};function trimWhiteSpaces(str){return str.replace(/^\s*|\s*$/g,"");};function cleanSearchString(str){return str.replace("&","").replace("#","").replace(/^\s*|\s*$/g,"").replace(/|\$|\@|\,|\~|\`|\%|\*|\^|\&|\(|\)|\+|\=|\[|\-|\_|\]|\}|\{|\;|\:|\'|\"|\<|\>|\||\\|\!|\$|\./g,"").replace("\?"," ").replace("\."," ").replace("\""," ").replace("`"," ").replace("!"," ").replace("@"," ").replace("$"," ").replace("\^"," ").replace("*"," ").replace("("," ").replace(")"," ").replace("_"," ").replace("+"," ").replace("="," ").replace(","," ").replace("~"," ").replace("["," ").replace("]"," ").replace("}"," ").replace("{"," ").replace(";"," ").replace(":"," ").replace("<"," ").replace(">"," ").replace("\\"," ");};function openWin(fileName,windowName){window.open(fileName,windowName,'width=350,height=350,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no');};function clearBox(box){if(box.value==box.defaultValue){box.value="";}};function addProductToShoppingList(){var newLocation="http://"+sSiteName+"/is-bin/INTERSHOP.enfinity/eTS/Store/en/-/USD/ViewShoppingList-AddProduct?ProductRefID="+sProductRefID+"&Quantity="+quantity;window.location.href=newLocation;};function popNotifyMe(ProductRefID){sPopAction="https://"+sSiteName+"/is-bin/INTERSHOP.enfinity/eTS/Store/en/-/USD/ViewAlerts-CreateAlert?InStockFlag=on&ProductRefID="+ProductRefID;w=650;h=400;lft=(screen.width-w)/2;tp=(screen.height-h)/2;upViewAllwin=window.open(sPopAction,'NotifyMe','width='+w+',height='+h+',scrollbars=yes,location=no,toolbar=no,status=no,menubar=no, left='+lft+',top='+tp);upViewAllwin.focus();};function getStyleObject(objectId){if(document.getElementById&&document.getElementById(objectId)){return document.getElementById(objectId).style;}else if(document.all&&document.all(objectId)){return document.all(objectId).style;}else{return false;}};function getElement(objectId){if(document.getElementById&&document.getElementById(objectId)){return document.getElementById(objectId);}else if(document.all&&document.all(objectId)){return document.all(objectId);}else{return false;}};function continueShopping(){var myCatName=_gck('LCN');if(myCatName!=""){var myCatPage=_gck('LCP');if(myCatPage==null)myCatPage='';document.location='http://'+sSiteName+'/is-bin/Catalog/'+myCatName+'/'+myCatPage;}else{document.location='http://'+sSiteName+'/is-bin/'}};function popupRequestInfo(sku){window.open('http://'+sSiteName+'/is-bin/RequestMoreInfo/'+sku,'RequestInfo',"width=750,height=500,scrollbars=yes");return false;};function popupEmailtofriend(sku){window.open('http://'+sSiteName+'/is-bin/EmailAFriend/'+sku,'RequestInfo',"width=750,height=725,scrollbars=yes");return false;};function Suggested_Wording_popup(){var newLocation="http://"+sSiteName+"/is-bin/INTERSHOP.enfinity/eCS/Store/en/-/USD/ViewAssistance-Start?Template=wording/popup.isml&subassist=shipping";window.open(newLocation,'Suggested_Wording',"width=575,height=500,scrollbars=yes");return false;};function Suggested_Wording_popup_direct(sURL){window.open(sURL,'Suggested_Wording',"width=575,height=500,scrollbars=yes");return false;};function showPleasewaitLayer(obj){obj.offsetParent.innerHTML='<div id="roundbttn_pleasewait">PLEASE WAIT ...</div>';};function chkQty(inputQty,availQty){if(IsNumeric(inputQty)){if(inputQty>availQty){alert("Order Quantity should be less then or equal to Quantity Left!");}else if(inputQty<=0)alert("Order quantity should be greater than 0!");else return true;}else alert("Order quantity should be numeric!");return false;};function IsNumeric(sText){var ValidChars="0123456789.";var IsNumber=true;var Char;for(i=0;i<sText.length&&IsNumber==true;i++){Char=sText.charAt(i);if(ValidChars.indexOf(Char)== -1){IsNumber=false;}}return IsNumber;};function showLayer(divLayer){if(document.getElementById){openStr='document.getElementById("';closeStr='").style';}if(document.all){openStr='document.all.';closeStr='.style';}eval(openStr+divLayer+closeStr).visibility='visible';eval(openStr+divLayer+closeStr).display='block';};function clearDefault(el){if(el.defaultValue==el.value)el.value=""};function Calendar_popup(){calCheckDate.popup();return false;};function URLEncode(plaintext){var SAFECHARS="0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"-_.!~*'()";var HEX="0123456789ABCDEF";var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" "){encoded+="+";}else if(SAFECHARS.indexOf(ch)!= -1){encoded+=ch;}else{var charCode=ch.charCodeAt(0);if(charCode>255){alert("Unicode Character '"+ch+"' cannot be encoded using standard URL encoding.\n"+"(URL encoding only supports 8-bit characters.)\n"+"A space (+) will be substituted.");encoded+="+";}else{encoded+="%";encoded+=HEX.charAt((charCode>>4)&0xF);encoded+=HEX.charAt(charCode&0xF);}}}return encoded;};function showSpecialInstructionTextInArea(flgType,objid){objta=document.getElementById(objid);str1="Paper Style has permission to make suggestions and typeset for best appearance, grammatical correctness and social etiquette!";str2="Paper Style is not to alter or change my wording, but edit for grammatical correctness!";str3="Paper Style has permission to make suggestions (grammar, spacing, etc.) and typeset my order using sample layout!";objtaText=objta.value.toString();if(flgType==1){if((objtaText.toLowerCase().indexOf(str2.toLowerCase())>=0)||(objtaText.toLowerCase().indexOf(str3.toLowerCase())>=0)){objtaText=objtaText.replace(str2+"\r\n","").replace(str3+"\r\n","");objtaText=objtaText.replace(str2+"\r\n".toLowerCase(),"").replace(str3+"\r\n".toLowerCase(),"");objtaText=objtaText.replace(str2,"").replace(str3,"");objtaText=objtaText.replace(str2.toLowerCase(),"").replace(str3.toLowerCase(),"");}if(objtaText.toLowerCase().indexOf(str1.toLowerCase())== -1)objta.value=str1+"\r\n"+objtaText;}if(flgType==2){if((objtaText.toLowerCase().indexOf(str1.toLowerCase())>=0)||(objtaText.toLowerCase().indexOf(str3.toLowerCase())>=0)){objtaText=objtaText.replace(str1+"\r\n","").replace(str3+"\r\n","");objtaText=objtaText.replace(str1+"\r\n".toLowerCase(),"").replace(str3+"\r\n".toLowerCase(),"");objtaText=objtaText.replace(str1,"").replace(str3,"");objtaText=objtaText.replace(str1.toLowerCase(),"").replace(str3.toLowerCase(),"");}if(objtaText.toLowerCase().indexOf(str2.toLowerCase())== -1)objta.value=str2+"\r\n"+objtaText;}if(flgType==3){if((objtaText.toLowerCase().indexOf(str1.toLowerCase())>=0)||(objtaText.toLowerCase().indexOf(str2.toLowerCase())>=0)){objtaText=objtaText.replace(str1+"\r\n","").replace(str2+"\r\n","");objtaText=objtaText.replace(str1+"\r\n".toLowerCase(),"").replace(str2+"\r\n".toLowerCase(),"");objtaText=objtaText.replace(str1,"").replace(str2,"");objtaText=objtaText.replace(str1.toLowerCase(),"").replace(str2.toLowerCase(),"");}if(objtaText.toLowerCase().indexOf(str3.toLowerCase())== -1)objta.value=str3+"\r\n"+objtaText;}};function showHideSubNav(headerID,subNavID){var subNav_style=getStyleObject(subNavID);var header_style=getStyleObject(headerID);if(subNav_style.display=='block'){header_style.background="url(/intershoproot/eCS/Store/en/imagesOnline/theme/bttn-category-expand.gif) no-repeat 0 2";subNav_style.display='none';}else{header_style.background="url(/intershoproot/eCS/Store/en/imagesOnline/theme/bttn-category-collapse.gif) no-repeat 0 2";subNav_style.display='block';}};function _gXRObj(){var xmlHttp=null;try{xmlHttp=new XMLHttpRequest();}catch(e){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}return xmlHttp;};function isValidEmailAddress(str){var at="@";var dot=".";var lat=str.indexOf(at);var lstr=str.length;var ldot=str.indexOf(dot);if((str==null)||(str=="")){return false;}if(str.indexOf(at)== -1){return false;}if(str.indexOf(at)== -1||str.indexOf(at)==0||str.indexOf(at)==lstr){return false;}if(str.indexOf(dot)== -1||str.indexOf(dot)==0||str.indexOf(dot)==lstr){return false;}if(str.indexOf(at,(lat+1))!= -1){return false;}if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot){return false;}if(str.indexOf(dot,(lat+2))== -1){return false;}if(str.indexOf(dot,(lat+2))>(str.length-2-1)){return false;}if(str.indexOf(" ")!= -1){return false;}return true;};function checkUSZip(zip){if(!IsNumeric(zip))return(false);if(zip.length!=5)return(false);return(true);};function iPA(sPT,sPI,stSec,enSec,leftPos,topPos){getElement('prAD').innerHTML='<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td align="center" valign="middle">'+sPT+'<img onclick="getElement(\'prAD\').style.display = \'none\';" src="'+sPI+'" border="0"></td></tr></table>';obj=document.getElementById('prAD');if(document.documentElement){theLeft=document.documentElement.scrollLeft;theTop=document.documentElement.scrollTop;}if(document.body){theLeft=document.body.scrollLeft;theTop=document.body.scrollTop;}theLeft+=leftPos;theTop+=topPos;obj.style.left=theLeft+'px';obj.style.top=theTop+'px';stSec=stSec+1;enSec=enSec+1;setTimeout("getElement('prAD').style.display = 'block';",stSec*1000);setTimeout("getElement('prAD').style.display = 'none';",enSec*1000);};function slide(eleId,varX,varY,transTime,direction){var fps=100;if(eleId){j=0;if(document.getElementById("left-right-scroll-button-container").className=='bttn-scroll-right')document.getElementById("left-right-scroll-button-container").className='bttn-scroll-left';else document.getElementById("left-right-scroll-button-container").className='bttn-scroll-right';oDiv=document.getElementById(eleId);startX=oDiv.style.left.replace(/px/,"")*1;startY=oDiv.style.top.replace(/px/,"")*1;approxSteps=fps*(transTime/1000);delay=transTime/approxSteps;sinInc=(Math.PI/2)/approxSteps;moveX=varX;moveY=varY;}if(j<=approxSteps){var posX;if(startX==0)posX=startX-Math.ceil(Math.sin(j*sinInc)*moveX);else posX=startX+Math.ceil(Math.sin(j*sinInc)*moveX);var posY=startY+Math.ceil(Math.sin(j*sinInc)*moveY);oDiv.style.left=posX+"px";j++;setTimeout("slide()",delay);}else{return;}};var b_as_init=false;function as_callback_srch(){checkForm_search();};function as_init(){if(b_as_init)return;b_as_init=true;var js1=document.createElement("script");js1.language="javascript";js1.type="text/javascript";js1.src=sLandingImageServerURL+"/as/as.js";js1.onload=js1.onreadystatechange=function(){};document.body.appendChild(js1);};String.prototype.trim=function(){var trimX=this;trimX=trimX.replace(/^\s*(.*)/,"$1");trimX=trimX.replace(/(.*?)\s*$/,"$1");return trimX;};function WaitScreen(a0_g,a0_f,a0_h){this.a0_b=((a0_g!=null)&&(a0_g!='undefined')&&(a0_g!='null')&&(a0_g!=''))?a0_g:null;this.a0_l=((a0_f!=null)&&(a0_f!='undefined')&&(a0_f!='null')&&(a0_f!=''))?a0_f:null;this.a0_m=((a0_h!=null)&&(a0_h!='undefined')&&(a0_h!='null')&&(a0_h!=''))?a0_h:null;this.a0_i=false;this.a0_c=function(id){return document.getElementById(id)};this.setID=function(a0_a){this.a0_b=((a0_a!=null)&&(a0_a!='undefined')&&(a0_a!='null')&&(a0_a!=''))?a0_a:'pdWS';};this.canClose=function(a0_e){this.a0_m=((a0_e!=null)&&(a0_e!='undefined')&&(a0_e!='null')&&(a0_e!=''))?a0_e:true;if(this.a0_c(this.a0_b))if(this.a0_c(this.a0_b+'_cb'))this.a0_c(this.a0_b+'_cb').style.display=(this.a0_m)?'block':'none';};this.setMessage=function(a0_d){this.a0_l=((a0_d!=null)&&(a0_d!='undefined')&&(a0_d!='null')&&(a0_d!=''))?a0_d:'<img src="'+sLandingImageServerURL+'/rproof/images/loading.gif" width="31" height="31"/><br>';if(this.a0_c(this.a0_b))if(this.a0_c(this.a0_b+'_msg'))this.a0_c(this.a0_b+'_msg').innerHTML=this.a0_l;};this.init=function(a0_a){this.setID(((a0_a!=null)&&(a0_a!='undefined')&&(a0_a!='null')&&(a0_a!=''))?a0_a:this.a0_b);if(!this.a0_c(this.a0_b)){var a0_k=document.createElement('div');a0_k.style.display='none';a0_k.style.height='0px';a0_k.className='pD';a0_k.setAttribute('id',this.a0_b);document.body.appendChild(a0_k);a0_k.innerHTML='<div id="'+this.a0_b+'_BG" class="pDBG"></div><div id="'+this.a0_b+'_FG" class="pDFG"><table cellpadding="0" cellspacing="0" border="0" class="pDCtnt"><tr><td id="'+this.a0_b+'_cb"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="right"><div style="cursor: pointer; background:url(http://images.paperstyle.com/rproof/images/close-x.gif) 50% 50% no-repeat;height:20px;width:20px;margin:0px;padding:0px;" onclick="document.getElementById(\''+this.a0_b+'\').style.display=\'none\';return false;"></div></td></tr></table></td></tr><tr><td align="center" style="padding-bottom:10px;"><div id="'+this.a0_b+'_msg"></div></td></tr></table></div>';}};this.a0_n=function(a0_a){this.a0_i=false;this.setID(((a0_a!=null)&&(a0_a!='undefined')&&(a0_a!='null')&&(a0_a!=''))?a0_a:this.a0_b);if(this.a0_c(this.a0_b)){this.a0_c(this.a0_b).style.display='none';}};this.a0_o=function(a0_a,a0_d,a0_e){this.a0_i=true;this.setID(((a0_a!=null)&&(a0_a!='undefined')&&(a0_a!='null')&&(a0_a!=''))?a0_a:this.a0_b);if(this.a0_c(this.a0_b)){this.setMessage(((a0_d!=null)&&(a0_d!='undefined')&&(a0_d!='null')&&(a0_d!=''))?a0_d:this.a0_l);this.canClose(((a0_e!=null)&&(a0_e!='undefined')&&(a0_e!='null')&&(a0_e!=''))?a0_e:this.a0_m);this.a0_c(this.a0_b).style.left=document.body.offsetLeft;this.a0_c(this.a0_b).style.top=document.body.offsetTop;var a0_p=0;if(document.body.scrollHeight>a0_p)a0_p=document.body.scrollHeight;if(document.body.clientHeight>a0_p)a0_p=document.body.clientHeight;if(document.body.offsetHeight>a0_p)a0_p=document.body.offsetHeight;if(document.body.scrollHeight>a0_p)a0_p=document.body.scrollHeight;if(this.a0_c(this.a0_b).clientHeight>a0_p)a0_p=document.body.scrollHeight;this.a0_c(this.a0_b).style.height=a0_p;var a0_q=0;if(document.body.scrollWidth>a0_q)a0_q=document.body.scrollWidth;if(document.body.clientWidth>a0_q)a0_q=document.body.clientWidth;if(document.body.offsetWidth>a0_q)a0_q=document.body.offsetWidth;if(document.body.scrollWidth>a0_q)a0_q=document.body.scrollWidth;if(this.a0_c(this.a0_b).clientWidth>a0_q)a0_q=document.body.scrollWidth;this.a0_c(this.a0_b).style.Width=a0_q;this.a0_c(this.a0_b+'_BG').style.left=this.a0_c(this.a0_b).style.left;this.a0_c(this.a0_b+'_BG').style.top=this.a0_c(this.a0_b).style.top;this.a0_c(this.a0_b+'_BG').style.height=this.a0_c(this.a0_b).style.height;this.a0_c(this.a0_b+'_BG').style.width=this.a0_c(this.a0_b).style.width;this.a0_c(this.a0_b+'_FG').style.top=(((document.getElementById&& !document.all)?window.scrollY:document.body.scrollTop)+0)+'px';this.a0_c(this.a0_b).style.display='block';}};this.hide=function(a0_a){this.setID(((a0_a!=null)&&(a0_a!='undefined')&&(a0_a!='null')&&(a0_a!=''))?a0_a:this.a0_b);if(this.a0_c(this.a0_b)){this.a0_n(this.a0_b);}};this.show=function(a0_a,a0_j,a0_d,a0_e){this.setID(((a0_a!=null)&&(a0_a!='undefined')&&(a0_a!='null')&&(a0_a!=''))?a0_a:this.a0_b);if(!this.a0_c(this.a0_b)){this.init(a0_a);}this.a0_i=((a0_j!=null)&&(a0_j!='undefined')&&(a0_j!='null')&&(a0_j!=''))?a0_j: !this.a0_i;if(this.a0_i){this.a0_o(a0_a,a0_d,a0_e);}else{this.a0_n(a0_a);}};}