function bookmarksite(title, url){
  if (document.all)
  window.external.AddFavorite(url, title);
  else if (window.sidebar)
  window.sidebar.addPanel(title, url, "")
}
var sClicks=0;
function fEntryLogin() { 
     sClicks++;
     if(sClicks>=2)
     {
       sClicks=0;
       window.open("/LoginForm.aspx");
     }
 }
 function openLoginWin() {
     var oWnd = radopen("/Controls/LoginForWebUser.aspx", "RadWindowForLogin");
 }
 function openWin_MoreCom(id) {
     var oWnd = radopen("CompanyRound.aspx?id=" + id, "RadWindow_MoreCom");
 }
 function OnClientClose(oWnd, args) { ; }
 /******************Google Analytics****************************************/
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-8557683-1");
pageTracker._trackPageview();
} catch (err) { }


// www.medouyou.net/   
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-8579115-2");
pageTracker._trackPageview();
} catch (err) { }


//function ImgAuto(i, MaxW, MaxH) {//你必须给图片提前设定初始宽度和高度，建议直接就是最大宽度和高度
//    //定义图片显示的最大宽度
//    //定义图片显示的最大高度
//    var o = new Image(); o.src = i.src; var w = o.width; var h = o.height; var t; if (w > MaxW) { t = MaxW; } else { t = w; }
//    if ((h * t / w) > MaxH) { i.height = MaxH; i.width = MaxH / h * w; } else { i.width = t; i.height = t / w * h; }
//}

function ImgAuto(i, MaxW, MaxH) { var o = new Image(); o.src = i.src; var w = o.width; var h = o.height; var t; if (w > MaxW) { t = MaxW; } else { t = w; } if ((h * t / w) > MaxH) { i.height = MaxH; i.width = MaxH / h * w; } else { i.width = t; i.height = t / w * h; } }

/******************Google Analytics****************************************/
