var newdate = new Date() function PopUp(url) { var Opts = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=0,top=0,width=530,height=300" var newpopwin = window.open(url,"PopUpWin",Opts); var a = 1; newpopwin.focus(); a = 2; return true; } function Cate(daLink) { var cateWnd=window.open(daLink,"cate","width=500,height=400,resizable=yes,scrollbars=yes,dependent=yes"); } function Loginfunc() { location.href = "https://www.asi-ez.com/shopper_new.asp?dept_id=0"; return false; } function popUpWindow(url, w, h) { var URLx = new String(url); if(URLx.substr(0,4)!='http') URLx = location.protocol + '//' + URLx; var options = "height=" + h + ",width=" + w + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes"; Win = window.open(URLx, "win", options); Win.focus(); } function datasheet(Pf_ID,ds) { popUpWindow('http://www.asi-ez.com/inc/showmap.asp?displayname=' + Pf_ID + '&MapURL=http://www.asi-ez.com/pix/doc/' + ds, 600, 500); return false; } function Loader() { if (document.compatMode && document.compatMode != "BackCompat") currWidth = document.documentElement.clientWidth - 133; else currWidth = document.body.clientWidth - 163; if (currWidth < 500) { currWidth = 500; } document.getElementById("Main").style.width = currWidth + "px"; self.focus(); } /*********************************************** * Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ var loadedobjects="" var rootdomain="http://"+window.location.hostname var ns = (navigator.appName.indexOf('Netscape') != -1); var d = document; var tu = new Date(); var unique_num = Math.floor(tu.getTime()/1000); // unique number to prevent stupid IE from caching AJAX calls function dist_check() { if(document.forms.dist_form.dist_zip.value=='') getElement('dist_msg').innerHTML = 'Please supply a valid zip code.'; } function dist_lookup(azip) { var zip = new String((azip!='')?azip:document.forms.dist_form.dist_zip.value); if(zip==''||zip.length!=5) { getElement('dist_msg').innerHTML = 'Please supply a valid zip code.'; return false; } var ZIP = parseInt(zip); if(isNaN(ZIP)) { getElement('dist_msg').innerHTML = zip + ' Not a valid Zip Code'; return false; } var page_request = createXMLHttpRequest(); if(!page_request) return true; document.body.style.cursor = "wait"; getElement('dist_msg').innerHTML = '....'; var url = new String(location.protocol + '\/\/www.asi-ez.com\/member\/dist_lookup.asp?aj=1&dist_zip=' + zip + '&unq=' + (++unique_num)); page_request.onreadystatechange = function() { distpage(page_request,zip) } page_request.open('GET', url, true); page_request.send(null); return false; } function dist_clear() { getElement('dist_div').innerHTML = dist_save; } function distpage(page_request,zip) { if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http") == -1)) { var new_content = new String(page_request.responseText); var id = 'dist_msg'; if(new_content == 'no') { new_content = 'No distributors in Zip ' + zip + '.
Contact Factory<\/a> with any questions.' _gaq.push(['_trackEvent', 'dist_lookup', 'failed',zip]); } else if (new_content.substr(0,1)=='.' ) { new_content = new_content.substr(1); _gaq.push(['_trackEvent', 'dist_lookup', 'invalid',zip]); } else { id = 'dist_div'; new_content += '
x<\/div>'; _gaq.push(['_trackEvent', 'dist_lookup', 'OK',zip]); } getElement(id).innerHTML = new_content; document.body.style.cursor = "default"; } } function dist_reset() { getElement('dist_msg').innerHTML = ' ZIP Code (U.S. Only)'; document.forms.dist_form.dist_zip.value = ''; } // Product Functions function sizer(objId,size,desc) { getElement(objId + '_id').className = 'img_' + size; getElement(objId + '_bg').className = 'img_' + size; if(size=='little') getElement('img_note').innerHTML = desc; visI('img_note',(size=='little')?'hide':'show'); visI(objId + '_lab',(size=='little')?'show':'hide'); } function ProductFeature(daLink) { var cateWnd=window.open(daLink,"ProductFeature","width=300,height=300,resizable=yes,resize=yes,scrollbars=yes"); cateWnd.focus(); } function Frontier_Validator(theForm) { var Temp = new String(theForm.MyQty.value); Temp = Temp.replace(/ /g, ""); theForm.MyQty.value = Temp; if (theForm.MyQty.value == "" || isNaN(theForm.MyQty.value) || (theForm.MyQty.value + 0) < 1) { alert("A \"Package Qty\" of 1 or more is required."); theForm.MyQty.focus(); return false; } return true; } function popUpWindow1(url, w, h) { location.href = url; } function show_msg(Part) { getElement('show_msg').innerHTML = '
Download ' + Part + '<\/div>' + '