﻿var flag=false;
function DrawImage(ImgD){
var image=new Image();
var iwidth = 85; 
var iheight = 75; 
image.src=ImgD.src;
if(image.width>0 && image.height>0){
flag=true;
if(image.width/image.height>= iwidth/iheight){
if(image.width>iwidth){ 
ImgD.width=iwidth;
ImgD.height=(image.height*iwidth)/image.width;
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}

//ImgD.alt=image.width+"×"+image.height;
}
else{
if(image.height>iheight){ 
ImgD.height=iheight;
ImgD.width=(image.width*iheight)/image.height; 
}else{
ImgD.width=image.width; 
ImgD.height=image.height;
}
//ImgD.alt=image.width+"×"+image.height;
}
}
} 

function checkss(so,n)
{	
	if (n == 2)
	{	
		if(so.value == "") 
		{
			so.value="<%=title_huohze_e_mail%>";
			so.style.cssText = "color:#ccc";
		}
		
	}

	if (n == 1)
	{	
		if(so.value == "<%=title_huohze_e_mail%>") 
		{
			so.value="";
		}
		so.style.cssText = "color:#000";
	}

}	

function net_sel(obj){
    if(obj==1)
    {
        net_2.style.display='none';
		net_1.style.display='';
		net_title.background="/images/net_1.jpg";
		
    }else{
        net_1.style.display='none';
		net_2.style.display='';
		net_title.background="/images/net_2.jpg";
    }
}
