    	function SendData(Url,Val){
		xmlhttp=false;
		if (window.XMLHttpRequest){//Mozilla,Safari,...
			xmlhttp=new XMLHttpRequest();
			if(xmlhttp.overrideMimeType){
				xmlhttp.overrideMimeType('text/xml');
			}
		}
		else if(window.ActiveXObject){//IE
			try{
				xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e){
				try{
					xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch(e){}
			}
		}
		if(!xmlhttp){
			alert('放弃:(无法创建 XMLHTTP 实例');
			return false;
		}
		xmlhttp.onreadystatechange=onRece;
		xmlhttp.open("post",Url,true);
		//application/x-www-form-urlencoded 是 name=value 可以用Request["name"]接收，send("name="+"sddsfdsf");发信息
		xmlhttp.setRequestHeader("Content-Type","text/xml");
		xmlhttp.send(Val);
	    }
	    function onRece(){
		if(xmlhttp.readyState==4){
			if(xmlhttp.status==200){
                	     if(xmlhttp.responseText.indexOf("OK")){
                                    alert("上传成功");
                             }
			}
			else{
			     alert('请求没有成功!');
			}
		}
	    }
	    
	    //---------------------------------------------------------------------------------------------------
        function Sumit(strUser){
        var strVal="";
        var objForm=document.getElementById("Form1");
        for(var i=0;i<objForm.elements.length;i++){
            if(objForm.elements[i].type=="text" && objForm.elements[i].id!="TextBox1" || objForm.elements[i].tagName=="TEXTAREA"){
                if(objForm.elements["name"].value==""){
                     objForm.elements["name"].focus();
                     return;
                }
                if(objForm.elements["title"].value==""){
                     objForm.elements["title"].focus();
                     return;
                }
                if(objForm.elements["content"].value==""){
                     objForm.elements["content"].focus();
                     return;
                }
            }
        }
        for(var i=0;i<objForm.elements.length;i++){
            if(objForm.elements[i].type=="text" && objForm.elements[i].id!="TextBox1" || objForm.elements[i].tagName=="TEXTAREA"){
                if(i!=(objForm.elements.length-1)){
                    strVal+=objForm.elements[i].id+":"+objForm.elements[i].value.replace(/</g,"《").replace(/>/g,"》").replace(/'/g,"''").replace(/"/g,"“").replace(/&/g,"").replace(/:/g,"：").replace(/;/g,"；")+";";
                }
                else{
                    strVal+=objForm.elements[i].id+":"+objForm.elements[i].value.replace(/</g,"《").replace(/>/g,"》").replace(/'/g,"''").replace(/"/g,"“").replace(/&/g,"").replace(/:/g,"：").replace(/;/g,"；");
                }
            }
        }
        
        SendData("Dialog.Houle/Service.aspx","<result id=\""+strUser+"\" val=\""+strVal+"\"/>");
        }
var objDialog;
function Init(){
	objDialog=document.createElement("div");
	objDialog.id="Dialog";
	objDiv1=document.createElement("div");
	objDiv1.id="Div1";
	var strInfo="<div style=\"font-weight:bold;margin-bottom:5px;height:16px;\">个人信息：</div>";
	strInfo+="<div style=\"float:left;margin-right:15px\">";
	strInfo+="<div style=\"margin-bottom:5px;\">姓　名：<input name=\"name\" type=\"text\" id=\"name\" style=\"width:136px;height:16px\" /></div>";
	strInfo+="<div style=\"margin-bottom:5px;\">电　话：<input name=\"phone\" type=\"text\" id=\"phone\" style=\"width:136px;height:16px\" /></div>";
	strInfo+="<div style=\"margin-bottom:5px;\">MSN/QQ：<input name=\"mm\" type=\"text\" id=\"mm\" style=\"width:136px;height:16px\" /></div></div>";

	strInfo+="<div style=\"float:left;\">";
	strInfo+="<div style=\"margin-bottom:5px;\">工作单位：<input name=\"company\" type=\"text\" id=\"company\" style=\"width:260px;height:16px\" /></div>";
	strInfo+="<div style=\"margin-bottom:5px;\">　地　址：<input name=\"address\" type=\"text\" id=\"address\" style=\"width:260px;height:16px\" /></div>";
	strInfo+="<div style=\"margin-bottom:12px;\">　E-MAIL：<input name=\"e-mail\" type=\"text\" id=\"e-mail\" style=\"width:260px;height:16px\" /></div></div>";
	strInfo+="<div style=\"font-weight:bold;margin-bottom:5px\">反馈信息：</div>";
	strInfo+="<div style=\"margin-bottom:5px;\">标　题：<input name=\"title\" type=\"text\" id=\"title\" style=\"width:438px;height:16px\" /></div>";
	strInfo+="<div style=\"margin-bottom:3px;\"><div style=\"float:left;line-height:239px\">内　容：</div><textarea name=\"content\" type=\"text\" id=\"content\" style=\"width:438px;height:239px;padding-left:6px;border:#00b0f0 1px solid;padding-top:6px\" ></textarea></div>";
	strInfo+="<div style=\"margin-top:10px;margin-left:58px\"><a href=\"#\" onclick=\"Sumit('IP');return false;\" onmouseover=\"setAttribute('style','background:#ccf');\" onmouseout=\"setAttribute('style','background:none');\" style=\"width:50px;height:30px\">提交</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"#\" onclick=\"Close();return false;\" style=\"width:50px;height:30px\">关闭</a></div>";
	objDiv1.innerHTML=strInfo;
	objDialog.appendChild(objDiv1);
	
}
document.documentElement.onload=Init();
function Resize(){
	var intWidth=document.documentElement.clientWidth;
	var intHeight=document.documentElement.clientHeight;
	objDialog.style.left=(intWidth-objDialog.offsetWidth)/2+"px";
	objDialog.style.top=(intHeight-objDialog.offsetHeight)/2+"px";
}
window.onresize=Resize;
function zyw3(){
	objDialog.style.display="block";
	document.getElementById("Form1").appendChild(objDialog);
	Resize();
}
function Close(){
	objDialog.style.display="none";
}
