﻿document.writeln("<div class=\"login\">");
document.writeln("<form name=\"loginForm\" id=\"loginForm\" method=\"post\" action=\"http://vip.tq.cn/vip/index.do\"  onsubmit=\"return submitForm()\">");
document.writeln("<input type=\"hidden\" id=\"isForceLogin\" name=\"isForceLogin\" ><input type=\"hidden\" id=\"otherLoginToken\" name=\"otherLoginToken\" value=\"\" >");
document.writeln("<div class=\"lnl\">");
document.writeln("<li><select name=\"logintype\" size=\"1\" id=\"logintype\" >");
document.writeln("                          <option value=\"strid\" >登录名<\/option>");
document.writeln("                          <option value=\"uin\" >T Q 号<\/option>");
document.writeln("                        <\/select></li>")
document.writeln("<li><input name=\"uin\"  id=\"uin\" type=\"text\"  class=\"inp\"\/></li><li>&nbsp;&nbsp;&nbsp;密码：</li><li><input name=\"passWord\" id=\"passWord\" type=\"password\"  class=\"inp\" \/><\/li>");
document.writeln("<li><input name=\"\" type=\"image\" src=\"images2010\/login.jpg\" \/><\/li>");
document.writeln("<li class=\"other\"><a href=\"http:\/\/www.tq.cn\/vip\/prenewadmuser.do\" target=_blank><img src=\"images2010\/reg.jpg\" border=\"0\" \/><\/a><\/li>");
document.writeln("<li class=\"other\"><a href=\"download.html\"><img src=\"images2010\/download.jpg\" border=\"0\" \/><\/a><\/li>");
document.writeln("<\/div>");
document.writeln("<\/form>");
document.writeln("");
document.writeln("");
document.writeln("<script>");
document.writeln("var marqueeContent=new Array();   \/\/滚动主题");
document.writeln("                  	");



document.writeln("marqueeContent[0]=\'<li>2010-07-08&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/news.xinhuanet.com\/tech\/2010-07\/08\/c_12312791.htm\" target=\"_blank\">&nbsp;&nbsp;TQ 7呼叫中心全国同步发布<\/a><\/li>\';");
document.writeln("marqueeContent[1]=\'<li>2010-07-01&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/net.chinabyte.com\/465\/11403465.shtml\" target=\"_blank\">【比特网】&nbsp;&nbsp;TQ在线客服成为2010年中国网络营销大会合作方<\/a><\/li>\';");
document.writeln("marqueeContent[2]=\'<li>2010-05-14&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/net.chinabyte.com\/314\/11327314.shtml\" target=\"_blank\">【比特网】&nbsp;&nbsp;TQ引领在线客服进入云通讯时代<\/a><\/li>\';");
document.writeln("marqueeContent[3]=\'<li>2010-05-13&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/www.hnsc.com.cn\/news\/2010\/05\/13\/477678.html\" target=\"_blank\">【人民网】&nbsp;&nbsp;洛阳市召开河南籍知名IT人恳谈会，TQ首席运营官吕晓波出席<\/a><\/li>\';");
document.writeln("marqueeContent[4]=\'<li>2010-04-28&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/tech.sina.com.cn\/i\/2010-04-28\/17474123635.shtml\" target=\"_blank\">【新浪互联网】&nbsp;&nbsp;探讨电子商务网站的流量转化问题 -- 2010中国B2C电子商务峰会(CEO孙志强)<\/a><\/li>\';");



document.writeln("");
document.writeln("var marqueeInterval=new Array();  \/\/定义一些常用而且要经常用到的变量");
document.writeln("var marqueeId=0;");
document.writeln("var marqueeDelay=4000;");
document.writeln("var marqueeHeight=15;");
document.writeln("function initMarquee() {");
document.writeln(" var str=marqueeContent[0];");
document.writeln(" document.write(\'<div id=marqueeBox  class=\"lnr\" style=\"overflow:hidden;height:\'+marqueeHeight+\'px\" onmouseover=\"clearInterval(marqueeInterval[0])\" onmouseout=\"marqueeInterval[0]=setInterval(\\\'startMarquee()\\\',marqueeDelay)\"><div>\'+str+\'<\/div><\/div>\');");
document.writeln(" marqueeId++;");
document.writeln(" marqueeInterval[0]=setInterval(\"startMarquee()\",marqueeDelay);");
document.writeln(" }");
document.writeln("function startMarquee() {");
document.writeln(" var str=marqueeContent[marqueeId];");
document.writeln("  marqueeId++;");
document.writeln(" if(marqueeId>=marqueeContent.length) marqueeId=0;");
document.writeln(" if(marqueeBox.childNodes.length==1) {");
document.writeln("  var nextLine=document.createElement(\'DIV\');");
document.writeln("  nextLine.innerHTML=str;");
document.writeln("  marqueeBox.appendChild(nextLine);");
document.writeln("  }");
document.writeln(" else {");
document.writeln("  marqueeBox.childNodes[0].innerHTML=str;");
document.writeln("  marqueeBox.appendChild(marqueeBox.childNodes[0]);");
document.writeln("  marqueeBox.scrollTop=0;");
document.writeln("  }");
document.writeln(" clearInterval(marqueeInterval[1]);");
document.writeln(" marqueeInterval[1]=setInterval(\"scrollMarquee()\",10);");
document.writeln(" }");
document.writeln("function scrollMarquee() {");
document.writeln(" marqueeBox.scrollTop++;");
document.writeln(" if(marqueeBox.scrollTop%marqueeHeight==marqueeHeight){");
document.writeln("  clearInterval(marqueeInterval[1]);");
document.writeln("  }");
document.writeln(" }");
document.writeln("initMarquee();");
document.writeln("<\/script>");
document.writeln("<\/div>");
document.writeln("");
document.writeln("<script language=\"javascript\">");
document.writeln("var ipseek_url = \"http:\/\/www.ip.cn\/getip.php?action=queryip&ip_url=\";");
document.writeln("");
document.writeln("	\/\/检测是否是数字，是返回 true ，否则返回false");
document.writeln("function isNum(ch)");
document.writeln("{");
document.writeln("	if(ch >= \"0\" && ch <= \"9\")return true;");
document.writeln("	return false;");
document.writeln("}");
document.writeln("");
document.writeln("\/\/检验一个字符串是否由数字组成");
document.writeln("function isRightNumStr(numStr)");
document.writeln("{			");
document.writeln("	var rightFlag = true ;");
document.writeln("	for (i=0; i<numStr.length; i++)");
document.writeln("	{	");
document.writeln("		if( false==isNum(numStr.charAt(i)) )");
document.writeln("		{");
document.writeln("			rightFlag = false ;");
document.writeln("			break ;				");
document.writeln("		} 		");
document.writeln("	}	");
document.writeln("	return rightFlag ;	");
document.writeln("}");
document.writeln("");
document.writeln("    function submitForm(){");
document.writeln("    	var logintype = document.getElementById(\"logintype\");");
document.writeln("       var uin = document.getElementById(\"uin\");");
document.writeln("       var passWord = document.getElementById(\"passWord\");");
document.writeln("       ");
document.writeln("       if(logintype.value==\"uin\")");
document.writeln("       {");
document.writeln("	       if(uin==null || uin.value.length<1){");
document.writeln("	       	 alert(\"请输入帐号！\");");
document.writeln("	      	 uin.focus();");
document.writeln("	         return false;");
document.writeln("	       }else if(isRightNumStr(uin.value)==false){      ");
document.writeln("	         alert(\"请输入数字帐号\");");
document.writeln("	      	 uin.focus();");
document.writeln("	         return false;");
document.writeln("	       }");
document.writeln("	   }");
document.writeln("	   else");
document.writeln("	   {");
document.writeln("	   	if(uin==null || uin.value.length<1){");
document.writeln("	       	 alert(\"请输入登录名！\");");
document.writeln("	      	 uin.focus();");
document.writeln("	         return false;");
document.writeln("	       }");
document.writeln("	   }");
document.writeln("       ");
document.writeln("    if(passWord==null || passWord.value==\"\" || passWord.value.length<1)");
document.writeln("	{");
document.writeln("		alert(\"密码不能为空!\");");
document.writeln("		passWord.focus();");
document.writeln("		return false ;");
document.writeln("	} ");
document.writeln("    return true;   ");
document.writeln("    \/\/document.forms[\"loginForm\"].submit();");
document.writeln("    }                  	");
document.writeln("           ");
document.writeln("	function queryIp(ip)");
document.writeln("	{");
document.writeln("		queryIpFrame.location=\"\"+ip;");
document.writeln("		document.getElementById(\"queryIpFrameDIV\").style.visibility=\"visible\";");
document.writeln("		document.getElementById(\"queryIpFrameDIV\").style.display=\"\";");
document.writeln("");
document.writeln("	}");
document.writeln("	function forceLogin()");
document.writeln("	{");
document.writeln("		document.getElementById(\"isForceLogin\").value=\"1\";");
document.writeln("		document.forms[\"loginForm\"].submit();");
document.writeln("	}");
document.writeln("   ");
document.writeln(" <\/script> ")