function select_url(a){location=a}function openWindow(d,a,e){var c="width="+a+",height="+e+",";c+="resizable=yes,scrollbars=yes,status=yes,";c+="menubar=no,toolbar=no,location=no,directories=no";var b=window.open(d,"newWin",c);b.focus()}function CookieAndPopUp(){var e="http://www.wilsonweb.com/admin/pu_sub_regular.htm";var g="width=550,height=350,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";var a=30;var d=".wilsonweb.com";var f=new Date();f.setTime(f.getTime()+(a*24*60*60*1000));SetCookie("wilsonwebtest",1,f,null,d);var b=GetCookie("wilsonwebtest");if(b==1){var c=GetCookie("count");if(c==null){c=1;SetCookie("count",c,f,"/",d);window.open(e,"",g);return}else{c++;SetCookie("count",c,f,"/",".wilsonweb.com");return}}}function GetCookie(d){var b=d+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+f;if(document.cookie.substring(e,c)==b){return getCookieVal(c)}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function SetCookie(c,e){var a=SetCookie.arguments;var h=SetCookie.arguments.length;var b=(h>2)?a[2]:null;var g=(h>3)?a[3]:null;var d=(h>4)?a[4]:null;var f=(h>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b==null)?"":("; expires="+b.toGMTString()))+((g==null)?"":("; path="+g))+((d==null)?"":("; domain="+d))+((f==true)?"; secure":"")}function DelCookie(a){document.cookie=a+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}var gAutoPrint=true;function printSpecial(){if(document.getElementById!=null){var b="<HTML>\n<HEAD>\n";if(document.getElementsByTagName!=null){var a=document.getElementsByTagName("head");if(a.length>0){b+=a[0].innerHTML}}b+="\n</HEAD>\n<BODY>\n";var d=document.getElementById("printReady");if(d!=null){b+=d.innerHTML}else{alert("Could not find the printReady section in the HTML");return}b+="\n</BODY>\n</HTML>";var c=window.open("","printSpecial");c.document.open();c.document.write(b);c.document.close();if(gAutoPrint){c.print()}}else{alert("Sorry, the print ready feature is only available in modern browsers.")}}function GetCurrentFormMode(a){var b=document.myForm.SearchMode.options[a.SearchMode.selectedIndex].value;return b}function SubDynForm(a){var c=document.getElementById(a);var d=c.SearchMode.options[c.SearchMode.selectedIndex].value;var b=new String();if(d=="thisSite"){b="/search/google-results.htm?cx=partner-pub-0858215717077415:t94x1b-eewd&cof=FORID:9&ie=ISO-8859-1&q="+escape(c.q.value)}else{if(d=="ArticleDB"){b="http://www.wilsonweb.com/search/search_results.php?querytype=simple&criteria="+escape(c.q.value)}}location.href=b;return false}function SubDynLinkForm(a){window.location.href=a.options[a.selectedIndex].value;return false}var expy=new Date();expy.setTime(expy.getTime()+(1000*60*60*24*365));var ic=5;var xoxo=new Array(ic);xoxo[0]="/syspic/wmt_top_photo_0.png";xoxo[1]="/syspic/wmt_top_photo_1.png";xoxo[2]="/syspic/wmt_top_photo_2.png";xoxo[3]="/syspic/wmt_top_photo_3.png";xoxo[4]="/syspic/wmt_top_photo_4.png";function pickRandom(a){if(Math.random){return Math.round(Math.random()*(a-1))}else{var b=new Date();return(b.getTime()/1000)%a}}var choice=pickRandom(ic);function verifyRequired(){if(document.icpsignup.fields_email.value==""){alert("The Email field is required.");return false}if(document.icpsignup.fields_fname.value==""){alert("The First Name field is required.");return false}if(document.icpsignup.fields_lname.value==""){alert("The Last Name field is required.");return false}if(document.icpsignup.fields_country.value==""){alert("The Country field is required.");return false}if(document.URLselector.sku.value==""){alert("Your must select a product before ordering.");return false}return true};
