﻿// ********************************************************************************
// For Login Box
function LoginSubmit(){
	var userid = document.forms[0].login1.value;
	var passwd = document.forms[0].login2.value;

	window.open(SystemSite() + "?txtUserId="+ userid +"&txtPassword="+ passwd +"&subLogin=Login", "KGONLINE", "screenX=10,screenY=10,alwaysRaised,height=1,width=1,dependent=yes,resizable=yes,scrollbars=no,directories=no,hotkeys=no,location=no,menubar=no,personalbar=no,status=no,titlebar=no,toolbar=no");

	document.forms[0].login1.value = "";
	document.forms[0].login2.value = "";
}

function PaySubmit(){
	window.open(SignUpSite(), "KGONLINE", "screenX=10,screenY=10,alwaysRaised,height=500,width=800,dependent=yes,resizable=yes,scrollbars=no,directories=no,hotkeys=no,location=no,menubar=no,personalbar=no,status=no,titlebar=no,toolbar=no");

	document.forms[0].login1.value = "";
	document.forms[0].login2.value = "";
}

function PwdEnquiry(){
	window.open(GetPassword(), "KGONLINE", "screenX=10,screenY=10,alwaysRaised,height=500,width=800,dependent=yes,resizable=yes,scrollbars=no,directories=no,hotkeys=no,location=no,menubar=no,personalbar=no,status=no,titlebar=no,toolbar=no");
}

function LoginCallback(tMsg){
		
//	this.LoginMsg.innerHTML = tMsg;

//	if (tMsg == "")	this.LoginMsg.style.visibility = "hidden";
//	else this.LoginMsg.style.visibility = "visible";
}


function DemoSubmit(){
	//alert(DemoSite());

	window.open(DemoSite(), "KGONLINE", "screenX=10,screenY=10,alwaysRaised,height=500,width=800,dependent=yes,resizable=yes,scrollbars=no,directories=no,hotkeys=no,location=no,menubar=no,personalbar=no,status=no,titlebar=no,toolbar=no");

	return false;
}

document.write("<tr>");
document.write("    <td valign=\"top\" colspan=\"3\" height=\"78\">");
document.write("        <!-- MSCellType=\"empty\" -->");
document.write("        &nbsp;</td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td align=\"left\" width=\"57\">");
document.write("        <p align=\"right\">用户名</td>");
document.write("    <td valign=\"top\" width=\"7\">");
document.write("        <!-- MSCellType=\"empty\" -->")
document.write("        &nbsp;</td>");
document.write("    <td height=\"23\" width=\"117\">");
document.write("        <INPUT id=login1 style=\"WIDTH: 97; height:17\" name=login1></td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td width=\"57\">");
document.write("        <p align=\"right\">密&nbsp;&nbsp;&nbsp;码</p></td>");
document.write("    <td width=\"7\"></td>");
document.write("    <td valign=\"top\" height=\"23\" width=\"117\">");
document.write("        <INPUT Type=\"Password\" id=login2 style=\"WIDTH: 97; height:17\" name=login2></td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td width=\"57\">");
document.write("        <p align=\"right\">&nbsp;</td>");
document.write("    <td width=\"7\"></td>");
document.write("    <td height=\"23\" align=\"left\" width=\"117\">");
document.write("    <b><div id=\"LoginMsg\" style=\"color=red;visibility:hidden\">TESTING</div></b>");
document.write("        <!-- <INPUT type=checkbox value=y name=.persistent> 记住我的帐号--></td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td colspan=\"3\" height=\"25\">");
document.write("        <p align=\"center\">");
document.write("        <INPUT style=\"FONT-SIZE: 12px; WIDTH: 58; COLOR: #000000; HEIGHT: 22; BACKGROUND-COLOR: #e0e0de\" type=submit value=\"登 录\" onclick=\"LoginSubmit(); return false;\">&nbsp;&nbsp;&nbsp;&nbsp;");
document.write("        <INPUT style=\"FONT-SIZE: 12px; WIDTH: 58; COLOR: #000000; HEIGHT: 22; BACKGROUND-COLOR: #e0e0de\" type=submit value=\"注 册\" onclick=\"PaySubmit(); return false;\"></td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td valign=\"top\" colspan=\"3\" height=\"16\">");
document.write("        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.write("        &nbsp;&nbsp;&nbsp;");
document.write("    </td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td colspan=\"3\" height=\"28\" align=\"center\">");
document.write("        <!--登录帮助&nbsp;&nbsp; -->");
document.write("        <a href=\"#\" target=\"chkPassword\" onclick=\"PwdEnquiry(); return false;\">密码查询</a></td>");
document.write("</tr>");

document.write("<tr>");
document.write("    <td width=\"181\" colspan=\"3\">&nbsp;</td>");
document.write("</tr>");
