<!--
//function resizeImg(){
//	return false;
//	if(!document.getElementById("content") || document.getElementById("content") == null){return false;}
//	var imageAll=document.getElementById("content").getElementsByTagName("img");
//	if (imageAll !=null) {
//		  for (i=0; i<imageAll.length; i++) {
//				turewidth=imageAll[i].width;
//				imageAll[i].style.width="100%";
//				if (turewidth>imageAll[i].width) {
//					  //imageAll[i].style.height=imageAll[i].height/turewidth*imageAll[i].width;
//					  imageAll[i].onclick=function(){window.open(this.src)};
//					  imageAll[i].style.cursor="pointer";
//					  imageAll[i].alt="点击查看原始尺寸"; 
//				}
//				else {
//					  imageAll[i].style.width=turewidth;
//				}
//		  }
//	}
//}
//if(window.addEventListener){
//	window.addEventListener("load", resizeImg, false);
//}
//else if(window.attachEvent){
//	window.attachEvent("onload", resizeImg);
//}
//else{
//	window.onload=resizeImg;
//}

$(window).load(function(){
//$(document).ready(function(){
    //$(".news_content img").each(function(){
    $("#content").find("img").each(function(){
        var o = $(this);
		var w = $("#content").innerWidth() - 5
		var h = $("#content").innerHeight() - 20
		//var w = 620;
		//var h = 500;
		//var w = o.parents(".news_content, .box_m, .index_nextsd_mid").innerWidth() -20;
		//var h = o.parents(".news_content, .box_m, .index_nextsd_mid").innerHeight() -40;
		//o.attr("alt",w + "*" + h);
        if(o.width()>w){
			o.attr({alt:"点击查看原始尺寸:" + o.width() + "*" + o.height()})
				.css({cursor:"pointer"})
				.click(function(){
					window.open(this.src)
			});
            o.height(w/o.width()*o.height());
            o.width(w);
         }
        if(o.height()>h){
            o.width(h/o.height()*o.width());
            o.height(h);
        }
    });

});


function check() {
	if(document.myform.Uname.value ==""){
		alert("请输入您的姓！")
		document.myform.Uname.focus();
		return false;
	}
	if(document.myform.Cname.value ==""){
		alert("请输入您的名！")
		document.myform.Cname.focus();
		return false;
	}
	if(document.myform.Post.value ==""){
		alert("请输入您的职务！");
		document.myform.Post.focus();
		return false;
	}
	if(document.myform.Tel.value ==""){
		alert("请输入回访电话！");
		document.myform.Tel.focus();
		return false;
	}
//	if(document.myform.Content.value ==""){
//		alert("请输入留言内容！")
//		document.myform.Content.focus();
//		return false;
//	}
	return true;
}

-->
