
var wwwhost=window.location.hostname
function b(pport,phost,roomid)
{
	if(validname(document.form1.elements[0])){
	  	document['form1'].action='http://'+phost+':'+pport+'/';
	  	document['form1'].ROOMID.value=roomid
	  	launchchat();
	  	document['form1'].method='post';
		document.form1.submit();
	}
}
function validname(str1)
{
	var s,i,j;
	if (str1.value.length <1){
		alert("请先输入您的用户名[Name]，再进房间！谢谢！  ");
		str1.focus();
		return false;
	}
	s="'#&＊﹡*\干\骚\逼\鸡\脱\淫\操\婊\炮\妻\秀\锈\乳\"";
	str=str1.value.toString();
	for (i=0; i<str.length; i++){
	   for(j=0;j<s.length;j++){
		if (str.charAt(i) == s.charAt(j))
	{
			alert("您的名字中包含有本站保留特殊字符");
			str1.focus();
			return false;
		}
	}
	}
	return true;
}
var focusok=false;
if (navigator.appName == "Netscape"){
	focusok=true;
}
vers = navigator.appVersion;
if (navigator.appName == "Microsoft Internet Explorer"){
pos = vers.lastIndexOf('.');
vers = vers.substring(pos-1,vers.length);
}
proper_version = parseFloat(vers);
if(proper_version>=5){
	focusok=true;
}
function launchchat(){
var chat = window.open("","chat","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=890,height=560");
if(focusok){
	chat.focus();
}
return true;
}
var bikky = document.cookie;
function getCookie(name){
name += "=";
var i = 0;
while (i < bikky.length){
var offset = i + name.length;
if (bikky.substring(i, offset) == name){
var endstr = bikky.indexOf(";", offset);
if (endstr == -1) endstr = bikky.length;
return unescape(bikky.substring(offset, endstr));
}
i = bikky.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function show_online(init){
	this.document.write (online[init]);
}


function Open2Win()
	{
	open('http://gogo.xeyo.com/reg/SetPsw.aspx','change','width=520,height=600,left=200,top=100,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open5Win()
	{
	open('http://www1.7liao.com/help/shouze.htm','change','width=566,height=600,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open6Win()
	{
	open('http://www1.7liao.com/help/fangfa.htm','change','width=566,height=600,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open8Win()
	{
	open('http://www1.7liao.com/help/jiexi.htm','change','width=566,height=600,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open9Win()
	{
	open('http://gift.xeyo.com/front/Login.aspx?DirectPage=CSMj.aspx&user=*!!七聊客服','change','width=669,height=538,left=200,top=100,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open10Win()
	{
	open('http://gift.xeyo.com/front/Login.aspx?DirectPage=UpdVipMJ.aspx&user=*!!七聊客服','change','width=669,height=538,left=200,top=100,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open11Win()
	{
	open('http://gift.xeyo.com/front/Login.aspx?DirectPage=UpdMJClass.aspx&user=*!!七聊客服','change','width=669,height=538,left=200,top=100,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open12Win()
	{
	open('http://gift.xeyo.com/front/Login.aspx?DirectPage=GiftSent.aspx&user=*!!七聊客服','change','width=669,height=538,left=200,top=100,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}
function Open13Win()
	{
	open('http://gift.xeyo.com/front/Login.aspx?DirectPage=XcName_Select.aspx&user=*!!七聊客服','change','width=669,height=538,left=200,top=100,location=no,status=no,menubar=no,resizable=yes,scrollbars=yes')
	}