﻿	function WedMsg(info){
	var p=document.createElement("DIV");
	if (!info) var info='^_^ 谢谢捧场！！';
	p.id="p";
	p.style.position="absolute";
	p.style.width=window.screen.availWidth;
	p.style.height=window.screen.availHeight+500;
	p.style.zIndex='998';
	p.style.top='0px';
  p.style.left='0%';
	p.style.backgroundColor="gray";
	p.style.opacity='0.5';
	p.style.filter="alpha(opacity=80)";
	document.body.appendChild(p);
	var p1=document.createElement("DIV");
	var top=parseInt(parseInt(window.screen.availHeight)*0.25)+document.body.scrollTop;
	p1.style.position="absolute";
	p1.style.width="300px";
	p1.id="p1";
	var left=Math.ceil(((window.screen.availWidth)-parseInt(p1.style.width.replace('px','')))/2)+document.body.scrollLeft;
	p1.style.height="150px";
	p1.style.zIndex='999';	
	p1.style.top=top+'px';
    p1.style.left=left+'px';
	p1.style.border="0px solid red";
	var html="";
  html+="<center>"
  html+="<div class='p3' style='height:1px;overflow:hidden;background:red;width:294px;border-left:1px solid red;border-right:1px solid red;'></div>"
  html+="<div class='p2' style='height:1px;overflow:hidden;background:red;width:296px;border-left:1px solid red;border-right:1px solid red;'></div>"
  html+="<div class='p2' style='height:1px;overflow:hidden;background:red;width:298px;border-left:1px solid red;border-right:1px solid red;'></div><div style='margin:0px auto;'>"
  html+="<div class='p1' style='height:20px;overflow:hidden;background:red;width:300px;border-left:1px solid red;border-right:1px solid red;color:#fff;font-size:9pt;font-weight:bold;text-align:left;'> ⊙ 婚网提示</div>"
	html+="</div><div id='c' style='height:100px;width:300px;background-color:#FEEACB;overflow:hidden;border-left:1px solid red;border-right:1px solid red;padding-top:40px;font-size:9pt;'>"+info+"<br><br><br></div>"
  html+="<div class='p1' style='height:1px;overflow:hidden;background:#FEEACB;width:298px;border-left:1px solid red;border-right:1px solid red;'></div>"
  html+="<div class='p2' style='height:1px;overflow:hidden;background:#FEEACB;width:296px;border-left:1px solid red;border-right:1px solid red;'></div>"
  html+="<div class='p3' style='height:1px;overflow:hidden;background:red;width:294px;border-left:1px solid red;border-right:1px solid red'></div>"
  html+="</center>"
	document.body.appendChild(p1);
	p1.innerHTML=html;
    SelectSet();
}

function SelectSet()
{
	var arr=document.getElementsByTagName("select");
	var i=0;
	while(i<arr.length){
	  arr[i].style.visibility='hidden';
	  i++;
	}
}

function WedCancelMsg()
{
    WedSetWindowHeight(1);
    document.body.removeChild(document.getElementById('p'));
	document.body.removeChild(document.getElementById('p1'));
	var arr=document.getElementsByTagName("select");
	var i=0;
	while(i<arr.length)
	{
	    arr[i].style.visibility='visible';
	    i++;
    }
}
function WedSetWindowHeight(type)
{
    var weddiv=document.getElementById("p1");
    if(document.body.scrollHeight>window.screen.availHeight)
        weddiv=document.body.scrollHeight; 
    if(type==0)
    { 
//        SelectSet();
        setTimeout("WedSetWindowHeight(0);",100);  
    }
}
document.onload=WedMsg('数据加载中....');
setTimeout("WedSetWindowHeight(0);",100);

function WedAlertMsg(info)
{
	var p=document.createElement("DIV");
	if (!info) var info='提示信息！！';
	p.id="p";
	p.style.position="absolute";
	p.style.width=window.screen.availWidth;
	p.style.height=window.screen.availHeight+500;
	p.style.zIndex='998';
	p.style.top='0px';
    p.style.left='0%';
	p.style.backgroundColor="gray";
	p.style.opacity='0.5';
	p.style.filter="alpha(opacity=80)";
	document.body.appendChild(p);
	var p1=document.createElement("DIV");
	var top=parseInt(parseInt(window.screen.availHeight)*0.25)+document.body.scrollTop;
	p1.style.position="absolute";
	p1.style.width="300px";
	p1.id="p1";
	var left=Math.ceil(((document.body.scrollWidth)-parseInt(p1.style.width.replace('px','')))/2)+document.body.scrollLeft;
	p1.style.height="200px";
	p1.style.zIndex='999';	
	p1.style.top=top+'px';
    p1.style.left=left+'px';
	p1.style.border="0px solid red";
	var html="";
    html+="<center>"
    html+="<div class='p3' style='height:1px;overflow:hidden;background:red;width:294px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p2' style='height:1px;overflow:hidden;background:red;width:296px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p2' style='height:1px;overflow:hidden;background:red;width:298px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p1' style='height:20px;overflow:hidden;background:red;width:300px;border-left:1px solid red;border-right:1px solid red;color:#fff;font-size:9pt;font-weight:bold;text-align:left;'> ⊙ 婚网提示</div>"
	html+="<div id='c' style='height:150px;width:300px;background-color:#FEEACB;overflow:hidden;border-left:1px solid red;border-right:1px solid red;padding-top:40px;font-size:9pt;'>"+info+"<br><br><br>[ <a href='javascript:this.WedCancelMsg()'>关闭</a> ]</div>"
    html+="<div class='p1' style='height:1px;overflow:hidden;background:#FEEACB;width:298px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p2' style='height:1px;overflow:hidden;background:#FEEACB;width:296px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p3' style='height:1px;overflow:hidden;background:red;width:294px;border-left:1px solid red;border-right:1px solid red'></div>"
    html+="</center>"
	document.body.appendChild(p1);
	p1.innerHTML=html;
	var arr=document.getElementsByTagName("select");
	var i=0;
	while(i<arr.length){
	  arr[i].style.visibility='hidden';
	  i++;
	}
}

function WedAlertGet(info,temp)
{
	var p=document.createElement("DIV");
	if (!info) var info='提示信息！！';
	p.id="p";
	p.style.position="absolute";
	p.style.width=window.screen.availWidth;
	p.style.height=window.screen.availHeight+500;
	p.style.zIndex='998';
	p.style.top='0px';
    p.style.left='0%';
	p.style.backgroundColor="gray";
	p.style.opacity='0.5';
	p.style.filter="alpha(opacity=80)";
	document.body.appendChild(p);
	var p1=document.createElement("DIV");
	var top=parseInt(parseInt(window.screen.availHeight)*0.25)+document.body.scrollTop;
	p1.style.position="absolute";
	p1.style.width="300px";
	p1.id="p1";
	var left=Math.ceil(((window.screen.availWidth)-parseInt(p1.style.width.replace('px','')))/2)+document.body.scrollLeft;
	p1.style.height="200px";
	p1.style.zIndex='999';	
	p1.style.top=top+'px';
    p1.style.left=left+'px';
	p1.style.border="0px solid red";
	var html="";
    html+="<center>"
    html+="<div class='p3' style='height:1px;overflow:hidden;background:red;width:294px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p2' style='height:1px;overflow:hidden;background:red;width:296px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p2' style='height:1px;overflow:hidden;background:red;width:298px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p1' style='height:20px;overflow:hidden;background:red;width:300px;border-left:1px solid red;border-right:1px solid red;color:#fff;font-size:9pt;font-weight:bold;text-align:left;'> ⊙ 婚网提示</div>"
	html+="<div id='c' style='height:150px;width:300px;background-color:#FEEACB;overflow:hidden;border-left:1px solid red;border-right:1px solid red;padding-top:40px;font-size:9pt;'>"+info+"<br><input id='Txt_num' type='text' /><br><br>[ <a href='javascript:this.Topage("+temp+")'>关闭</a> ]</div>"
    html+="<div class='p1' style='height:1px;overflow:hidden;background:#FEEACB;width:298px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p2' style='height:1px;overflow:hidden;background:#FEEACB;width:296px;border-left:1px solid red;border-right:1px solid red;'></div>"
    html+="<div class='p3' style='height:1px;overflow:hidden;background:red;width:294px;border-left:1px solid red;border-right:1px solid red'></div>"
    html+="</center>"
	document.body.appendChild(p1);
	p1.innerHTML=html;
	var arr=document.getElementsByTagName("select");
	var i=0;
	while(i<arr.length){
	  arr[i].style.visibility='hidden';
	  i++;
	}
}

function Topage(temp)
{
    document.getElementById("hid_money").value= document.getElementById("Txt_num").value;
    WedCancelMsg();
    toserver(temp);
}
