﻿var flag=false; 
function DrawImage(ImgD){ 
var image=new Image(); 
image.src=ImgD.src; 
if(image.width>0 && image.height>0){ 
flag=true; 
if(image.width/image.height>= 175/160){ 
if(image.width>175){ 
ImgD.width=175; 
ImgD.height=(image.height*160)/image.width; 
}else{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
} 
else{ 
if(image.height>160){ 
ImgD.height=160; 
ImgD.width=(image.width*175)/image.height; 
}else{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
} 
} 
} 
<!--
var number=7;
function LMYC() {
var lbmc;
    for (i=1;i<=number;i++) {
        lbmc = eval('LM' + i);
        lbmc.style.display = 'none';
    }
} 
function ShowFLT(i) {
    lbmc = eval('LM' + i);
    if (lbmc.style.display == 'none') {
        LMYC();
        lbmc.style.display = '';
    }
    else {
        lbmc.style.display = 'none';
    }
}
//-->
function show_intro(pre,pree, n, select_n,css) {
for (i = 1; i <= n; i++) {
var intro = document.getElementById(pre + i);
var cha = document.getElementById(pree + i);
intro.style.display = "none";
cha.className=css + "_off";
if (i == select_n) {
intro.style.display = "block";
cha.className=css + "_on";
}
}
}
function creatXml()
{
 var xmlHttp;
 try
 {
  xmlHttp = new XMLHttpRequest(); 
 }
 catch(e)
 {
  var xmlHttpVersion=new Array("MSXML2.XMLHTTP.6.0",
           "MSXML2.XMLHTTP.5.0",
           "MSXML2.XMLHTTP.4.0",
           "MSXML2.XMLHTTP.3.0",
           "MSXML2.XMLHTTP",
           "Microsoft.XMLHTTP");
  for(var i=0; i<xmlHttpVersion.length&&!xmlHttp; i++){
   try
   {
    xmlHttp=new ActiveXObject(xmlHttpVersion[i]);
   }
    catch(e)
    {}
   }
  }
  if(!xmlHttp)
  {
   alert("Error creating the XmlHttpRequest Object.");
  }
  else
  {
   return xmlHttp;
  }
}
function show(url) {
var xmlHttp = creatXml();
xmlHttp.open("POST", url ,false);
xmlHttp.send();
var strs=unescape(xmlHttp.responseText);
document.write(strs);
}



var flag1=false; 
function DrawImage1(ImgD){ 
var image=new Image(); 
image.src=ImgD.src; 
if(image.width>0 && image.height>0){ 
flag=true; 
if(image.width/image.height>= 200/185){ 
if(image.width>200){ 
ImgD.width=200; 
ImgD.height=(image.height*185)/image.width; 
}else{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
} 
else{ 
if(image.height>185){ 
ImgD.height=185; 
ImgD.width=(image.width*200)/image.height; 
}else{ 
ImgD.width=image.width; 
ImgD.height=image.height; 
} 
} 
} 
}

function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}
