  function MM_jumpMenu(targ,selObj,restore){ //v3.0
      eval(targ+".location=\'"+selObj.options[selObj.selectedIndex].value+"\'");
      if (restore) selObj.selectedIndex=0;
  }
	function chkImgSize(obj)
	{
		var maxWidth = 600;
		if(obj.width > maxWidth)
		{
			obj.outerHTML="<a title=\'Click to View Source\' href=\'"+obj.src+"\' target=\'_blank\'><img src=\'"+obj.src+"\' width="+maxWidth+" border=\'0\'></a>";
		}
	}
	function chkAvaSize(obj)
	{
		var maxWidth = 150;
		var maxHeight = 200;
		if(obj.width > maxWidth && obj.height>maxHeight)
		{
			obj.outerHTML="<img src=\'"+obj.src+"\' width="+maxWidth+" height="+maxHeight+" border=\'0\'>";
			return;
		}
		if(obj.width > maxWidth)
		{
			obj.outerHTML="<img src=\'"+obj.src+"\' width="+maxWidth+" border=\'0\'>";
			return;
		}
		if(obj.height > maxHeight)
		{
			obj.outerHTML="<img src=\'"+obj.src+"\' height="+maxHeight+" border=\'0\'>";
			return;
		}
	}
	
	
function check(obj)
{
	if (obj.user.value == "")
	{
		alert("Please Input your username!");
		obj.user.focus();
		return false;
	}
	if (obj.pass.value == "")
	{
		alert("Please Input your password!");
		obj.pass.focus();
		return false;
	}
	return true;
}
function fResizeImg(w, h){
	    body = document.body;
        var img='';
        var obj;
        obj=document.images

        for(var i=0; i<obj.length; i++){
            img=obj[i];
            if(img.width>w&&(img.height<img.width)){
                img.height=img.height-(img.height/(img.width/(img.width-w)))
                img.width=w;
            }else if(img.height>h&&(img.height>img.width)){
                img.width=img.width-(img.width/(img.height/(img.height-h)))
                img.height=h;
            }
			
        } // shawl.qiu script
    }
window.onload=function(){
    fResizeImg(700, 700);
}
//inpage Admin
