﻿	alert1 = function(txt,url){
		var shield = document.createElement("DIV");
		shield.id = "shield";
		shield.style.position = "absolute";
		shield.style.left = "0px";
		shield.style.top = "0px";
		shield.style.width = "100%";
		shield.style.height = "100%";
		shield.style.height = document.body.scrollHeight+"px";
		shield.style.background = "#333";
		shield.style.textAlign = "center";
		shield.style.backgroundColor = "#FFFFFF";
		shield.style.display = "none";
		shield.style.zIndex = "10000";
		shield.style.filter = "alpha(opacity=5)";
		
		var alertFram = document.createElement("DIV");
		alertFram.id="logindiv";
		alertFram.style.position = "absolute";
		alertFram.style.left = "50%";
		alertFram.style.top = "50%";
		alertFram.style.width = "450px";
		alertFram.style.height = "100px";
		alertFram.style.marginLeft = "-225px";
		alertFram.style.marginTop = "-75px";
		alertFram.style.textAlign = "center";
		alertFram.style.lineHeight = "20px";
		alertFram.style.backgroundColor = "#FFFFFF";
		alertFram.style.display = "none";
		alertFram.style.border = "1px #ffffff solid";
		alertFram.style.zIndex = "10001";
		
		strHtml = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
		strHtml = strHtml +  '<form method="post" action='+url+'><div style=" background-color: #ffffff;"><ul style="list-style: none; padding:0px; margin:0px;">';
		strHtml = strHtml + '<li style="background: #555555;text-align:left;padding-left:20px;font-size:14px;font-weight:bold;height:25px;line-height:25px;border:1px solid #ffffff; color: #e0e0e0;">[该 操 作 需 要 您 先 进 行 登 录]</li>';
		strHtml = strHtml + '<li style="padding-top:10px;"><span style=" color: #000000;">会员昵称: </span><Input id="username1" name="username1" type="text" class="shorttxt" /></li>';
		strHtml = strHtml + '<li style="padding-top:10px;"><span  style=" color: #000000;">用户密码: </span><Input id="userpwd1" name="userpwd1" type="password" class="shorttxt" /></li>';
		strHtml = strHtml + '<li style="padding-top:10px;"><Input id="url" name="url" type="hidden" value="'+txt+'"><Input id="enterbtn" name="enterbtn" value="登 录" type="submit" onclick="return chk1()" />&nbsp;&nbsp;<Input id="resetbtn" name="resetbtn" type="reset" value="关 闭" onclick="return closefunc()" /></li>';
		strHtml = strHtml + '</ul></div></form>';
			
		alertFram.innerHTML = strHtml;
			
		document.body.appendChild(alertFram);
		document.body.appendChild(shield);
			document.getElementById("shield").style.display = "";
			document.getElementById("logindiv").style.display = "";
	}
	function closefunc(){
		document.getElementById("shield").style.display = "none";
		document.getElementById("logindiv").style.display = "none";
	}
	
	function chk1(){
	if(chkForm("user","username1","用户名",false) == false){
		return false;
	}
	if(!chkForm("password","userpwd1","密码",false)){
		return false;
	}
}
	
	