// JavaScript Document
var dOpa = "50";

function goSubmit()
{
    loginFrm.action="../userAction.do";
    loginFrm.submit();
}

window.onload = function(){
	var div = document.createElement("DIV");
	div.id = "loginForm";
	div.style.position = "absolute";
	div.style.zIndex="1000";
	div.style.height = "361px";
	div.style.display = "none";
	div.innerHTML = getHtml();
	document.body.appendChild(div);
}

function login(){
	var div = document.createElement("DIV");
	div.id = "errMsg";
	div.style.left = 0;
	div.style.top = 0;
	div.style.width=document.body.scrollWidth;
	div.style.height = document.body.scrollHeight;
	div.style.position = "absolute";
	div.style.display = "";
	div.style.zIndex = "999";
	div.style.filter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	div.style.backgroundColor="#7B64AC";
	document.body.appendChild(div);
	focusDiv();
	
}

function focusDiv(){
	var loginDiv = document.getElementById("loginForm");
	loginDiv.style.left = (document.body.offsetWidth-510)/2;
	loginDiv.style.top = (document.body.offsetHeight-361)/2 + document.body.scrollTop;
	/*aa.innerHTML = "offsetHeight=" + document.body.offsetHeight;
	aa.innerHTML += " clientHeight=" + document.body.clientHeight;
	aa.innerHTML += " scrollHeight=" + document.body.scrollHeight;
	aa.innerHTML += " scrollTop=" + document.body.scrollTop;*/
	loginDiv.style.display = "block";
}

function getHtml(){
	var sHtml = "";
	//sHtml += '<div id="loginForm" style="position:absolute; z-index:1000; height: 364px;border:1px #666 solid; background-color:#666666;display:none">';
	sHtml += '<form name="loginFrm">';
	sHtml += '<input name="actionType" type="hidden" value="15">';
	sHtml += '<table width="507" border="0" align="center" cellpadding="0" cellspacing="0">';
    sHtml += '<tr>';
      sHtml += '<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="507" height="10">';
          sHtml += '<param name="movie" value="images/koa_top.swf">';
          sHtml += '<param name="quality" value="high">';
		  sHtml += '<param name="wmode" value="transparent"/>';
          sHtml += '<embed src="images/koa_top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="507" height="10"></embed>';
      sHtml += '</object></td>';
    sHtml += '</tr>';
	sHtml += '<tr>';
     sHtml += '<td><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
        sHtml += '<tr>';
          sHtml += '  <td width="11" align="left"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="11" height="339">';
              sHtml += ' <param name="movie" value="images/koa_left.swf">';
               sHtml += '<param name="quality" value="high">';
				sHtml += '<param name="wmode" value="transparent"/>';
               sHtml += '<embed src="images/koa_left.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="11" height="339"></embed>';
           sHtml += '</object></td>';
           sHtml += '<td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
              sHtml += '<tr>';
                sHtml += '<td height="21" align="right" valign="bottom" background="images/top_logo.jpg"><table  border="0" cellspacing="0" cellpadding="0">';
                 sHtml += ' <tr>';
                    sHtml += ' <td width="21"><img src="images/gb.jpg" width="17" height="17" border="0"  style="cursor:hand;" onclick="hiddenFlashLoginWindow();"></a></td>';
                     sHtml += '<td width="18"><a href="#"><img src="images/faq.jpg" width="17" height="17" border="0"></a></td>';
                      sHtml += '<td width="10">&nbsp;</td>';
                    sHtml += '</tr>';
                 sHtml += '</table></td>';
               sHtml += '</tr>';
               sHtml += '<tr>';
                sHtml += '<td height="95" background="images/logo1.jpg">&nbsp;</td>';
               sHtml += '</tr>';
               sHtml += '<tr>';
               sHtml += '<td height="140" valign="top" background="images/mias.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
                 sHtml += '<tr>';
                   sHtml += '<td width="22%" height="140">&nbsp;</td>';
                    sHtml += '<td width="55%" valign="top"><table width="100%" height="140"  border="0" cellpadding="0" cellspacing="0">';
                       sHtml += '<tr>';
                         sHtml += '<td valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0">';
                               sHtml += '<tr>';
                                sHtml += '<td valign="middle" class="td"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
                                   sHtml += '<tr>';
                                      sHtml += '<td class="tdss">ÓÃ»§Ãû£º</td>';
                                        sHtml += '<td><input name="username" type="text" class="textInput" size="25"></td>';
                                      sHtml += '</tr>';
                                    sHtml += '</table></td>';
                                  sHtml += '</tr>';
                                  sHtml += '<tr>';
                                    sHtml += '<td height="10"></td>';
                                  sHtml += '</tr>';
                                 sHtml += ' <tr>';
                                    sHtml += '<td valign="middle" class="td"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
                                      sHtml += '<tr>';
                                        sHtml += '<td class="tdss">ÃÜ&nbsp;&nbsp;&nbsp;Âë£º</td>';
                                       sHtml += '<td><input name="userpwd" type="password" class="textInput" size="25" onkeydown="if(event.keyCode==13){getNameAndPwd(document.all.username.value,document.all.userpwd.value);}"></td>';
                                      sHtml += '</tr>';
                                    sHtml += '</table></td>';
                                  sHtml += '</tr>';
                                  sHtml += '<tr>';
                                    sHtml += '<td height="10">&nbsp;</td>';
                                  sHtml += '</tr>';
                                 sHtml += ' <tr>';
                                    sHtml += '<td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:goSubmit();"><img src="images/an.jpg" width="110" height="34" border="0"></a></td>';
                                 sHtml += ' </tr>';
                                  sHtml += '<tr>';
                                  sHtml += '<td align="right" class="td1" id="mima"><a href="javascript:void(0);" onclick="openWindow()"></a>&nbsp;&nbsp;&nbsp;&nbsp;</td>';
                                 sHtml += '</tr>';
                              sHtml += '</table></td>';
                            sHtml += '</tr>';
                        sHtml += '</table></td>';
                        sHtml += '<td width="23%">&nbsp;</td>';
                      sHtml += '</tr>';
                  sHtml += '</table></td>';
                sHtml += '</tr>';
                sHtml += '<tr>';
                  sHtml += '<td height="83" valign="bottom" background="images/but.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
                    sHtml += '<tr>';
                     sHtml += '<td align="center" class="tds">Copyright &copy; 2004-2006 35 Technology Co., Ltd. All Rights Reserved.</td>';
                   sHtml += ' </tr>';
                  sHtml += '</table></td>';
                sHtml += '</tr>';
           sHtml += ' </table></td>';
            sHtml += '<td width="10" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="10" height="339">';
               sHtml += '<param name="movie" value="images/koa_right.swf">';
               sHtml += '<param name="quality" value="high">';
				sHtml += '<param name="wmode" value="transparent"/>';
               sHtml += '<embed src="images/koa_right.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="10" height="339"></embed>';
           sHtml += '</object></td>';
        sHtml += '</tr>';
     sHtml += '</table></td>';
   sHtml += '</tr>';
   sHtml += '<tr>';
    sHtml += ' <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="507" height="11">';
       sHtml += ' <param name="movie" value="images/koa_but.swf">';
        sHtml += ' <param name="quality" value="high">';
		sHtml += '<param name="wmode" value="transparent"/>';
         sHtml += '<embed src="images/koa_but.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="507" height="11"></embed>';
     sHtml += '</object></td>';
    sHtml += '</tr>';
 sHtml += '</table>';
 sHtml += '</form>';
  // sHtml += '</div>';
	return sHtml;
}

