// JavaScript Document for set innerHTML
function setInnerHTML(objId, html){
 try{
  var obj = document.getElementById(objId);
  obj.innerHTML = html;
 }catch(exception){
  alert("Make sure the object id is correct!");
 }
}

function getInnerHTML(objId){
 try{
  var obj = document.getElementById(objId);
  return obj.innerHTML;
 }catch(exception){
  alert("Make sure the object id is correct!");
 } 
}

/* Create a new XMLHttpRequest object to talk to the Web server */
var xmlHttp = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
   xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
   try {
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
   } catch (e2) {
      xmlHttp = false;
   }
}
@end @*/

if (!xmlHttp && typeof XMLHttpRequest != "undefined") {
  xmlHttp = new XMLHttpRequest();
}

function info(){
 try{
  var str = window.location.href;
  var pos = str.indexOf("?");
  var parastr = str.substring(pos+1);
  var url = "/TradeNews/markettrade.asp?weburl="+parastr; 
  xmlHttp.open("post", url, true);     
  xmlHttp.onreadystatechange = infoOk;
  xmlHttp.send(null); 
 
 }catch(exception){}
}

function infoOk(){
 if (xmlHttp.readyState == 4) {
  try{
   var response = xmlHttp.responseText;   
   var alertObj = document.getElementById("info"); 
   alertObj.innerHTML=response;
  }catch(exception){}
 } 
}


function ResizeImage(objImage,maxWidth){
try{
 if(maxWidth>0){
  if(objImage.width>maxWidth){
   objImage.width=maxWidth;
    if (window.attachEvent)
     {objImage.attachEvent('onclick', function(){try{window.open(objImage.src);}catch(e){window.open(objImage.src);}});
      objImage.attachEvent('onmouseover', function(){objImage.style.cursor='pointer';});
     }
     if (window.addEventListener)
     {objImage.addEventListener('click', function(){try{window.open(objImage.src);}catch(e){window.open(objImage.src);}},false);
     objImage.addEventListener('mouseover', function(){objImage.style.cursor='pointer';},false);
     }    
  }
 }
}catch(e){};
}



function doClick_down(o){
o.className="bg_b";
var j;
var id;
var e;
for(var m=1;m<=3;m++){
id ="jn"+m;
j = document.getElementById(id);
e = document.getElementById("d_con"+m);

if(id != o.id){
j.className="";
e.style.display = "none";
}else{
e.style.display = "block";
}
}
}


   function mouseOver()
   {   document.b1.src ="/images/salepic.gif"   }
   function mouseOut()   {
   document.b1.src ="/images/salesmall.gif"   
   }
   
   function mouseOver2()
   {   document.b2.src ="/images/buypic.gif"   }
   function mouseOut2()   {
   document.b2.src ="/images/buyimg.gif"   
   }
   
     function doZoom(size)
    {
    document.getElementById('zoom').style.fontSize=size+'px'
    }  


<!--获取标题
//定义功能函数
function addtf()
{
//定义存放地址的变量
var address;
//定义存放名称的变量
var addname;
//设置地址
address=window.location.href;
//设置名称
addname=document.title;
//调用相应的函数,实现添加到收藏夹的功能
window.external.addFavorite(address,addname);
return;
}
// -->	