var strName="";var str=document.cookie.match('(^|;) ?mfg=([^;]*)(;|$)');if(str){strName=unescape(str[2]);}function check(tabName,catName){var lDiv=document.getElementsByTagName("LI");for (var i=0;i<lDiv.length;i++){if(lDiv[i].className=='current'){lDiv[i].className = '';}}if(document.getElementById("tab"+tabName).className != 'current'){document.getElementById("tab"+tabName).className='current';}document.search.ddlCat.value=catName;}function filterlink(a){if(a=="Home"){top.location.href="http://www.mfgtrade.com";}else{top.location.href="http://www.mfgtrade.com/trade/mfgdefault.asp?"+a;}}function bookmarkthis(){window.external.AddFavorite('http://www.mfgtrade.com','MFGTrade.com: Your Effective Simple B2B Trade Portal');}function setImgDisplay(ImgSrc,strImg){var strImage;var intDftSize = 220;strImage = new Image();strImage.src = ImgSrc;if((strImage.width != 0) && (strImage.height != 0)){if(strImage.width > strImage.height){var intNewHeight;intNewHeight = strImage.height*intDftSize/strImage.width;strImg.height = intNewHeight; strImg.width = intDftSize;}else{var intNewWidth;intNewWidth = strImage.width*intDftSize/strImage.height;strImg.width = intNewWidth;strImg.height= intDftSize;}}else{strImg.width = 180;strImg.height= 180;}}function sendinquiry(){document.productdetails.action="http://www.mfgtrade.com/trade/mfgdefault.asp?view=MyAccount";document.productdetails.mode.value=12;document.productdetails.submit();}function setImgDisplayBig(ImgSrc,strImg){var strImage;var intDftSize = 600;strImage = new Image();strImage.src = ImgSrc;if ((strImage.width != 0) && (strImage.height != 0)){if(strImage.width > strImage.height){var intNewHeight;intNewHeight = strImage.height*intDftSize/strImage.width;strImg.height = intNewHeight;strImg.width = intDftSize;}else{var intNewWidth;intNewWidth = strImage.width*intDftSize/strImage.height;strImg.width = intNewWidth;strImg.height= intDftSize;}}else{strImg.width = 180;strImg.height= 180;}}


