function qiehuan(num){
		for(var id = 0;id<=9;id++)
		{
			if(id==num)
			{
				document.getElementById("qh_con"+id).style.display="block";
				document.getElementById("mynav"+id).className="nav_on";
			}
			else
			{
				document.getElementById("qh_con"+id).style.display="none";
				document.getElementById("mynav"+id).className="nav_off";
			}
		}
	}
	
function check_input()
{
    if(document.hylogin.hyname.value.length==0){
		alert("请输入用户名");
		document.hylogin.hyname.focus();
		return false;
	}	
	if (document.hylogin.hypass.value.length == 0) {
		alert("请输入您的密码");
		document.hylogin.hypass.focus();
		return false;
	}
	if (document.hylogin.proof.value.length == 0) {
		alert("请输入您的验证码");
		document.hylogin.proof.focus();
		return false;
	}
}
var flag=false;    
function limitImage(ImgD){    
    var areaWidth = 95;  //你放置图片区域的宽度。   
    var areaHeight = 95; //你放置图片区域的高度。   
    var image=new Image();    
    image.src=ImgD.src;    
    if(image.width>0 && image.height>0){    
        flag=true;    
        if(image.width/image.height>= areaWidth/areaHeight){    
            if(image.width>areaWidth){    
                ImgD.width=areaWidth;    
                ImgD.height=(image.height*areaWidth)/image.width;    
            }else{    
                ImgD.width=image.width;    
                ImgD.height=image.height;    
            }    
            //ImgD.alt=image.width+"×"+image.height;    
        }else{    
            if(image.height>areaHeight){    
                ImgD.height=areaHeight;    
                ImgD.width=(image.width*areaHeight)/image.height;    
            }else{    
                ImgD.width=image.width;    
                ImgD.height=image.height;    
            }    
            //ImgD.alt=image.width+"×"+image.height;    
        }    
    }    
}    
		<!--//
		function qhshow(t,n1,n2){
		var p=t.parentNode;
		var b='',a=0;
			for (var i=0; i<p.childNodes.length; i++){
				if(p.childNodes[i].className==n1)
				{
				 p.childNodes[i].className=n2;
				 document.getElementById('s_' + p.childNodes[i].id).style.display='none';
				break;
				}
			}
			t.className=n1;
			document.getElementById('s_' + t.id).style.display='';
		}
		//-->
		function cookiesave(n, v, mins, dn, path)
	{
		if(n)
		{
			if(!mins) mins = 365 * 24 * 60;
			if(!path) path = "/";
			var date = new Date();
			
			date.setTime(date.getTime() + (mins * 60 * 1000));
			
			var expires = "; expires=" + date.toGMTString();
			
			if(dn) dn = "domain=" + dn + "; ";
			document.cookie = n + "=" + v + expires + "; " + dn + "path=" + path;
		}
	}
	function cookieget(n)
	{
		var name = n + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i<ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
		}
		return "";
	}
	function closeclick(){
		document.getElementById('note').style.display='none';
		cookiesave('closeclick','closeclick','','','');
	}
	function clickclose(){
		if(cookieget('closeclick')=='closeclick'){
			document.getElementById('note').style.display='none';
		}else{
			document.getElementById('note').style.display='block';
		}
	}
	window.onload=clickclose;
