function openurl(url) {
	window.open(url, "", "location=yes,toolbar=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes, resizable=yes,copyhistory=yes");
}

function Show_SubLmy(id_num,num){
	//舌签功能
	for(var i=0;i<=9;i++){	
		if(GetObj("S_MenuMy_"+id_num+i)){
			GetObj("S_MenuMy_"+id_num+i).className='';		
		}
		if(GetObj("S_ContMy_"+id_num+i)){
			GetObj("S_ContMy_"+id_num+i).style.display='none';		
		}	
	}
	if(GetObj("S_MenuMy_"+id_num+num)){
		GetObj("S_MenuMy_"+id_num+num).className='selectd';		
	}
	if(GetObj("S_ContMy_"+id_num+num)){
		GetObj("S_ContMy_"+id_num+num).style.display='block';		
	}	
}

function GetObj(objName){
	
	if(document.getElementById){
		
		return eval('document.getElementById("'+objName+'")');		
		
	}else {
		
		return eval('document.all.'+objName);		
		
	}
	
}

var flag=false; 
function DrawImage(ImgD){ 
var image=new Image(); 
image.src=ImgD.src; 
width=80;//预先设置的所期望的宽的值
height=80;//预先设置的所期望的高的值
if(image.width>width||image.height>height){//现有图片只有宽或高超了预设值就进行js控制
w=image.width/width;
h=image.height/height;
if(w>h){//比值比较大==>宽比高大
//定下宽度为width的宽度
ImgD.width=width;
//以下为计算高度
ImgD.height=image.height/w;

}else{//高比宽大
//定下宽度为height高度
ImgD.height=height;
//以下为计算高度
ImgD.width=image.width/h;
 }
}
else{
//定下宽度为宽度高度都为原来的宽高
ImgD.width=image.width;
ImgD.height=image.height;
}
} 