// 单询盘功能 function orderone(domain, pid, pname, cid, cname) { var parm = "domain=" + domain + "&pname=" + pname.replace("&", " ") + "&cname=" + cname.replace("&", " ") + "&pid=" + pid + "&cid=" + cid; var orderurl = "http://www.frbiz.com/inquiry.php?" + parm; document.orderproduct.action = orderurl; document.orderproduct.submit(); } function setImgSize(theURL,sImage,stand,ctand) { var imgObj; var sizeStand=stand; var CStand=ctand; if(arguments.length>=3) { sizeStand=arguments[2]; } imgObj=new Image(); imgObj.src=theURL; if(ctand==0) { if((imgObj.width!=0)&&(imgObj.height!=0)) { if(imgObj.width>sizeStand||imgObj.height>sizeStand) { if(imgObj.width>imgObj.height) { var iHeight=imgObj.height*sizeStand/imgObj.width; sImage.height=iHeight;sImage.width=sizeStand; } else { var iWidth=imgObj.width*sizeStand/imgObj.height;sImage.width=iWidth;sImage.height=sizeStand; } } else { sImage.width=imgObj.width;sImage.height=imgObj.height; } } else { sImage.width=sizeStand;sImage.height=sizeStand; } } else { if((imgObj.width!=0)&&(imgObj.height!=0)) { if(imgObj.width>sizeStand||imgObj.height>CStand) { var wi=imgObj.width/sizeStand; var hi=imgObj.height/CStand; if(wi>hi) { var iHeight=imgObj.height*sizeStand/imgObj.width; sImage.height=iHeight;sImage.width=sizeStand; } else { var iWidth=imgObj.width*CStand/imgObj.height; sImage.width=iWidth;sImage.height=CStand; } } else { sImage.width=imgObj.width;sImage.height=imgObj.height; } } else { sImage.width=sizeStand;sImage.height=CStand; } } }