function getObject(objID) 
{
   return document.getElementById(objID);
}
      
function showbgdiv() 
{
    var bWidth=document.body.scrollWidth;
    var bHeight=document.body.scrollHeight;
    document.onselectstart=function(){return false;}
    document.ondragstart=function(){return false;}
    document.onmousewheel=function(){return false;}

    getObject("_YYtablebgdiv").style.display = "";
    getObject("_YYtablebgdiv").style.position="absolute";
    getObject("_YYtablebgdiv").style.top="0";
    getObject("_YYtablebgdiv").style.background="#000000";
    getObject("_YYtablebgdiv").style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=65";
    getObject("_YYtablebgdiv").style.opacity="0.6";
    getObject("_YYtablebgdiv").style.left="0";
    getObject("_YYtablebgdiv").style.width=bWidth+"px";
    getObject("_YYtablebgdiv").style.height=bHeight+"px";
    getObject("_YYtablebgdiv").style.zIndex = "10";
}

function ShowyyReg()
{
    getObject("_yyTableReg").style.display = "";
    showbgdiv();
}

function ShowyyLog()
{
    getObject("_yyTableLog").style.display = "";
    getObject("_yyTablegetpass").style.display = "none";
    showbgdiv();
}

function CloseLogReg()
{
    getObject("_yyTableReg").style.display = "none";
    getObject("_yyTableLog").style.display = "none";
    getObject("_yyTablegetpass").style.display = "none";
    getObject("_YYtablebgdiv").style.display = "none";
    document.onselectstart=function(){return true;}
    document.ondragstart=function(){return true;}
    document.onmousewheel=function(){return true;}
}

function showgetpass() 
{
getObject("_yyTableLog").style.display = "none";
getObject("_yyTablegetpass").style.display = "";
showbgdiv();
}

function ShowMessage(){
getObject("_tableMessage").style.display = "";
showbgdiv();
}

function CloseMessage(){
getObject("_tableMessage").style.display = "none";
getObject("_YYtablebgdiv").style.display = "none";
document.onselectstart=function(){return true;}
document.ondragstart=function(){return true;}
document.onmousewheel=function(){return true;}
}

function ShowInquiry(){
getObject("_tableInquiry").style.display = "";
showbgdiv();
}

function CloseInquiry(){
getObject("_tableInquiry").style.display = "none";
getObject("_YYtablebgdiv").style.display = "none";
document.onselectstart=function(){return true;}
document.ondragstart=function(){return true;}
document.onmousewheel=function(){return true;}
}


document.write("<div id='_YYtablebgdiv' style='display:none;'></div>");
document.write("");
document.write("");
document.write("");
document.write("");
document.write("<div id='_yyTableReg' style='position: absolute; z-index: 100; display: none; left: expression(Math.abs(Math.round((window.document.body.clientWidth  -  _yyTableReg.offsetWidth)/2)));");
document.write("    width: 400px; TOP: 200px; ");
document.write("");
document.write("    height: 161px;'>");
document.write("  <div style='width: 400px; height: auto; margin: 0px auto; border: 1px #DDDECD solid;");
document.write("        background-color: #F4F9FD'>");
document.write("    <div style='height: 24px; clear: both; color: #000000; font-size: 12px; padding-left: 13px;");
document.write("            padding-right: 13px; background-color:#2E9CC0;'>");
document.write("      <div style='float: left; padding-top: 6px; font-size: 14px; color: #ffffff; font-weight: bold'> 用户注册</div>");
document.write("      <div style='float: right; margin-top:4px; padding-top:1px; padding-left:5px; padding-right:5px; line-height:14px; background-color:#FFFFFF; border:1px #CCCCCC solid; color:#2E9CC0; cursor:pointer;' onclick='CloseLogReg();'>关闭</div>");
document.write("    </div>");
document.write("    <div style='margin: 12px; padding: 10px; background-color: #FFFFFF; color: #666666;");
document.write("            line-height: 22px;'>");
document.write("      <div style='border: 1px #EAEBEB solid; background-color: #ffffff; padding: 10px;");
document.write("                margin-bottom: 10px; text-align:left;'>");
document.write("        <table height='244' border='0' cellpadding='0' cellspacing='3'>");
document.write("          <tr>");
document.write("            <td align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblUserName'> 用户名称：</label>");
document.write("            </span> </td>");
document.write("            <td><input style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' id='txtUserName' size='30' />            </td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblPassWord1'> 用户密码：</label>");
document.write("              </span> </td>");
document.write("            <td><input id='txtPassWord1' type='password' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' />            </td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblPassWord2'> 确认密码：</label>");
document.write("              </span> </td>");
document.write("            <td><input id='txtPassWord2' type='password' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' />            </td>");
document.write("          </tr>");
document.write("          ");
document.write("          <tr>");
document.write("            <td align='right' style='color: #319CCE; font-size:12px;'><label id='lblUserCompany'>企业名称：</label></td>");
document.write("            <td><input id='txtUserCompany' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' /></td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right' style='color: #319CCE; font-size:12px;'><label id='lblUserAddress'>地址：</label></td>");
document.write("            <td><input id='txtUserAddress' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' /></td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right' style='color: #319CCE; font-size:12px;'><label id='lblUserMan'>联系人：</label></td>");
document.write("            <td><input id='txtUserMan' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' /></td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right' style='color: #319CCE; font-size:12px;'><label id='lblTel'>电话：</label></td>");
document.write("            <td><input id='txtTel' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' /></td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right' style='color: #319CCE; font-size:12px;'><label id='lblMobile'>手机：</label></td>");
document.write("            <td><input id='txtMobile' style='height: 20px; width:200px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' /></td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblUserMail'> 电子邮箱：</label>");
document.write("              </span> </td>");
document.write("            <td><input id='txtUserMail' style='height: 20px; border: 1px solid #D8DEE5; width:200px; background-color: #FFFFFF;' size='30' />            </td>");
document.write("          </tr>");
document.write("        </table>");
document.write("      </div>");
document.write("      <div style='background-color: #ffffff; text-align: center;'>");
document.write("        <input type='button' value='提  交' style='width:100px' onclick='submit()' />");
document.write("      </div>");
document.write("    </div>");
document.write("  </div>");
document.write("</div>");
document.write("");
document.write("");
document.write("");
document.write("<div id='_yyTableLog' style='position: absolute; z-index: 100; display: none; left: expression(Math.abs(Math.round((window.document.body.clientWidth  -  _yyTableLog.offsetWidth)/2)));");
document.write("width: 450px; TOP: 200px; ");
document.write("height: 168px;'>");
document.write("  <div style='width: 450px; height: auto; margin: 0px auto; border: 1px #BEBEBE solid;");
document.write("        background-color: #F4F9FD'>");
document.write("    <div style='height: 24px; clear: both; color: #000000; font-size: 12px; padding-left: 13px;");
document.write("            padding-right: 13px; background-color:#2E9CC0;'>");
document.write("      <div style='float: left; padding-top: 6px; font-size: 14px; color: #ffffff; font-weight: bold'> 用户登录</div>");
document.write("      <div style='float: right; margin-top:4px; padding-top:1px; padding-left:5px; padding-right:5px; line-height:14px; background-color:#FFFFFF; border:1px #CCCCCC solid; color:#2E9CC0; cursor:pointer;' onclick='CloseLogReg();'>关闭</div>");
document.write("    </div>");
document.write("    <div style='margin: 12px; padding: 10px; background-color: #FFFFFF; color: #666666;");
document.write("            line-height: 22px;'>");
document.write("      <div style='border: 1px #EAEBEB solid; background-color: #ffffff; padding: 10px;");
document.write("                margin-bottom: 10px; text-align:left'>");
document.write("        <table width='81%' height='84' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("          <tr>");
document.write("            <td width='24%' align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblLoginUserName'> 用户名称：</label>");
document.write("            </span> </td>");
document.write("            <td width='76%'><input name='Input3' id='txtLoginUserName' style='height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' />");
document.write("            </td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblLoginPassWord'> 用户密码：</label>");
document.write("            </span> </td>");
document.write("            <td><input name='password' type='password' id='txtLoginPassWord' style='height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' />");
document.write("            </td>");
document.write("          </tr>");
document.write("          <tr>");
document.write("            <td height='24' align='right'><span style='color: #319CCE; font-size:12px;'> 验证码：</span> </td>");
document.write("            <td><input name='txtLoginCheckCode' style='height: 20px; border: 1px solid #D8DEE5; background-color: #FFFFFF;text-transform: uppercase' size='10' />");
document.write("                <img src='/Common/CreateCode.aspx' height='22' width='64' alt='' title='' /> </td>");
document.write("          </tr>");
document.write("        </table>");
document.write("      </div>");
document.write("      <div style='background-color: #ffffff; text-align: center;'>");
document.write("        <input name='Submit22' type='button' value='登    录' onclick ='login()' />");
document.write("        &nbsp;");
document.write("        <input name='Submit22' type='button' value='找回密码' onclick ='showgetpass()' />");
document.write("      </div>");
document.write("    </div>");
document.write("  </div>");
document.write("</div>");
document.write("");
document.write("");
document.write("");
document.write("<div id='_yyTablegetpass' style='position: absolute; z-index: 100; display: none; left: expression(Math.abs(Math.round((window.document.body.clientWidth  -  _yyTablegetpass.offsetWidth)/2)));");
document.write("width: 450px; TOP: 200px; ");
document.write("height: 107px;'>");
document.write("  <div style='width: 450px; height: auto; margin: 0px auto; border: 1px #BEBEBE solid;");
document.write("        background-color: #F4F9FD'>");
document.write("    <div style='height: 24px; clear: both; color: #000000; font-size: 12px; padding-left: 13px;");
document.write("            padding-right: 13px; background-color:#2E9CC0;'>");
document.write("      <div style='float: left; padding-top: 6px; font-size: 14px; color: #ffffff; font-weight: bold'> 找回密码</div>");
document.write("      <div style='float: right; margin-top:4px; padding-top:1px; padding-left:5px; padding-right:5px; line-height:14px; background-color:#FFFFFF; border:1px #CCCCCC solid; color:#2E9CC0; cursor:pointer;' onclick='CloseLogReg();'>关闭</div>");
document.write("    </div>");
document.write("    <div style='margin: 12px; padding: 10px; background-color: #FFFFFF; color: #666666;");
document.write("            line-height: 22px;'>");
document.write("      <div style='border: 1px #EAEBEB solid; background-color: #ffffff; padding: 10px;");
document.write("                margin-bottom: 10px; text-align:left'>");
document.write("        <table width='81%' border='0' align='center' cellpadding='0' cellspacing='0'>");
document.write("          <tr>");
document.write("            <td width='24%' align='right'><span style='color: #319CCE; font-size:12px;'>");
document.write("              <label id='lblLoginUserName'> 电子邮箱：</label>");
document.write("              </span> </td>");
document.write("            <td width='76%'><input id='txtReturnUserMail' style='height: 20px; border: 1px solid #D8DEE5; background-color: #FFFFFF;' size='30' />");
document.write("            </td>");
document.write("          </tr>");
document.write("        </table>");
document.write("      </div>");
document.write("      <div style='background-color: #ffffff; text-align: center;'>");
document.write("        <input name='Submit2' type='button' value='提  交' onclick ='getMemberPassWord()'  />");
document.write("      </div>");
document.write("    </div>");
document.write("  </div>");
document.write("</div>");
document.write("");
document.write("");
document.write("");
document.write('<div id="_tableMessage" style="position: absolute; z-index: 100; display: none; left: expression(Math.abs(Math.round((window.document.body.clientWidth  -  _tableMessage.offsetWidth)/2)));width: 580px; TOP: 200px; height: 214px;">');
document.write('  <div style="width: 580px; height: auto; margin: 0px auto; border: 1px #DDDECD solid; background-color: #F4F9FD">');
document.write('    <div style="height: 24px; clear: both; color: #000000; font-size: 12px; padding-left: 13px;padding-right: 13px; background-color:#2E9CC0;">');
document.write('      <div style="float: left; padding-top: 6px; font-size: 14px; color: #ffffff; font-weight: bold"> 我要留言</div>');
document.write('      <div style="float: right; margin-top:4px; padding-top:1px; padding-left:5px; padding-right:5px; line-height:14px; background-color:#FFFFFF; border:1px #CCCCCC solid; color:#2E9CC0; cursor:pointer;" onclick="CloseMessage();">关闭</div>');
document.write('    </div>');
document.write('    <div style="margin: 12px; padding: 10px; background-color: #FFFFFF; color: #666666;line-height: 22px;">');
document.write('      <div style="border: 1px #EAEBEB solid; background-color: #ffffff; padding: 10px;margin-bottom: 10px">');
document.write('        <table width="99%" border="0" cellspacing="6" cellpadding="0">');
if (SiteUserName=="")
{
//document.writeln ('<tr>');
//document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"><label id="lblLoginUserName">用户名：</label></td>');
//document.writeln ('<td align="left"><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="Input2" id="txtLoginUserName"" /></td>');
//document.writeln ('</tr>');
//document.writeln (' <tr>');
//document.writeln (' <td align="right" style="color:#319CCE; font-size:12px;"><label id="lblLoginPassWord">密码：</label></td>');
//document.writeln ('<td align="left"><input name="Input3" type="password" id="txtLoginPassWord" style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" /></td>');
//document.writeln (' </tr>');
}
else
{
document.writeln ('<tr>');
document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"> 用户名称： </td>');
document.writeln ('<td align="left"><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="txtUserName" id="txtCommentUserMan" value="'+SiteUserName+'" /></td>');
document.writeln ('</tr>');
}
document.write('          <tr>');
document.write('            <td width="25%" align="right" style="color:#319CCE; font-size:12px;"> 用户邮箱： </td>');
document.write('            <td width="75%" align="left"><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="Input" id="txtCommentUserMail" />');
document.write('            </td>');
document.write('          </tr>');
document.write('          <tr>');
document.write('            <td align="right" style="color:#319CCE; font-size:12px;"> 留言标题： </td>');
document.write('            <td align="left"><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="Input2" id="txtCommentTitle" />');
document.write('            </td>');
document.write('          </tr>');
document.write('          <tr>');
document.write('            <td align="right" style="color:#319CCE; font-size:12px;"> 留言分类： </td>');
document.write('            <td align="left">'+getObject("rss_com_CommentType").innerHTML+'</td>');
document.write('          </tr>');
document.write('          <tr>');
document.write('            <td align="right" valign="top" style="color:#319CCE; font-size:12px;"> 留言内容： </td>');
document.write('            <td align="left"><textarea name="textarea" cols="40" rows="5" id="txtCommentContent" style="border: 1px solid #D8DEE5; background-color: #FFFFFF;"></textarea>');
document.write('            </td>');
document.write('          </tr>');
document.write('		  <tr>');
document.write('            <td height="24" align="right"><span style="color: #319CCE; font-size:12px;"> 验证码：</span> </td>');
document.write('            <td align="left"><input name="txtCommentCheckCode" style="height: 20px; border: 1px solid #D8DEE5; background-color: #FFFFFF;text-transform: uppercase" size="10" />');
document.write('            <img src="/Common/CreateCode.aspx" height="22" width="64" alt="" title="" /> </td>');
document.write('          </tr>');
document.write('        </table>');
document.write('      </div>');
document.write('      <div style="background-color: #ffffff; text-align: center;">');
document.write('        <input name="button" type="button" onclick="InsertComment()" value="提  交" />');
document.write('      </div>');
document.write('    </div>');
document.write('  </div>');
document.write('</div>');
document.write("");
document.write("");
document.write("");
document.write("<div id='_tableInquiry' style='position: absolute; z-index: 100; display: none; left: expression(Math.abs(Math.round((window.document.body.clientWidth  -  _tableInquiry.offsetWidth)/2))); width: 730px; TOP: 200px; height: 214px;'>");
document.write("<div style='width: 730px; height: auto; margin: 0px auto; border: 1px #DDDECD solid;background-color: #F4F9FD'>");
document.write("<div style='height: 24px; clear: both; color: #000000; font-size: 12px; padding-left: 13px;padding-right: 13px; background-color:#2E9CC0;'>");
document.write("<div style='float: left; padding-top: 6px; font-size: 14px; color: #ffffff; font-weight: bold'>我要维权</div>");
document.write("<div style='float: right; margin-top:4px; padding-top:1px; padding-left:5px; padding-right:5px; line-height:14px; background-color:#FFFFFF; border:1px #CCCCCC solid; color:#2E9CC0; cursor:pointer;' onclick='CloseInquiry();'>关闭</div>");
document.write("</div>");
document.write("<div style='margin: 12px; padding: 8px; background-color: #FFFFFF; color: #666666;line-height: 22px;'>");
document.write("<div style='border: 1px #EAEBEB solid; background-color: #ffffff; padding: 0px;margin-bottom: 10px'>");
document.write("<table border=0 cellspacing=8 cellpadding=0>");
if (SiteUserName=="")
{
//	document.writeln ('<tr>');
//	document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"><label id="lblLoginUserName">用户名：</label></td>');
//	document.writeln ('<td><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="Input2" id="txtLoginUserName"" /></td>');
//	document.writeln ('</tr>');
//	document.writeln (' <tr>');
//	document.writeln (' <td align="right" style="color:#319CCE; font-size:12px;"><label id="lblLoginPassWord">密码：</label></td>');
//	document.writeln ('<td><input name="Input3" type="password" id="txtLoginPassWord" style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" /></td>');
//	document.writeln (' </tr>');
}
else
{
	document.writeln ('<tr>');
	document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"> 用户名称： </td>');
	document.writeln ('<td><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="txtUserName" id="txtInquiryUserMan" value="'+SiteUserName+'" /></td>');
	document.writeln ('</tr>');
}   
document.writeln ('<tr>');
document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"> 用户邮箱： </td>');
document.writeln ('<td><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="Input" id="txtInquiryUserMail" /></td>');
document.writeln ('</tr>');
document.writeln ('<tr>');
document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"> 维权标题： </td>');
document.writeln ('<td><input style="height: 20px; width:180px; border: 1px solid #D8DEE5; background-color: #FFFFFF;" name="Input" id="txtInquiryTitle" /></td>');
document.writeln ('</tr>');
document.writeln ('<tr>');
document.writeln ('<td align="right" style="color:#319CCE; font-size:12px;"> 维权分类： </td>');
document.writeln ('<td>'+getObject("rss_com_InquiryType").innerHTML+'</td>');
document.writeln ('</tr>');
document.writeln ('<tr>');
document.writeln ('<td align="right" valign="top" style="color:#319CCE; font-size:12px;"> 维权内容： </td>');
document.writeln ('<td><textarea name="textarea" cols="40" rows="5" id="txtInquiryContent" style="border: 1px solid #D8DEE5; background-color: #FFFFFF;"></textarea></td>');
document.writeln ('</tr>');
document.writeln ('</table>');
document.writeln ('</div>');
document.writeln ('<div style="background-color: #ffffff; text-align: center;">');
document.writeln ('<input name="button" type="button" onclick="InsertInquiry()" value="提  交" />');
document.writeln ('</div>');
document.writeln ('</div>');
document.writeln ('</div>');
document.writeln ('</div>');
document.writeln('<script language="javascript" >getObject("rss_com_CommentType").innerHTML=""</script>');
document.writeln('<script language="javascript" >getObject("rss_com_InquiryType").innerHTML=""</script>');
