function frmsubmit()
{
	if(event.keyCode==13)
	{
		document.all.loginform.submit();
	}
}


function writeLogin(){

		document.writeln('<table width="290" height="160" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF8542">');
		document.write('<form name="loginform" action=ChkLogin.asp method=post target=_top onsubmit="return isok(this)">');
		document.writeln('<tr>');
		document.writeln('<td width="7" height="6" valign="top"><img src="loginform/login_c1.gif" width="6" height="6"></td>');
		document.writeln('<td align="center" valign="middle"><img src="loginform/spacer.gif" width="275" height="6"></td>');
		document.writeln('<td width="8" height="6" align="right" valign="top"><img src="loginform/login_c2.gif" width="6" height="6"></td>');
		document.writeln('</tr>');
		document.writeln('<tr>');
		document.writeln('<td rowspan="2">&nbsp; </td>');
		document.writeln('<td rowspan="2" align="center" valign="middle">');
		document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
		document.writeln('<tr>');
		document.writeln('<td width="21" valign="top"><img src="loginform/login_c1w.gif" width="21" height="10"></td>');
		document.writeln('<td width="233"><img src="loginform/spacer.gif" width="233" height="10"></td>');
		document.writeln('<td width="21" align="right" valign="top"><img src="loginform/login_c2w.gif" width="21" height="10"></td>');
		document.writeln('</tr>');
		document.writeln('</table>');
		document.writeln('<table width="100%" height="125" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
		document.writeln('<tr>');
		document.writeln('<td width="21" rowspan="3">&nbsp;</td>');
		document.writeln('<td width="173" height="56">');
		document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
		document.writeln('<tr>');
		document.writeln('<td width="59"><img src="loginform/login_t1.gif" width="59" height="26"></td>');
		document.writeln('<td width="114" style="background-image:url(loginform/login_bg.gif); background-repeat: no-repeat;background-position: center center;">');
		document.writeln('<table width="100%" height="26" border="0" cellpadding="0" cellspacing="6">');
		document.writeln('<tr>');
		document.writeln('<td>');
		document.writeln('<input type="text" name="username" size="15" style="font-family:宋体; font-size:9pt; color:#333333; background-color:#F8F8F8; height:12px; width:102px; border:none;">');
		document.writeln('</td>');
		document.writeln('</tr>');
		document.writeln('</table>');
		document.writeln('</td>');
		document.writeln('</tr>');
		document.writeln('<tr>'); 
		document.writeln('<td colspan="2"><img src="loginform/spacer.gif" width="173" height="4"></td>');
		document.writeln('</tr>');
		document.writeln('<tr>'); 
		document.writeln('<td><img src="loginform/login_t2.gif" width="59" height="26"></td>');
		document.writeln('<td style="background-image:url(loginform/login_bg.gif); background-repeat: no-repeat;background-position: center center;">');
		document.writeln('<table width="100%" height="26" border="0" cellpadding="0" cellspacing="6">');
		document.writeln('<tr>'); 
		document.writeln('<td><input type="password" name="userpass" size="15" style="font-family:宋体; font-size:9pt; color:#333333; background-color:#F8F8F8; height:12px; width:102px; border:none;">');
	    document.writeln('<input name="from_url" type="hidden" value="'+comeurl.value+'">')
		document.writeln('</td>');
		document.writeln('</tr>');
		document.writeln('</table>');
		document.writeln('</td>');
		document.writeln('</tr>');
		document.writeln('</table>');
		document.writeln('</td>');
		document.writeln('<td width="60" align="right"><input type=image src="loginform/login_go.gif" width="54" height="56" style="width:54; height:56; border: 0px;" ></td>');
		document.writeln('<td width="21" rowspan="3">&nbsp;</td>');
		document.writeln('</tr>');
		document.writeln('<tr>');
		document.writeln('<td height="23" colspan="2" align="center"><a href="getpass.asp">忘记密码请按这里,根据提示取回密码。</a></td>');
		document.writeln('</tr>');
		document.writeln('<tr>');
		document.writeln('<td height="46" colspan="2"><a href="reg.asp"><img src="loginform/login_reg.gif" width="233" height="46" border="0"></a></td>');
		document.writeln('</tr>');
		document.writeln('</table>');
		document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
		document.writeln('<tr>');
		document.writeln('<td width="21" valign="bottom"><img src="loginform/login_c3w.gif" width="21" height="13"></td>');
		document.writeln('<td width="233" background="loginform/login_bg1.gif"><img src="loginform/spacer.gif" width="233" height="13"></td>');
		document.writeln('<td width="21" valign="bottom"><img src="loginform/login_c4w.gif" width="21" height="13"></td>');
		document.writeln('</tr>');
		document.writeln('</table>');
		document.writeln('</td>');
		document.writeln('<td height="74" valign="top" background="loginform/login_bg2.gif"><img src="loginform/login_top.gif" width="8" height="10"></td>');
		document.writeln('</tr>');
		document.writeln('<tr>');
		document.writeln('<td valign="bottom" background="loginform/login_bg2.gif"><img src="loginform/login_bottom.gif" width="8" height="13"></td>');
		document.writeln('</tr>');
		document.writeln('<tr> ');
		document.writeln('<td height="6" valign="bottom"><img src="loginform/login_c3.gif" width="6" height="6"></td>');
		document.writeln('<td height="6" valign="bottom"><img src="loginform/spacer.gif" width="275" height="6"></td>');
		document.writeln('<td valign="bottom" align="right" height="6"><img src="loginform/login_c4.gif" width="6" height="6"></td>');
		document.writeln('</tr>');
		document.write('</form>');
		document.writeln('</table>');
}
writeLogin();