//////////űlwbh1.0̺ϵ޸Ż巿//////////////2004.9.16///////////
// ʹ÷<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false'> <script>var div_msg4=' ʾ  ';var div_msg3='  ';var yanse='1';</script><script language='JScript.Encode'  src='http://liaowan.com/chatjs/2009.js'></SCRIPT> 
var m_fullscreen_bgimage = parent.u.document.body.background;
var a_user = document.inputform.USER.value;
var a_pass = document.inputform.PASS.value;

var cipdz="http://pic.liaowan.com/houdai/showadmin.asp" ;    //ַ̨
enable_auto_log("http://pic.liaowan.com/houdai/login.asp")

var config_place = "http://pic.liaowan.com/gif/";  //	ͼƬȵĴλã趨ΪͼƬλ

var room_owner="*ٶ";			//
var room_name="ʮԼ";			//	
var room_adminname_head="";	//	ҹʽ
var room_adminname_headg="";	//	Ҹʽ
var majia = "" ;            //   Ĭϻ׸ʽ

var room_number="2009";			//	
var black_roomname="";	//	˫   ˫
var black_roomnumb="";	//	˫
var room_link_url = "http://"+room_number+".liaowan.com";

//	бHTML
var userlist_top_html = " <table border=0 width=120px cellspacing=0></td><tr></tr><tr><td align=middle><img src=http://pic.liaowan.com/sb/2009.gif><BR><tr><td align=middle><img src=http://pic.liaowan.com/gif/hx.gif>"; //бͷʾ
var userlist_bottom_html = "<marquee scrollamount='2' > <font color=2e8b57> "+room_name+"ӭ</font><font color=ff0000>"+a_user+"</font><font color=2e8b57>ĵҪ¹9999 </font></marquee></a>";
var userlist_bkcolor = "#e5fffd";	//	бıɫ
var userlist_bkimage = "b1.gif";			//	бıͼΪմʹͼƬ
var voice_normal_color = "#00D000";	//	ʱͼɫ
var voice_v2v_color = "#000000";	//	˫ʱͼɫ
var voice_vr_color = "#00D000";		//	Ƶʱͼɫ

var div_screen_bkcolor = "e5fffd";		//	ɫ
var div_screen_bkimage = "";		//	ͼƬ	

var voice_bkcolor = "#e5fffd";		//	ı
var voice_bkimage = "fp.gif";				//	ıͼմʹͼƬ

var input_bkcolor = "#e5fffd";		//	ɫ
var input_bkimage = "b2.jpg";				//	ͼƬ
var input_msg_color	= "#0000ff";	//	ɫ
var input_msg_bkcolor = "#ffffff";	//	򱳾ɫ

var body_text_color	= "#038ffe";	//	ɫ
var select_color = "#038ffe";		//	бɫ
var select_text_color = "#038ffe";	//	бɫ
var button_text_color = "#660099";	//	ťɫ
var button_bk_image	= 1;			//	ťʹñͼƬ1--ʹã0--ʹ
var button_bk_color = "";			//	ťʹͼƬʱɫ

var full_screen_bkimage	= 1;		//	Ƿʹ屳ͼƬ0--ʹã1--ʹ   2--
var auto_hide_scrollbar = 0;		//	屳ʱǷԶع0--أ1--

//	ťͼƬ  ,ļ
var a_btn_pic = new Array
(
	17,		"fh180.gif",
	18,		"fh180.gif",
	19,		"fh180.gif",
	35,		"fh350.gif",
	46,		"fh460.gif",
	70,		"fh700.gif"
);


var url_popup_window = "";			//	ʱĴڣΪ򲻵
var	only_registr_user = 0;			//	ֻעû,0ƣ1ֻעû
var	only_chinese_name = 0;			//	ֻû,0ƣ1ֻû
var default_admin_pass = "123";	//	ĬϵĹԱϹܿ

var auto_open_ai = 1;				//	Զͼ,0򿪣1Զ
var auto_open_div = 1;				//	Զ,01Զ
var multi_singer_list = 0;			//	Ƿظ01
var qqh=0;                             //    ǷĬĻ   0---ĬϹ   1---Ĭ   2---ǿ     3----ֻʻǿ


var msg_login		=	"Һãҡ"+a_user+"ˣ" + room_name + "ļ~~~";
var msg_admin		=	"Һã"+a_user+"Ϲ,Ϊҷ  :)  ";
var msg_quitadmin	=	""+a_user+"¹ˣллҶҵ֧֣";
var msg_leave		=	"λ"+a_user+"һ,´ٺʹģ";

//	
var div_msg_color1 = "#FF0000";		//	ɫ
var div_msg_color2 = "#8800FF";		//	ɫ

var div_msg1 = "";
var div_msg2 = "";
//var div_msg3 = "ӭ"+room_name+"Ƶ!~~ӶƵֱӵֺС۾<a target=_blank href='http://www.liaowan.com/' title='延ӭ'><IMG align=absMiddle src=http://liaowan.com/logo/logo.gif></a>";
//var div_msg4 = "֪ͨ";  //֪ͨ
var div_link = "";
//	Ӱť
var jilu="http://pic.liaowan.com/houdai/showadmin.asp";   //ˢַ   ʱû

/////6/////
var a_link_button = new Array
(
	"ҳ","http://www.liaowan.com/",
	"̳","http://www.liaowan.com/bbs",
	"ע","http://www.liaowan.com/USadmin/regadd.asp",
	"̨","http://radio.lwmm.com/",
       "","http://mp3.baidu.com",
       "","http://www.bluesky.com.cn/faq.htm"
);

//	е VIP 
//	0---  1--2--  3--... 4-----߼   5---Աʽ  6----ָʽ    7--ע  8----   9---
var a_vip_user = new Array
(
     "*Ѭ²",  7,
     "*~Ȼ",  7,
     "*̺",   7,
     "*",    7,
	"*5400000",			7,
	"*5411111",			7
);

//--ˣаֵѣֻҪVIPѣ׼뷿--
var a_name_filter = new Array
(
	"̺",
       "",
	"֤",
	"11111"
);


//ˣƣȼǿģѿԿ֡
var a_hide_user = new Array
(
	"*ϵ",	           0

);
// һӱ
//      
     var bianyi = new Array
     (
     "*ϵ",
     "*~̺",
     "*~Ȼ",
     "*̺",
     "*5411111",
     "*5400000"

     );
//˵ڴ޸ֵɫ   09
var a_usertitle = new Array
(
	0,	"߹",	"yg.gif",	"#FF0000",	"#ffffff",
	1,	"վѲ",	"0002.gif",	"#000000",	"#ffffff",
	2,	"",	"0001.gif",	"#ff00ff",	"#ffffff",
	3,	"߼",	"0003.gif",	 "#333333",	"#ffffff",
	4,	"ƹ",	"0004.gif","#F3942E",	"#ffffff",
	5,	"Ա",	"016.gif",	"#34c534",	"#ffffff",
	6,	"Ҽα",	"alogo2.gif ", "#61598a",	"#ffffff",
	7,	"ע",	"http://pic.liaowan.com/tb/035.gif",	"#2c07fe",	"#ffffff",
	8,	"",	"4.gif ",	"#2c07fe",	"#ffffff",
	9,	"",	"http://pic.liaowan.com/tb/011.gif",	"#2c07fe",	""
);

// 
var wudimajia=new Array("*̺","*","*~̺","*~Ȼ","*5411111","*5400000",
"*ϵ","*Ѭ²","*Ϫ","*ϵ" 
 );  
//,עⷿŵд
var a_roomlink = new Array
(
	black_roomname,	black_roomnumb,
	"˼",	"2004",
	"гԵ",	"2042",
	"һ",	"2037",
	"쾲Բ",	"2015",
	"ҶƮ",	"2030",
	"Լ",	"2036",
	"",	"2032",
	"ɫ",	"2021",
	"˼԰",	"2014",
	"С",	"2045",
	"",	"2017",
	"",	"2033",
	"ʮԼ",	"2009",
	"С",	"2011",
	"õ",	"2002",
	"ഺ",	"2044",
	"w",	"2028",
	"վ",	"2013",
	"",	"2040",
	"֪",	"2012",
	"ʮԵ",	"2022",
	"",	"2027",
	"Ե",	"2043",
	"֮",	"2000",
	"",	"2005",
	"Ů",	"2041",
	"",	"2018",
	"ϣ",	"2031",
	"̨",	"2024",
	"Ե",	"2029",
	"ռ",	"2006",
	"",	"2035",
	"ϺԵ",	"2010",
	"Ů",	"2034",
	"ʮ",	"2019",
	"  ",	"2001",
	"ֽ",	"2020",
	"̺",	"2038",
	"һԵ",	"2023",
	"Ưѩ",	"2016",
	"ķ",	"2026",
	"԰",	"2008",
	"ҹ",	"2025",
	"",	"2046",
	"",	""
);

now = new Date(),hour = now.getHours()
if(hour < 6){ var wenhao="!ô,컹û!"; }
else if (hour < 9){var wenhao="Ϻ!";}
else if (hour < 11){var wenhao="!";}
else if (hour < 14){var wenhao="!";}
else if (hour < 18){var wenhao="!";}
else if (hour < 23){var wenhao="Ϻ!";}
else {var wenhao="!ҹ㻹˯?";
}

//----
var a_linkurl = new Array
(
	"",		"",
	"̳",		"http://www.369590.com",
	"ע",		"http://liaowan.com/USadmin/regadd.asp",
	"",		"http://liaowan.com/help/",
	"ַ",		"",
	"̨",		"http://www.tvma.com.cn/xianshangliange/banzouxiazai.asp",
       "",          "http://www.meetchinese.com/song/music.html",
       "ɫ",          "http://www.l521.com/banzou/",
       "Ѱ",         "http://www.163888.net/blist.asp",
	"",		"http://mtv99.com",
	"ѹ",		"http://www.sogua.com",
	"",		"http://www.chinamp3.net/search/index.php",
	"ٶmp3",		"http://mp3.baidu.com",
	"ٶflas",		"http://flash.baidu.com",
	"̨",		"http://pic.liaowan.com/houdai/admin.asp",
	"",		"http://liaowan.com/roomadmin/",
	"̨",		""+cipdz+""
);



//--ӭ--
var a_welcome = new Array
(
	"ӭ",	" "+room_name+" ӭ㣡ששששששף ( http://"+room_number+".liaowan.com)",
	"ӭ",	""+room_name+"ӭĹ٣ԸĿģ죡( http://"+room_number+".liaowan.com) ",
	"ӭ",	"ãשש .ȿһ.͵Ŷ~~~̲~( http://"+room_number+".liaowan.com) ",
	"ӭ",	"񨍨 "+room_name+" Ĩ쨍Ҩӭ ( http://"+room_number+".liaowan.com) " 
);


//--׻--
var a_flower = new Array
(
	"",	"! * ǩɣ..ҲҪ......˭Ȱ..~~ǩĶأ..ǩ·ϰɣҪӡŶ~~ҵЬ~",
	"ǩ",	"~̫~~Ķ~~ǩ~ ~~~̫~~Ķ~0~",
	"",	"---ࡢࡢࡢࡢɡˣࡢࡢࡢʻࡢࡢࡢࡢࡢɡˣࡢࡢ",
	"",	"ðŶˡðŶðŶðŶžžž",
	"",	"ңרҵ~~~~רt...rרtrǡ(((((žž)))))רtרtǩǩ)٣~~~~ **ҵЬأ۾ ",
	"õ",	"õ廨rrҩrtrϻtrȻtr׻tr㻨trлtr 񻨡ϻ",
	"",	" * ǰ * *** ̫ˣ㳪һǸǳİ* ~",
	"ż",	"*ߡ֡ʻ֡ʻż񡫡ǩ * **ż񡫡ǩ *",
	"ٺ",	"רtrרtrǡפ(((((((((žž))))))))רtr϶רtrˮɻרtrרtrҰٺɡרtr",
	"",	"~~tr򻨨tƣPA PAõtrٺϨtrĵtrtrһ֦ңϷ",
	"",	":嗀K*嗀YK*嗀 K *嗀K",
	"žž",	"*^_^*ž *^_^*ž *^_^*ž *^_^* *^_^*ž *^_^*ž *^_^*ž *^_^*ž *^_^*",
	"ˮ",	"õ廨רtrרtrǡרtr(((((((((žž))))))))רtr϶רtrפרtrˮɻרtrרtr",
	"ĵ",	"* *ĵ *ջ * *ҹһһһĵ *ջ * *ҹ* *һһһ"
);


//----
var a_byebye = new Array
(
	"","ߺãټףĿ",
	"ߺ","õģݰݣףĿ "
);


//----
var a_leave = new Array
(
	"",	"Bye~~~~~~~~~ټҪˣףĿ~~~~~~~~~~~ ",
	"",	"Bye~~~~~~~~~ټҪˣףĿ~~~~~~~~~~~~ "
);

//--л--
var a_da = new Array
(
	"л",	"лл!!лл!!!!  ",
	"л",	"ллǵʻ,͹!!!",
	"л",	"ĸлǵ!!! "
);

//----
var a_wen = new Array
(
	"","**,עԼԻ,ǺѿЦĻ,лл!!!!! ",
	"","**,עԼԻ,ǺѿЦĻ,лл!!!!!! "
);

//----
var a_huan = new Array
(
	"","ǵķ䲻ӭֽ֣Ȼȥˣллĺ ",
	"","ǵķ䲻ӭֽ֣Ȼȥˣллĺ! "
);

//--Ҫ--
var a_wantmic = new Array
(
	"Ҫ",	"999999999999999999999999Ҫѽ9999999",
	"",	"999999999999999999999999Ҫѽ99999999"
);

//----
var a_heart = new Array
(
	"",	"||||||||||||||||||||||||",
	"",	"|||||||||||||||||||||||||"
);
//----
var a_dai = new Array
(
	"",	"ԱҪ谡9999999999999999999999999(򳬹5Ͳ) ",
	"",	"ԱҪ谡9999999999999999999999999(򳬹5Ͳ)   "
);

//--׼--
var a_zhun = new Array
(
	"׼",	"!һλ,׼~~!()лл ",
	"׼",	"!һλ,׼~~! ()лл"
);

//----
var a_yao = new Array
(
	"",	"_У!װ,ӭĵ,Ըҳһ׸лл_У",
	"",	"_У!װ,ӭĵ,Ըҳһ׸лл_С"
);

//--ַ--
var a_wang = new Array
(
	"ַ",	"ַ"+room_link_url+" ",
	"ַ",	" ַ"+room_link_url+" "
);
//----
var a_shi = new Array
(
	"",	"ԱáҪ66666666666666666666666 ",
	"",	"ԱáҪ666666666666666666666666 "
);

//----
var a_ju = new Array
(
	"",	"ܱǸϹ֣ܺ죬½⡣ ",
	"","ܱǸϹ֣ܺ죬½⡣ "
);

//--δ--
var a_wei = new Array
(
	"δ",	"!ȫ˫Ի,ǵݲŶ ",
	"δ","!ȫ˫Ի,ǵݲŶ   "
);

//----
var a_wu = new Array
(
	"",	"!װ,ǵ,û,ٵһ,Ҫ ",
	"","!װ,ǵ,û,ٵһ,Ҫ   "
);

//----
var a_jie = new Array
(
	"",	"!,˼,õ,Ӻ˷ ",
	"","!,˼,õ,Ӻ˷   "
);

//--Ѿ--
var a_yi = new Array
(
	"Ѿ",	"!Ϊ,ĴȺҲ׼һ Ϊķɣ ",
	"Ѿ", "!Ϊ,ĴȺҲ׼һ Ϊķɣ    "
);

//--󲻺--
var a_duan = new Array
(
	"󲻺",	"!̫,Ƕ϶,ٵһҪ?лл ",
	"󲻺",   "!̫,Ƕ϶,ٵһҪ?лл   "
);

//----
var a_guan = new Array
(
	"",	"ѣˣ½ǵ˷ͼ꣬ʹɺ棬Ͳϱ˵󣡵˵ͳʱٵһ£ʧ˵лл ",
	"",   "ѣˣ½ǵ˷ͼ꣬ʹɺ棬Ͳϱ˵󣡵˵ͳʱٵһ£ʧ˵лл   "
);

//--ܾ˫--
var a_shuang = new Array
(
	"ܾ˫",	"!ʮֶԲڲܺ˫½⡣  ",
	"ܾ˫",  "!ʮֶԲڲܺ˫½⡣    "
);

//--ھ--
var a_hei = new Array
(
	"ھ",	"ڴ~~~û~~~~СPP  ",
	"ھ",  "ڴ~~~û~~~~СPP    "
);

//--Ϸ--
var a_heng = new Array
(
	"Ϸ",	"ϲϺн===============================================   ",
	"Ϸ",  "ϲϺн===============================================     "
);

//----
var huati = new Array
(
	"",	""+div_msg4+"",
	"",  ""+div_msg4+"  "
);

//	ר
var a_admin = new Array
(
	"ַ",	"ַ "+ room_link_url ,"color:#009900",
	"׼",	"ãӭ" + room_name + "һ,׼!!!!","",
	"ܾ˫",	"!ʮֶԲڲܺ˫½⡣ ","color:#6600ff",
	"ܾ",	"!ʮֶԲϹܲܺ죬½⡣ ","color:#6600ff",
	"Ѿ",	"!Ϊ,ĴȺ!","",
	"",	"!,˼,õ,Ӻ˷!","",
	"",	"ѣˣ½ǵ˷ͼ꣬ʹɺ棬Ͳϱ˵󣡵˵ͳʱٵһ£ʧ˵лл","",
	"뿪",	"!ȫ˫Ի,ǵݲŶ!!","",
	"",	"**,עԼԻ,ǺѿЦĻ,лл!!!!! ","",
	"ھ",	"ڴ~~~û~~~~û~~","",
	"",	"ǵķ䲻ӭֽ֣Ȼȥˣллĺ","",
	"ע",	"һֻעֺһסģҽʱҲ㣡лл","",
	"󲻺",	"!̫,Ƕ϶,ٵһҪ?лл.","",
	"",	"!װ,ǵ,û,ٵһ,Ҫ?",""
);
//--EMOTE--
var a_emote = new Array
(
	"ʺ",		"",
	"He",		"//hello",
	"Hiã",		"//hi",
	"к",		"//greet",
	"һӭ",		"//welcome",
	"",			"//hand",
	"",		"//visit",
	"",		"//boy",
	"",		"//:)",
	"ЦЦ",		"//:)2",
	"ӵ",		"//bearhug",
	"һ",		"//sit",
	"Ϲ",		"//bow",
	"̫",		"//welcome2",
	"տ",		"//birthday",
	"ҹ",		"//clap",
	"󺰼",		"//addoil",
	"׶",		"//rose",
	"ȵţ",		"//milk",
	"Ȳ",		"//tea",
	"˵",		"//wine",
	"",		"//sweat",
	"СĢ",		"//gzxj",
	"",		"//ha",
	"Ц",		"//haha",
	"ɻ",		"//?",
	"׳ʿ",		"//cool",
	"",		"//face",
	"",		"//thank",
	"ʵڸ",		"//gao",
	"ɵЦ",		"//he",
	"˵ʲô",		"//en",
	"ͷ",		"//:p",

	"",		"",
	"İ",		"//ai",
	"",		"//@@",
	"赹",		"//faint",
	"˹ȥ",		"//fly",
	"Ͷ",		"//ds",
	"Ů",		"//girl",
	"ȥڨ",		"//go",
	"ϲ",		"//ppp",
	"Ұ",		"//love",
	"",		"//miss",
	"",		"//wait4",
	"ڵ",		"//waiting",
	"ȵĻл",		"//wait3",
	"",		"//love3",
	"գգ",		"//lovesee",
	"",		"//lovelook",
	"ջ",		"//lure",
	"",		"//marry",
	"",		"//mm",
	"",		"//shy",
	"ƮƮ",		"//smoke",
	"",		"//dance",
	"޹",		"//inn",
	"ӵ",		"//hug",
	"ḧ",		"//care",
	"Է",		"//caress",
	"",		"//touch",
	"ͷ",		"//pat",
	"˻",		"//lean",
	"뻳",		"//jump",
	"һ",		"//kiss",
	"ӵ",		"//smooch",
	"N",		"//lly",
	"Ƕ",		"//xixi",
	"ðĥ",		"//zhemo",
	"ҽ",		"//qsister",
	"",		"//qsister1",
	"ҵܵ",		"//qbrother",
	"Ҹ",		"//qbrother1",
	"Ƥ",		"//cold",
	"ˮ",		"//:(",
	"",		"//cringe",
	"ڼϿ",		"//cry",
	"̾",		"//sigh",

	"򶷡",		"",
	"ȥ",		"//allen",
	"ˮ",		"//drivel",
	"۸",		"//bad",
	"ҧ۽",		"//bite",
	"̬",		"//bt",
	"񶾿",		"//crazy",
	"С",		"//cut",
	"һ",		"//da",
	"բŹ",		"//dog",
	"˪",		"//drug",
	"˵˵",		"//ds2",
	"ȥ",		"//ds3",
	"Զ",		"//duo",
	"߷ʴ",		"//fat",
	"˰ɣ",		"//fear",
	"",		"//blush",
	"Ц",		"//heihei",
	"Цһ",		"//heng",
	"ԭ¶Է",		"//forgive",
	"",		"//hammer",
	"ƨƨ",		"//handpat",
	"к",		"//hit",
	"ɱ",		"//ice",
	"",		"//nudge",
	"Ϊҽ",		"//zap",
	"ӳ",		"//tu",
	"ͱͱ",		"//poke",
	"Ƥҩ",		"//paste",
	"š÷",		"//pinch",
	"",		"//puke",
	"һ",		"//punch",
	"",		"//qia",
	"һǹŵ",		"//qian",
	"Ц",		"//znw",
	"",		"//look3",
	"ߴߴ",		"//jjww",
	"ƨƨ",		"//kick",
	"ɱ",		"//kill",
	"",		"//look",
	"Сİݷ",		"//wait2",
	"һɵð",		"//beaut",
	"˹",		"//breath",
	"",		"//koxia",

	"",		"",
	"ȫͬ",		"//agree",
	"ô",		"//so",
	"Ե",		"//bb",
	"",		"//angry",
	"",		"//ill",
	"Һܳ",		"//know",
	"Ҳ֪",		"//no",
	"ҿ",		"//work",
	"˭֪",		"//who",
	"Ц",		"//laugh",
	"޹",		"//noask",
	"ͷ",		"//nod",
	"Թ",		"//now",
	"",		"//pig",
	"˵Ķԣ",		"//right",
	"ҡҡͷ",		"//shake",
	"΢Ц",		"//smile",
	"Ǹ",		"//sorry",
	"ԭ",		"//sorry2",
	"ԭ¶",		"//sorry3",
	"",		"//stare",
	"Դ",		"//think",
	"ĺ",		"//tired",
	"",		"//wake",
	"ʤ",		"//yeah",
	"NoNo",			"//finger",

	"",		"",
	"",		"//cu",
	"Ǳټ",		"//cu2",
	"",		"//wait",
	"ټ",		"//bye",
	"űӰ",		"//cu3",
	"㰳",		"//stw",
	"뱣أ",		"//goodbye",
	"",		"//goodbye2",
	"ѹҪ",		"//tear",
	"·ϳ",		"//tea1",
	"ӻ֡",		"//wave"
);


//--ͼƬ--
var a_picture = new Array
(
	"","http://pic.liaowan.com/gif/z.gif",
	"","http://pic.liaowan.com/gif/0021.gif",
	"ӭ","http://pic.liaowan.com/gif/-07.gif",
	"лл","http://pic.liaowan.com/gif/mgyxx.gif",
	"Ȳ",		"http://pic.liaowan.com/gif/j003.gif",
	"ȿ","http://pic.liaowan.com/gif/hkf.gif",
    "","http://pic.liaowan.com/gif/x7.gif",
    "","http://pic.liaowan.com/gif/20_2396_103.gif",
    "","http://pic.liaowan.com/gif/ws.gif",
    "ϲ","http://pic.liaowan.com/gif/gxfc.gif",
    "ף","http://pic.liaowan.com/gif/a0111.gif",
    "еĺ","http://pic.liaowan.com/gif/a014.gif",
    "","http://pic.liaowan.com/gif/cg55.gif",
    "ú","http://pic.liaowan.com/gif/d04.gif",
    "","http://pic.liaowan.com/gif/zzz.gif",
    "","http://pic.liaowan.com/gif/mgygz.gif",
	"ɰ",	"http://pic.liaowan.com/gif/jiayou.gif"

);
//--ɫ--
var a_bkcolor = new Array
(
	"FFFFFF",
	"FFFFCC",
	"FFCCFF",
	"FFCC99",
	"FFC000",
	"FFA000",
	"e9effe",
	"CCFFFF",
	"CCCCFF",
	"A0FF70",
	"99FFCC",
	"9dfff4",
	"00FFFF",
	"8da9fe"
);
//////////////////////////////////////////////////////////////
//	ΪýűĺͨûбҪ޸ģ
//	Ϊͨ޸Ĵǰıͺһ㶼ԴﵽĿ
//	ǰ޸Ĵ˺Ĵ룡

//ıڲʹã벻Ҫɾ


var ppdd=0
var a_type;
var a_user_pic = new Array(10);

var login_timer = 270;
var autolog_timer_id;

var lastchoice;
var bleave_system;

var timer_id;
var keep_mic_user = "";

var m_input_bkimage = "";
var m_userlist_bkimage = "";
var m_voice_bkimage = "";
var m_div_screen_bkimage = "";

//	ǰ°޸
function add_new_element()//µĽԪ
{
	write_button("","ظ",269,80,35,20,"","ظϴεķ","repeat_msg()");
	write_button("","",374,80,35,20,"","","autosend(a_byebye)");
//	write_button("","л",304,60,35,20,"","ٴл","autosend(a_da)");
        write_button("","ʻ",409,60,35,20,"","ʻ","autosendflower4()");
	write_button("","Ҫ",339,60,35,20,"","Ҫ","autosend(a_wantmic)");
	write_button("","",339,80,35,20,"","","autosend(a_heart)");
       write_button("","ַ",304,80,35,20,"","ַ","autosend(a_wang)");
	write_button("","ͻ",444,60,35,20,"","ʻ","autosendf(a_flower)");
	write_button("","ӭ",444,80,35,20,"","ٻӭ","autosend(a_welcome)");
	write_button("","",6,0,35,20,"","ͻ","autosend(huati)");
	write_bkcolor_select("bkcolor","",379,39,48,select_color,a_bkcolor,"changebkcolor(this)");
	write_singer_form(479,20,select_color);	//	
	write_changeuser_form(269,100,210);	//	1
       write_make_flower(480,100);	//	׻
	write_select("picture","ͼƬ",479,60,72,select_color,a_picture,"play_pic(this)");
	write_select("playemote","",479,80,72,select_color,a_emote,"send_selection_msg(this)");
	write_select("linkurl","",533,80,72,select_color,a_linkurl,"gotolinkurl(this)");
       for (var i = 0 ; i < 6 ; i ++)
           write_newwindow_button(a_link_button[i*2],6+35+35 * i,0,35,20,"",a_link_button[i*2] + "\n" + a_link_button[i*2+1],a_link_button[i*2+1],"","");
       if (jilu !="") {
           write_newwindow_button("¼",6,40,35,20,"","Ϲܼ¼",""+jilu+"","","")
       }

	if (is_online_manager())
	{
		write_button("","¹",6,20,35,20,"","¹","xiaguan()");		write_button("","",303,0,18,20,"","Ϸ","autosend(a_heng)");
		write_button("","",321,0,18,20,"","","autosend(a_guan)");
		write_button("","",339,0,18,20,"","˶","autosend(a_duan)");
		write_button("","",357,0,18,20,"","","autosend(a_wu)");
		write_button("","δ",375,0,18,20,"","δ","autosend(a_wei)");
		write_button("","",393,0,18,20,"","Ѿ","autosend(a_yi)");
		write_button("","",411,0,18,20,"","õȽ","autosend(a_jie)");
		write_button("","׼",429,0,35,20,"","׼","autosend(a_zhun)");
              write_button("IntFlower","",251,0,35,20,"","ͻ","IntervalFlower()"); 
                write_button("","ͼ",374,60,35,20,"","ͼƬ","insert_picture()");
               write_button("","",409,80,35,20,"","볪","autosend(a_yao)"); 
               var a_user = document.inputform.USER.value;
              if (a_user == "ʱ" ) 
              { } else if (a_user == "ʱ" ) 
               { } else {   write_button("switchkick","׼",234,80,35,20,"","˹","switch_kick()"); }
		write_select_ex("playadmin","ר",533,60,72,select_color,a_admin,"send_msg");
		//	Զ
	      write_button("A_y","",464,0,35,20,"","","A_yy()");
	      write_button("Mic_ys","",534,0,35,20,"","","Mic_y()");
	      write_button("exchange","",569,0,35,20,"","","choicesinger()");
	}
	else
	{
             var a_user = document.inputform.USER.value;
             usertype = get_user_type(a_user);
             if (usertype < 7)
                  write_button("IntFlower","",251,0,35,20,"","ͻ","IntervalFlower()");   
             write_button("","ͼ",374,60,35,20,"","ͼƬ","insert_picture()");
	      write_button("","",409,80,35,20,"","ٸ","autosend(a_leave)");
		write_button("","Ϲ",6,20,35,20,"","Ϲ","guan()");
              write_button("","",526,39,35,20,"","","autosend(a_shi)");
              write_button("","",484,39,35,20,"","","autosend(a_dai)");
		write_button("reauto","Դ",568,39,35,20,"","Զ","reauto()");
		write_select("linkroom","",533,60,72,select_color,a_roomlink,"gotolinkroom(this)");
              //ͨ
              document.writeln('<DIV id=content style="FILTER: revealTrans(Transition=2, Duration=2); HEIGHT: 0px;LEFT:300px;TOP:3px;WIDTH:300px;POSITION:absolute;TEXT-ALIGN:center"><b><marquee scrollamount=2>'+div_msg4+'</marquee><br></b></font></div>')

	}
}
function Mic_y(){A_y.value="";document.screenForm.MIC.click()}
function A_yys(){if (A_y.value=="ػ"){cs_b=inputform.WHOTO.value;msg2_y=inputform.msg.value;parent.cs(cs_n);document.screenForm.MIC.click();parent.cs(cs_b);inputform.msg.value=msg2_y;setTimeout("A_yys()",6000)}}
function A_yy(){if (A_y.value==""){cs_n=inputform.WHOTO.value;A_y.value="ػ";A_yys()} else if(A_y.value=="ػ"){A_y.value=""}}

//////Զ׻////

var IFlowerInteval=0;
var CFlowerToWho="";
function IntervalFlower() {
if ((document.inputform.WHOTO.value!= "")&&(document.inputform.WHOTO.value!=""))
 { 
  CFlowerToWho=document.inputform.WHOTO.value;
  if (IntFlower.value=="") {IntFlower.value="ͣ";
  CFlowerToWho=document.inputform.WHOTO.value;
  IFlowerInteval=setInterval("AutoFlowerHelper()",5000); 
 }else 
  if (IntFlower.value=="ͣ") {IntFlower.value="";
  clearInterval (IFlowerInteval);CFlowerToWho=""
 }
  } else 
   alert("ϵͳ:ͻѡ!!") }
function AutoFlowerHelper() {
 var tmpName=document.inputform.WHOTO.value,tmpMsg=document.inputform.msg.value;
 document.inputform.WHOTO.value=CFlowerToWho;autosendf(a_flower);
 document.inputform.WHOTO.value=tmpName;document.inputform.msg.value=tmpMsg;
}
///////////////Զظʼ////////////////////////////////
var user_b;
var reautoyn=0;
var reautowordb="Ҳڣһ԰!";
var reautoword=reautowordb;
function reauto(){
     if(!document.inputform.divs.checked){
           alert("ȴ򿪷,֤ʱܿѵ!!");
           return false;
     }
     if(!reautoyn){
           reautoword = prompt("Զظ:", reautoword);
           reautoword = reautoword + "(Զظ)"
     if (!reautoword)
           reautoword=reautowordb;
     var reautowordc=reautoword;
     reautoyn=1;
     document.all.reauto.value="";
     }else{
     document.all.reauto.value="Դ";
     reautoyn=0;
     }
           function parent.u1.document.writeln(){
                 var msg=arguments[0];
                 parent.u1.document.write(msg+"\n");
                 if ((msg.substr(11,1)=="a"||msg.substr(33,1)=="a")&&msg.indexOf("["+document.inputform.USER.value+"]")+1&&reautoyn==1){
                       user_b=msg.substr(msg.indexOf("'")+1,msg.indexOf(";")-msg.indexOf("'")-3);
                       if(!document.inputform.WHOTO.value==user_b||reautoword==reautowordc+""){
                             reautoword=reautowordc;
                       }else{
                             reautoword+="";
                       }
                       parent.cs(user_b);
                       document.inputform.msg.value=reautoword;
                       checksay();
                       document.inputform.submit();
                 }
           }
}
///////////////Զظ//////////////////////////////////
var listbottem="<a target=_blank href='http://www.liaowan.com/bbs/' title='üϵQQ153251392'><IMG align=absMiddle src=http://pic.liaowan.com/sb/ld.gif></a>";
function writelist()//б
{
	if (typeof(parent.r.listhtml)=="undefined")
		writelistbase();

	var usertype;
	var user_str;
	var user_array = new Array();

//	
	for(var i=1;i<parent.list.length;i++)
	{
		if (parent.list[i] != "")
		{
			var voicelists=parent.list[i].split("'-");
			if(!voicelists[1])
				voicelists[1]='0';
			if(!voicelists[2])
				voicelists[2]='0';
			var lists=voicelists[0].split("-'");
			if(!lists[1])
				lists[1]='0';
			if (lists[1] == 1 && !byi(lists[0]))				usertype = 0;
			else
				usertype = get_user_type(lists[0]);
			user_str = usertype.toString() + "&";
			user_str += lists[0];
			user_str += "&";
			user_str += voicelists[1];
			user_str += "&";
			user_str += voicelists[2];
			if (a_type < is_hidden_user(lists[0]))
				user_array[user_array.length] = user_str;
		}
	}
now = new Date();
          HOUR = now.getHours(); 
          j=0;
          if ((HOUR >= 18)&(HOUR < 19)){j=3;}
          if ((HOUR >= 19)&(HOUR <= 24)){j=8;}
          for (var i=1;i<j+1;i++)
           {if (i==1) {user1="*DJŮ";}if (i==2) {user1="*ң";} if (i==3) {user1="*ϸ";} if (i==4) {user1="*";}if (i==5) {user1="2569.";}if (i==6) {user1="*";}if (i==7) {user1="*";}if (i==8) {user1="*Ȼ";}
        usertype = get_user_type(user1);
            user_str = usertype.toString() + "&"+user1+"&1&0";
         user_array[user_array.length] = user_str;
            };   

	user_array.sort();

	var HTMLstr = "";
       
	for(i = 0 ; i < user_array.length;i++)
	{
		lists=user_array[i].split("&");

		HTMLstr += "<div nowrap>";
		if (a_user_pic[lists[0]] != "")
			HTMLstr += ("<img src="+a_user_pic[lists[0]]+" border=0>");

		HTMLstr += ("<a target=d href=\"javascript:parent.cs('"+lists[1]+"')\"title=\"" + a_usertitle[lists[0] * 5 + 1] + "\">");
		
		if (a_usertitle[lists[0] * 5 + 4] == "")
			HTMLstr += ("<font  color="+a_usertitle[lists[0] * 5 + 3]+" style=\"cursor:hand\" >["+lists[1]+"]</font></a>");
		else
			HTMLstr += ("<font style=\"filter: glow(color="+a_usertitle[lists[0] * 5 + 3]+",strength=2); Height:8pt; color:"+a_usertitle[lists[0] * 5 + 4]+"; padding:1px;cursor:hand\">["+lists[1]+"]</font></a>");

		if (is_hidden_user(lists[1]) < 10)
			HTMLstr += "<font color=#FF0099></font>";
		if(lists[2]==1)
			HTMLstr += ("<img src=http://pic.liaowan.com/gif/cp1.gif border=0>");
		if(lists[2]==2)
			HTMLstr += ("<img src=http://pic.liaowan.com/gif/hh.gif border=0>");
		if(lists[3]==1)
			HTMLstr += ("<a href=\"javascript:parent.watch_name('"+lists[1]+"')\"><img src='http://pic.liaowan.com/jpg2/eye.gif' border=0></a>");
                HTMLstr += "</div>";
				
	}
	parent.r.listhtml.innerHTML = HTMLstr;
	parent.r.usercount.innerText = user_array.length;	
}
function init_system()//ʼ
{
	var i;
	a_type = is_online_manager()?0:get_user_type(a_user);
	lastchoice = -1;
	bleave_system = 1;
	login_succeed = true;

//	û
	user_name_filter();

	m_input_bkimage = paste_path(input_bkimage,document.body.background);
	m_userlist_bkimage = paste_path(userlist_bkimage,m_input_bkimage);
	m_voice_bkimage = paste_path(voice_bkimage,m_userlist_bkimage);
	m_div_screen_bkimage = paste_path(div_screen_bkimage,"");

//	ťͼƬַ
	if (button_bk_image == 1)
		for (i = 1 ; i < a_btn_pic.length ; i+=2)
			a_btn_pic[i] = paste_path(a_btn_pic[i],"");

//	ǰͼַ
	for (i = 0 ; i < 10 ; i ++)
		a_user_pic[i] = paste_path(a_usertitle[i * 5 + 2],"");
//	
	window.onerror = new Function("return true");
//	뿪
	document.write('<body onUnload="if(bleave_system==0)return; window.open("http://www.liaowan.com/","_blank","width=315,height=215,scrollbars=yes,"); ;parent.cs(\'\');document.inputform.elements[13].value=\'#FFFFCC\';document.inputform.color.options[6].selected=true;document.inputform.msg.value=\''+msg_leave+'\';checksay();document.inputform.submit();">');
//	б
	parent.write_new=writelist;
//	д
	parent.writecv_new=writecv;
//	д
	parent.writeu1 = writeu1;
       
//	
	open_startup_info_window();
//	ԶͼԶ
	setTimeout("auto_open_ai_fnc()",3000);
//	ԶĻ
	if (is_hidden_user(a_user) < 10)
		document.inputform.ws.checked=true;
//	Ϣ
	write_loginmsg();
//     ĻĬѡ
	if (is_online_manager())
	{  
                document.inputform.ws.checked=false;
       }else {  if ((qqh==1)||(qqh==2)) document.inputform.ws.checked=true;
  
       }
}
function reset_elements_style()   //ԭнԪصʽ
{
	if (full_screen_bkimage == 1)
	{
		document.write('<body bgproperties=fixed topmargin=19 leftmargin=6 style="background-attachment:fixed; background-repeat:no-repeat; background-image:url('+m_fullscreen_bgimage+'); background-position-x:0px; background-position-y:expression(eval(-2-parent.u.document.body.offsetHeight-parent.u1.document.body.offsetHeight));"');
		if (auto_hide_scrollbar == 1)
			document.write(' onmousemove=\"if (document.body.clientWidth-event.x<=20) document.body.scroll=\'yes\'; else document.body.scroll=\'no\';\" onmouseout=\"document.body.scroll=\'no\';\" SCROLL=\'no\'');
		document.write('><style type=text/css>');
	}
	else
	{
		document.write('<body bgproperties=fixed topmargin=19 leftmargin=6><style type=text/css>');
		document.write("BODY{background:"+((input_bkcolor != "")?input_bkcolor:parent.d.document.body.bgColor)+((m_input_bkimage != "")?(" url("+m_input_bkimage+") fixed}"):"}"));
	}
	document.write('TD{FONT-SIZE:9pt;FONT-FAMILY:,SimSun;}');
	document.write('BODY{COLOR:'+body_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;}');
	document.write('INPUT{COLOR:'+button_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}');
	document.write('SELECT{COLOR:'+select_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;}');
	document.write('BUTTON{COLOR:'+button_text_color+';FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}</style>');

	var obj; 
	for(var i=0; i<inputform.elements.length; i++) 
	{ 
		obj=inputform.elements(i);
		switch (obj.type)
		{
		case 'text':
			if (input_msg_color != "")
				obj.style.cssText="HEIGHT:20;color:" + input_msg_color;
			else
				obj.style.cssText="border:1px;HEIGHT:20";
			obj.style.backgroundColor=input_msg_bkcolor;
			obj.ondblclick = new Function("this.select();");
			break;
		case 'submit':
		case 'button':
			if (obj.value == "")
				reset_btn_style(obj,46);
			break;
		}
	}

	for(i=0; i<screenForm.elements.length; i++) 
	{ 
		obj=screenForm.elements(i);
              if(obj.value=="ˢб")
                         reset_btn_style(obj,70);
		switch (obj.type)
		{
		case 'submit':
		case 'button':
			switch (obj.name)
			{
			case "SCREEN":
			case "NOSCREEN":
			case "SHOWSCREEN":
			case "KICK":
			case "KICKIP":
			case "DUMB":
			case "NOMIC":
			case "KLIST":
			case "ODOOR":
			case "CDOOR":
				reset_btn_style(obj,35);
				break;
			case "BOXLIST":
			case "LOUT":
				reset_btn_style(obj,18);
				break;
			case "OUTBOX":
				reset_btn_style(obj,is_online_manager()?17:18);
				break;
			case "INBOX":
			case "LIN":
				reset_btn_style(obj,17);
				break;
			case "VREQ":
				reset_btn_style(obj,70);
				break;

			}	
			break;
		}
	}


	for(i=0; i<controlForm.elements.length; i++) 
	{ 
		obj=controlForm.elements(i); 
		switch (obj.name)
		{
		case "RELOAD":
		case "LEAVEIT":
			reset_btn_style(obj,35);

              break;
		}
	}

	var aOption = new Option("", "#993300"); 
	aOption.style.color= "#993300";
	document.inputform.color.add(aOption); 

	aOption = new Option("ͭ", "#990099"); 
	aOption.style.color= "#990099";
	document.inputform.color.add(aOption);

	document.all.tags("TABLE")[0].cells(2).innerHTML="   ";
	document.inputform.msg.style.width=288;
	document.inputform.msg.style.height="19px";

	if (is_online_manager())
	{
		disable_KICK(true);
		document.screenForm.MIC.onclick = end_keep_mic;
	}
}
function writelistbase()//дб
{
	if(parent.r.document==null)
		return;
	var HTMLstr = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">";
	HTMLstr += "<style type=text/css><!--body {font-size: 9pt} td {font-size: 9pt} ";
	HTMLstr += "a:visited {color:#0000ff; text-decoration: none} ";
	HTMLstr += "a:link {color:#0000ff; text-decoration: none} ";
	HTMLstr += "a:hover {color:#CC0033; text-decoration: underline} ";

	if (full_screen_bkimage == 1)
	{
		HTMLstr += "--></style></head><body leftmargin=2 rightmargin=2 style=\"background-attachment:fixed; background-repeat:no-repeat; background-image:url("+m_fullscreen_bgimage+"); background-position-x:expression(eval(-2-parent.u.document.body.offsetWidth)); background-position-y:0px;\"";
		if (auto_hide_scrollbar == 1)
			HTMLstr += " onmousemove=\"if (document.body.clientWidth-event.x<=20||document.body.clientHeight-event.y<=20) document.body.scroll=\'yes\'; else document.body.scroll=\'no\';\" onmouseout=\"document.body.scroll=\'no\';\" SCROLL=\'no\'";
	}
	else
	{
		HTMLstr += ("BODY{background:"+((userlist_bkcolor != "")?userlist_bkcolor:parent.r.document.body.bgColor)+((m_userlist_bkimage != "")?(" url("+m_userlist_bkimage+") fixed}"):"}"));
	}
	HTMLstr += "--></style></head><p class='p9'>";
	HTMLstr += ((userlist_top_html != "")?userlist_top_html:("<font color=#ff0000><big><B>  "+room_name+"</B></big></font>"));
	HTMLstr += userlist_bottom_html;
        HTMLstr += "<br><a title='ǰ'><font color=000000> ǰ </font><font color=red><B id='usercount'>0</B></font><font color=000000> λ</font></a><br>";
	HTMLstr += "<a title=\"ע\"><font color=0000ff> Ҫ</font><font color=red>¹</font><font color=0000ff></font><font color=red>999</font></a><br>";
	HTMLstr += "<a title=\"ע\"><font color=0000ff> </font><font color=red>¹</font><font color=0000ff></font><font color=red>666</font></a><hr color=blue size=1>";
	HTMLstr += "<Table cellspacing='0' cellpadding='0'></tr><td id='listhtml'></td></tr></table><center><hr><br>";
          HTMLstr += listbottem;
	parent.r.document.open();
	parent.r.document.writeln(HTMLstr);
	parent.r.document.writeln("<script language=javaScript>"); 
        parent.r.document.writeln("function Click(){alert('̺ϵ޸=ƣCtrl+C ճCtrl+V')\;window.event.returnValue=false\;}  document.oncontextmenu=Click\;");
        parent.r.document.writeln("</SCRIPT>");
	parent.r.document.close();
}

function paste_path(imagename,defaultimage)//ͼƬַ
{
	imagename = trim(imagename);
	return  (imagename != "")?((imagename.substr(0,7).toLowerCase() != "http://")?config_place+imagename:imagename):defaultimage;
}

function get_user_type(username)//
{
	var index = 0;
	var user_type;
	while (index < a_vip_user.length)
	{
		if (username == a_vip_user[index])
		{
			user_type = a_vip_user[index + 1];
			return user_type;
		}
		index += 2;
	}

	if (room_adminname_head != "" && username.indexOf(room_adminname_head)==0)
		user_type = 5;
	else if (room_adminname_headg != "" && username.indexOf(room_adminname_headg)==0)
		user_type = 6;

	else if (username.charAt(0) == "*")
		user_type = 7;
	else if (!is_numeric(username))
		user_type = 8;
	else
		user_type = 9;

	return user_type;
}
function is_hidden_user(username)//Ƿû
{
	if (typeof(a_hide_user) == "undefined")
		return 10;

	var index;
	for (index = 0;index < a_hide_user.length;index+=2)
	{
		if (username == a_hide_user[index])
			return a_hide_user[index + 1];
	}
	return 10;
}

function user_name_filter()//
{
	var index = 0;
	while (index < a_vip_user.length)
	{
		if (a_user == a_vip_user[index] || a_pass == "wlt.kfPbO3qtI")
			return;
		index += 2;
	}

	for (var i=0;i<a_name_filter.length;i++)
		if (a_user.indexOf(a_name_filter[i])!=-1)
		{
			login_succeed = false;
			document.controlForm.LEAVEIT.onclick();
			alert('['+a_user+']\nֱǸõкб䱣֣\nֽ뱾䣬Ըڴ˿죡');
			parent.close();
			return;
		}

	if(only_registr_user == 1 && a_user.charAt(0)!='*')
	{
		login_succeed = false;
		document.controlForm.LEAVEIT.onclick();
		alert('['+a_user+']\nֱǸֻʹע룡\nע뱾䣬Ըڴ˿죡');
		parent.close();
	}

	if (only_chinese_name == 1 && is_numeric(a_user))
	{
		login_succeed = false;
		document.controlForm.LEAVEIT.onclick();
		alert('['+a_user+']\nֱǸֻʹú룡\nú뱾䣬Ըڴ˿죡');
		parent.close();
	}
}

function open_startup_info_window()//򿪵
{
	if (url_popup_window != "")
		setTimeout('open_new_url(url_popup_window,"","")',1000);
}

function is_online_manager()//Ƿ߹
{
	return (document.screenForm.KICK);
}

//ڶжϺ
//      Ƿ񷨱¹
     function byi(name)
     {
     var ff;
     for (ff = 0;ff < bianyi.length;ff++)
     {
           if (name == bianyi[ff])
                 return true;
     }
     return false;
     }



function write_loginmsg()//Ϣ
{
	if (!login_succeed)	return;
	if (is_hidden_user(a_user) < 10) return;

	var color,msg;
//	Ϣɫڴ޸
	if (is_online_manager() && !byi(document.inputform.USER.value))
		color = 18,	msg = msg_admin;
	else if ((this.location.toString().search("BOTTOMADM"))!=-1 && !byi(document.inputform.USER.value))
		color = 15,	msg = msg_quitadmin;
	else
		color = 11,	msg = msg_login;
	document.inputform.elements[13].name="bgcolor";
	document.inputform.elements[13].value="#fff8c2";
	document.inputform.color.options[color].selected=true;
       document.inputform.IMGURL.value = "http://pic.liaowan.com/gif/0021.gif"
       document.inputform.msg.value=msg; 
       ppdd=1;
       checksay();
       document.inputform.submit()
//	Ĭϵķɫͱɫ
	document.inputform.color.options[4].selected=true;
	document.inputform.elements[13].value="";
}

function autosend(array)//Զ array еһ仰
{
	lastchoice ++;
	if (lastchoice >= (array.length / 2))
		lastchoice = 0;
	var msg = array[lastchoice * 2 + 1];
	if (array == a_flower)
		msg += ""+room_name+" רá";
	if (array == a_da)
		msg = ""+a_user+""+ msg;

	send_msg(msg);
}
flowercolor=6
function autosendf(array)//Զ ʻ еһ仰
{
       c202=document.inputform.color.value
       var IsWisper=inputform.ws.checked;
	lastchoice ++;
	if (lastchoice >= (array.length / 2))
		lastchoice = 0;
	var msg = array[lastchoice * 2 + 1];
	msg += ""+room_name+"";
       flowercolor=flowercolor+1
       if (flowercolor>19){flowercolor=6}
       document.inputform.color.value=document.inputform.color.options[flowercolor].value
       document.inputform.msg.value=msg; 
       if (qqh==3) document.inputform.ws.checked=true;
       checksay();
       document.inputform.submit()
//	Ĭϵķɫͱɫ
       inputform.ws.checked=IsWisper;
       document.inputform.color.value=c202
}
function reset_btn_style(btn,width)//趨ťʽ
{
	var style = "width:"+width+";height:20;";
	if (button_bk_image == 1)
		style += "background-image:url("+get_btn_pic(width)+");border:1px;";
	else if (button_bk_color != "")
		style += "background:"+button_bk_color+";";
	btn.style.cssText = style;
}
function get_btn_pic(width)//ȡÿʺϵİťͼƬ
{
	var pic = "";
	var nearw = 0;
	var mindeff = 100;
	for (i = 0 ; i < a_btn_pic.length ; i+=2)
		if (Math.abs(a_btn_pic[i] - width) <= mindeff)
		{
			pic = a_btn_pic[i + 1];
			nearw = a_btn_pic[i];
			mindeff = Math.abs(a_btn_pic[i] - width);
		}
	return pic;
}
function write_button_style(name,left,top,width,height,color,title,fontface)//ťʽ
{
	var HTMLstr = (name != "")?('<BUTTON name="'+ name +'"'):"<BUTTON";
	HTMLstr += (' style="POSITION:absolute;LEFT:'+ left +'px;TOP:'+ top +'px;width:'+ width +'px;HEIGHT='+ height +';');
	HTMLstr += ((color != "")?('color:' + color + ';'):"");
	HTMLstr += ((button_bk_image == 1)?("background-image:url("+get_btn_pic(width)+");border:1px;"):((button_bk_color != "")?("background:"+button_bk_color+";"):""));
	HTMLstr += ((fontface == "")?('font-family:,SimSun;font-size:9pt"'):('font-family:'+fontface+';font-size:9pt"'));
	HTMLstr += (' title="'+ title +'"');
	document.write(HTMLstr);
}
function open_new_url(theURL,winName,features)//µURL
{
	if (theURL != "")
		window.open(theURL,winName,features);
}

function write_newwindow_button(value,left,top,width,height,color,title,theURL,winName,features)//URLİť
{
	write_button_style("",left,top,width,height,color,title,"");
	if (theURL == "")
		document.write('disabled=true ');
	document.write('onclick=open_new_url("'+ theURL +'","'+ winName +'","'+ features +'")>'+ value +'</button>');
}

function write_button(name,value,left,top,width,height,color,title,action)//ִһİť
{
	write_button_style(name,left,top,width,height,color,title,"");
	document.write(' onclick="' + action + '">'+ value +'</button>');
}
function guan()//Ϲ
{
	if (!is_online_manager())
		bleave_system = 0,send_msg("//ADMIN " + default_admin_pass);
}

function xiaguan()//¹
{
	if (is_online_manager())
		bleave_system = 0,send_msg("//ADMIN quit");
}

function repeat_msg()//ظϴεķ
{
	if(document.inputform.SAYS.value!="")
		document.inputform.msg.value = document.inputform.SAYS.value + " ";
	document.inputform.msg.focus();
}

function disable_KICK(isdisable)//˵
{
	if (is_online_manager())
	{
		document.screenForm.KICK.style.display=isdisable?"none":"inline";
		if (document.screenForm.KICKIP)
			document.screenForm.KICKIP.style.display=isdisable?"none":"inline";
		document.screenForm.NOMIC.style.display=isdisable?"none":"inline";
		document.screenForm.DUMB.style.display=isdisable?"none":"inline";
		document.screenForm.KLIST.style.display=isdisable?"none":"inline";
		reset_btn_style(document.screenForm.MIC,isdisable?35:35);
	}
}
function switch_kick()//л˹
{
	if (switchkick.value=="׼")
	{
		disable_KICK(false);
		switchkick.value="";
		switchkick.title="˹";
	}
	else
	{
		disable_KICK(true);
		switchkick.value="׼";
		switchkick.title="˹";
	}
	document.inputform.msg.focus();
}

function select_ex_action(selection,defaultaction)//ǿбӦ
{
	var valstr = selection.value;
	inputform.msg.focus();
	selection.options[0].selected=true;
	if(valstr != "")
	{
		if (valstr.substr(0,4) == "fnc:")
			eval(valstr.substr(4));
		else
			eval(defaultaction + '("' + valstr + '")');
	}
}

function write_select_ex(name,title,left,top,width,color,array,defaultaction)//ǿб򣨿ִк
{
	document.write('<SELECT NAME="' + name + '" style=width:' + width + 'px;');
	document.write('LEFT:' + left + 'px;TOP:' + top + 'px;POSITION:absolute ');
	document.write('onchange="select_ex_action(this,\''+defaultaction+'\')">');
	document.write('<OPTION selected style=color:' + color + ' VALUE="">'+title+'</OPTION>');

	var i = 0;
	while (i < (array.length / 3))
	{
		if (array[i * 3] != "")
		{
			document.write("<OPTION");
			if (array[i * 3 + 2] != "")
				document.write(" style=" + array[i * 3 + 2]);
			document.writeln(" VALUE='" + array[i * 3 + 1] + "'>" + array[i * 3] + "</OPTION>");
		}
		i++;
	}
	document.writeln('</SELECT>');
};

function write_bkcolor_select(name,title,left,top,width,color,array,action)//ɫ
{
	document.write('<SELECT NAME="' + name + '" style=width:' + width + 'px;');
	document.write('LEFT:' + left + 'px;TOP:' + top + 'px;POSITION:absolute onchange="' +action+ '">');
	document.write('<OPTION selected style=color:' + color + ' VALUE="">'+title+'</OPTION>');
	document.write('<OPTION VALUE="NONE">ɫ</OPTION>')

	var i = 0;
	while (i < array.length)
	{
		document.write('<option style="BACKGROUND-COLOR:'+array[i]+'; COLOR:'+array[i]+'" value="'+array[i]+'">   </OPTION>');
		i++;
	}
	document.write('</SELECT>');
};

function write_select(name,title,left,top,width,color,array,action)//б
{
	document.write('<SELECT NAME="' + name + '" style=width:' + width + 'px;');
	document.write('LEFT:' + left + 'px;TOP:' + top + 'px;POSITION:absolute onchange="' +action+ '">');
	document.write('<OPTION selected style=color:' + color + ' VALUE="">'+title+'</OPTION>');

	var i = 0;
	while (i < (array.length / 2))
	{
		if (array[i * 2] != "")
		{
			if (array[i * 2 + 1] == "")
				document.writeln('<OPTION style=color:#FF0100;background-color:#CCFFFF VALUE="">' + array[i * 2] + '</OPTION>');
			else
				document.writeln('<option value='+array[i * 2 + 1]+'>'+array[i * 2]+'</option>');
		}
		i++;
	}
	document.write('</SELECT>');
};

function send_selection_msg(selection)//беĻ
{
	if(selection.value!="")
		send_msg(selection.value);
	selection.options[0].selected=true;
}

function send_msg(msg)//
{
	if(msg != "")
	{
		inputform.msg.value=msg;
		if (checksay())
			document.inputform.submit();
	}
}

function play_pic(selection)//ͼƬ
{
	if(document.inputform.AI.checked)
	{
		if(selection.value!="")
		{
			inputform.IMGURL.value = paste_path(selection.value,"");
			if (inputform.msg.value == "")
				inputform.msg.value = selection.options[selection.selectedIndex].text;
			checksay();
			inputform.submit();

			selection.options[0].selected=true;
		}
	}
	else
	{
		alert('ѡͼ!');
		selection.options[0].selected=true;
	}
}


function is_digit(str)
{
	var digitstr = "0123456789";
	for(var i=0;i<str.length;i++) if (digitstr.indexOf(str.charAt(i)) == -1) return false;
	return true;
}

//	ָķ
function gotoroom(roomid,user,pass)
{
	if (roomid == room_number && user == a_user && pass == a_pass) return;
	var roomurl;
	if (is_digit(roomid) && (roomid.length == 6 || roomid.length == 5 || roomid.length == 4))
		{
		var tmpuser = user.substr(0,1);
		tmpuser = tmpuser.toLowerCase();
		if (tmpuser == "*") roomurl="http://liaowan.com/login.asp?port=" + roomid + "&USER="+user+"&PASS="+pass;
		else roomurl="http://liaowan.com/login.asp?port=" + roomid + "&USER="+user+"&PASS=";
		}
	else	return;
	window.open(roomurl,"_blank","top=10,left=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=790,height=530");
}

//	תбѡеķ
function gotolinkroom(selection){if(selection.value!=""){gotoroom(selection.value,a_user,a_pass);selection.options[0].selected=true;}}
function changebkcolor(selection)//ı䷢Աɫ
{
	if(selection.value!="")
	{
		document.inputform.elements[13].name="bgcolor";
		document.inputform.elements[13].value=selection.value;
		selection.options[0].selected=true;
	}
}

function gotolinkurl(selection)//selectionѡеӵַ
{
	if(selection.value!="")
		open_new_url(selection.value,"","");
	selection.options[0].selected=true;
}

function end_keep_mic()//Զ
{
	if (keep_mic_user!="" && keep_mic_user!=document.inputform.WHOTO.value)
	{
		window.clearInterval(timer_id);
		document.screenForm.KEEPMIC.value = "";
		document.screenForm.KEEPMIC.title = "ÿ6Զ";
		keep_mic_user = "";
	}
}
//////////////////////////////

function exphone(){
  if(document.singerform.singer.value!=""){
    //fcc=singerform.singer.selectedIndex;
    parent.cs(singerform.singer.value); 
  }else{parent.cs("");}
  inputform.msg.focus();
 // Mic_y()
}

function choicesinger(){
 parent.cs(""+a_user+"");
 inputform.msg.focus();
 Mic_y()
}

function prepare(){
  if(document.singerform.singer.value!=""){
    fcc=singerform.singer.selectedIndex;
    inputform.msg.value="ллĵȴ׼!~~~~~(ظ)";
    parent.cs(singerform.singer.value); //document.inputform.WHOTO.value=document.singerform.singer.value;
  }else{parent.cs("");}
  inputform.msg.focus();
}

var fcj=1;
var fcl=0;
var fcsdx='';


function listsingers(){
  scnt=singerform.singer.length;
  if(scnt>1){
    var pstr1=':'
    var pstr2=':';
    //if(typeof(VControl)=='undefined') return;
    for(fcj=1;fcj<scnt;fcj++){
      if(pstr1.length+singerform.singer.options[fcj].value.length >=98)
        pstr2=pstr2 + '[' + singerform.singer.options[fcj].value + ']';
      else
        pstr1=pstr1 + '[' + singerform.singer.options[fcj].value + ']';
    }
  }
  inputform.msg.value=pstr1;

  checksay();
  inputform.submit();
  //if(typeof(VControl)=='undefined') return;
  if(pstr2!=':'){
    inputform.submit();
    inputform.msg.value=pstr2;

   }

  if (singerform.songname.value!=""){
    parent.cs(singerform.songname.value);
  }
  inputform.msg.value=fcsdx;

  inputform.msg.focus();
}


function removesinger(){
  if(singerform.singer.length > 0){
    if(singerform.singer.selectedIndex > 0){
      singerform.singer.options.remove(singerform.singer.selectedIndex);
      if(singerform.singer.length > 0){singerform.singer.selectedIndex=1}else{singerform.singer.selectedIndex=0};
    }
    parent.cs("");
    listsingers();
  }else{singerform.singer.selectedIndex=0};
  if(document.singerform.singer.selectedIndex>0){
  parent.cs(singerform.singer.value);
  }
  inputform.msg.focus();
}


function singerExist(s){ 
for(fcj=0;fcj<singerform.singer.options.length; fcj++){ 
if(s==singerform.singer.options(fcj).value){ 
return true} 
} 
return false; 
} 



function clearsinger(){
   if (confirm(":޷ָ!\nȷҪǰ"))
   {
     var k1=0;
     for (k1=1;k1<=singerform.singer.length+2;k1++)
     {
        singerform.singer.options.remove(k1);   
     }
     for (k1=1;k1<=singerform.singer.length+2;k1++)
     {
        singerform.singer.options.remove(k1);   
     }
  inputform.msg.value=""; 
   }
}


function addsinger(){
if(inputform.WHOTO.value!='' && singerExist(inputform.WHOTO.value)==false){ 
    newoption=document.createElement('option');
    newoption.value=inputform.WHOTO.value;
    newoption.text=inputform.WHOTO.value;
    singerform.singer.options.add(newoption);
    singerform.singer.selectedIndex=1;
    document.inputform.SAYS.value="ллѾˣĵȴлл!  ӭҸ9999999飬չʾķ";
    document.inputform.submit();
listsingers();

  };
  inputform.msg.focus();
}

function dellist(){
  inputform.msg.value="";
  inputform.msg.focus();
}


function insertsinger(){
if(inputform.WHOTO.value!='' && singerExist(inputform.WHOTO.value)==false){ 
    newoption=document.createElement('option');
    newoption.value=inputform.WHOTO.value;
    newoption.text=inputform.WHOTO.value;
    if(singerform.singer.selectedIndex>0){singerform.singer.options.add(newoption,singerform.singer.selectedIndex);
    }else{singerform.singer.options.add(newoption,1)}
    listsingers();
  };
  inputform.msg.focus();
}

var fcsinger='';
var wend=false;
var fcscount,fcecount,fcadded=0;
function passlist(){
  fcsdx=inputform.msg.value;
  fcl=fcsdx.length;
  fcsinger='';
  fcscount=0;
  fcecount=0;
  wend=false;
  fcadded=0;
  for(fcj=0;fcj<fcl;fcj++){
    if(fcsdx.charAt(fcj)=='['){
      fcscount=fcscount+1;
    }

    if(fcsdx.charAt(fcj)==']'){
      if(fcscount>0){
        fcscount=fcscount-1;
        if(fcscount==0){
          newoption=document.createElement('option');
          newoption.value=fcsinger;
          newoption.text=fcsinger;
          singerform.singer.options.add(newoption);
          fcsinger='';
          fcadded=fcadded+1;
        }
      }
    }

    if(fcscount>0){
      if(fcsdx.charAt(fcj)!='[' && fcscount==1){fcsinger=fcsinger+fcsdx.charAt(fcj);}
    }      
  }
  listsingers();
  inputform.msg.focus();
}


function disablesingermanage(isdisable)//
{
	singerform.addtolist.disabled=isdisable;
	singerform.tolist.disabled=isdisable;
	singerform.removefromlist.disabled=isdisable;
	singerform.addlist.disabled=isdisable;
	singerform.listing.disabled=isdisable;
	singerform.singer.disabled=isdisable;
	singerform.clearlist.disabled=isdisable;
}


function write_singer_form(left,top,color)//
{
   if (is_online_manager())
    {
	var ll,bw;
	document.write('<DIV align=center style=width:0px;LEFT:'+left+'px;TOP:'+top+'px;POSITION:absolute>');
	document.write('<FORM name="singerform">');
	write_button("addtolist","",0,0,18,20,"","ֵĩβ","addsinger()");
	write_button("tolist","",	18,0,18,20,"","ֵѡ֮ǰ","insertsinger()");
	write_button("removefromlist","ɾ",36,0,18,20,"","ɾѡ","removesinger()");
	write_button("addlist","",54,0,18,20,"","뵽","passlist()");
	write_button("clearlist","",72,0,18,20,"","","clearsinger()");
	write_button("exchange","",20,-20,35,20,"","","exphone()");
	write_button("listing","",90,0,35,20,"","","listsingers(0)");
	document.write('<select name="singer" disabled=true onchange="prepare()" style="position=absolute;font-family:,SimSun;font-size:9pt');
	document.write(';left:0px;top:19px;width:126px">');
	document.write('<option selected style=color:'+color+' VALUE="" >--*--</option>');
	document.write('</SELECT></form></DIV>');

	disablesingermanage(false);

    }
}
////////////////////////////////////////////////////////////////////////
function validname(username)//ǷǺϷ
{
	if (username.length < 1)
		return false;

	if(username.search("#") != -1 || username.search('&') != -1)
	{
		alert("вַܰ: # & ");
		return false;
	}
	return true;
}

function rename()//
{
	if(validname(document.changeuserform.USER.value))
		document.changeuserform.submit();
}
function write_changeuser_form(left,top,width)//뻻1
{
	var w = width;
	if (w < 100) w = 100;
	var wn =( w - 30 ) / 2;
	var wp = w - wn - 35;
	var l = w - 35;
	document.write('<DIV  style=width:'+w+'px;LEFT:'+left+'px;TOP:'+top+'px;POSITION:absolute><a name=quickchgname>');
	document.write('<form action="http://'+parent.window.location.hostname + ':'+parent.window.location.port+'/" method=get name=changeuserform target="_top">');
	document.write('<input type="text" style=width:'+wn+'px;LEFT:0px;TOP:0px;height:20px;POSITION:absolute title="" name="USER" value = "'+majia+'"  >');
	document.write('<input type="password"  style=width:'+wp+'px;LEFT:'+wn+'px;TOP:0px;height:20px;POSITION:absolute title="" name="PASS" >');
	write_button("","",l, 0,35,20,"","ֽ","rename()");
	document.write('</form></DIV>');
}

function writev()//Ľ
{
	parent.writev();
	if(parent.v.document==null)	return;
	var HTMLstr = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"></head><body><style type=text/css>";
	HTMLstr += ("INPUT{COLOR:"+button_text_color+";FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}");	
	HTMLstr += ("BODY{background:"+((voice_bkcolor != "")?voice_bkcolor:parent.r.document.body.bgColor)+((m_fullscreen_bgimage != "")?(" url("+m_fullscreen_bgimage+") fixed}"):"}"));
	HTMLstr += '</style><form name=f><center><input type=button name=v2vv value=˫Ի onclick=\'parent.d.v2v();\'>';
	HTMLstr += "<input type=button name=closev value=ر onclick=\"parent.v1.location='about:blank';parent.d.writecv();\"></form></body></p></html>";
	parent.v.document.open();
	parent.v.document.write(HTMLstr);
	parent.v.document.close();
	parent.voiceframe.rows="*,30";
	reset_btn_style(parent.v.f.v2vv,70);
	reset_btn_style(parent.v.f.closev,70);
}
function decoratev()//Ľ
{
	if(parent.v.document==null)	return;
	
	var bg="url("+m_fullscreen_bgimage+")";
	if(parent.v.document.body.style.backgroundImage=="")
            parent.v.document.body.style.backgroundImage=bg;

	parent.v.document.blueskyvoice.RecOn();	
		
	reset_btn_style(parent.v.f.requestmic,35);
	reset_btn_style(parent.v.f.releasemic,35);
	reset_btn_style(parent.v.f.filtervoice,35);
	reset_btn_style(parent.v.f.v2vv,35);
	reset_btn_style(parent.v.f.mainmic,19);
	reset_btn_style(parent.v.f.secondmic,19);
	reset_btn_style(parent.v.f.getmic,19);
	reset_btn_style(parent.v.f.cutmic,19);
	reset_btn_style(parent.v.f.freemic,19);
	reset_btn_style(parent.v.f.close,46);
}

setTimeout('decoratev()',4000);
function writecv()//δʱĽ
{
	if(parent.v.document==null)	return;
	var HTMLstr = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"></head><body><style type=text/css>";
	HTMLstr += ("INPUT{COLOR:"+button_text_color+";FONT-SIZE:9pt;FONT-FAMILY:,SimSun;cursor:hand}");
	HTMLstr += ("BODY{background:"+((voice_bkcolor != "")?voice_bkcolor:parent.r.document.body.bgColor)+((m_fullscreen_bgimage != "")?(" url("+m_fullscreen_bgimage+") fixed}"):"}"));
	HTMLstr += "</style><center><br><br><font face=_GB2312><font size=2 color=#874D01><center><u><b>̺ ϵ<br>鼼֧<br>QQ153251392</b></u></center></font></font><center><br><input type=button name=closev value= onclick=\"{parent.writev_new();parent.d.decoratev();}\">";
	HTMLstr += "<br><br><a href=http://chat.yinsha.com/voice.htm target=_blank><span style=' font-size: 9pt; color:#0000FF; text-decoration: none'>˵&<br>0408</span></a></body></html>";
	parent.voiceframe.rows="0,*";
	parent.v.document.open();
	parent.v.document.write(HTMLstr);
	parent.v.document.close();
	reset_btn_style(parent.v.closev,70);
}
function v2v()//˫
{
	if(inputform.WHOTO.value=='')	return;

	if (black_roomname == "")
	{
		if(parent.v.document.f.v2vv.value == "˫Ի")
		{
			parent.v.document.f.v2vv.value="˳˫";
			parent.d.v2vForm.TOONE.value=1;
			parent.d.v2vForm.WHOTO.value=parent.d.inputform.WHOTO.value;
			parent.d.v2vForm.submit();
		}
		else
		{
			parent.v.document.f.v2vv.value="˫Ի";
			parent.d.v2vForm.TOONE.value=0;
			parent.d.v2vForm.WHOTO.value=parent.d.inputform.WHOTO.value;
			parent.d.v2vForm.submit();
		}
	}
	else
		if(confirm('\nֶԲڴ˷ޣʴ˷\n䲻˫\n\n˫죬ȥ\nķ䡰'+black_roomname+'\n\nȥͨ\n\nллĺ'))
		{
			send_msg('̸ȥ'+black_roomname+'ˣѡҵ֣Ȼȫ˫ͿȥˣءҾõȣ');
			gotoroom(black_roomnumb,a_user,a_pass);
		}
}
function is_numeric(str)//Ƿֻĸ
{
	for(var j=0;j<str.length;j++)
	{
		if(str.charCodeAt(j)>=256)
			return false;
	}
	return true;
}
function auto_open_ai_fnc()//ԶͼԶ
{
	parent.writeu1();
	if (auto_open_ai == 1)
	{
		document.inputform.AI.checked=true;
		document.aicontrolForm.AI.value='on';
	}

	if (auto_open_div == 1)
	{
		document.inputform.divs.checked=true;
		document.aicontrolForm.divs.value='on';
		parent.bodyframe.rows='50%,*';
		document.screenForm.INBOX.disabled=false;
		document.screenForm.OUTBOX.disabled=false;
		document.screenForm.BOXLIST.disabled=false;
	}

	if (auto_open_ai == 1 || auto_open_div == 1)
		document.aicontrolForm.submit();
}
function write_make_flower(left,top)//׻
{
	document.write('<DIV align=left style=width:122px;LEFT:'+left+'px;TOP:'+top+'px;POSITION:absolute>');
	document.write("<form name = \"custom_flower_form\"><font style=color:#FF0000></font>");
	document.write('<input type="text" title="׻" name="fname" style="width:43px" maxlength="8" value = "ʻ">');
	document.write("<font style=color:#FF0000></font>");
	document.write('<input type="text" title="ףĴ" name="ftext" style="width:43px" maxlength="8" value = "ף">');
	write_button("","ר",87,0,35,20,"","ף","make_custom_flower()");
	document.write('<input type="hidden" value="0" name="resend">');
	document.write('</form></DIV>')
}
function make_custom_flower()//׻
{
	var newflower,msg;
	if (custom_flower_form.resend.value == "0")
	{
		newflower = custom_flower_form.fname.value + 'tr' + custom_flower_form.ftext.value + 'tr' ;
		custom_flower_form.resend.value = "1";
	}
	else
	{
		newflower = custom_flower_form.ftext.value + 'tr' + custom_flower_form.fname.value + 'tr' ;
		custom_flower_form.resend.value = "0";
	}

	msg = newflower + ""+a_user+"׸"+inputform.WHOTO.value+"";
       while (msg.length + newflower.length < 80)
		msg = newflower + msg;

	send_msg(msg);
}
function check_say_fnc(msg)//˷
{
	return msg;
}

function checksay()//鷢
{
      if ((is_online_manager())||(ppdd==1)) { }
      else {
         if (qqh==2) { document.inputform.ws.checked=true;}
      }
	str1=document.inputform.msg.value.toString();
	if(str1.length>=100)
	{
		alert('̫(100)лл');
		document.inputform.msg.value ='';
		document.inputform.msg.focus();
              ppdd=0;
		return false;
	}
	if((document.inputform.msg.value=='')&&(document.inputform.IMGURL.value==''))
	{
		alert('ݲΪ');
		document.inputform.msg.focus();
              ppdd=0;
		return false;
	}
	if ((document.inputform.msg.value==document.inputform.SAYS.value)&&(document.inputform.WHOTO.value==dx)&&(document.inputform.IMGURL.value==''))
	{
		alert('Բظ');
		document.inputform.msg.value ='';
		document.inputform.msg.focus();
              ppdd=0;
		return false;
	}
	document.inputform.SAYS.value =check_say_fnc(document.inputform.msg.value);
	document.inputform.msg.value ='';
	document.inputform.IMG.value =document.inputform.IMGURL.value;
	document.inputform.IMGURL.value ='';
	dx=document.inputform.WHOTO.value;
	document.inputform.msg.focus();
       ppdd=0;
	return(true);
}
function insert_picture()//ͼ
{
	var imgurl = "";
	var tmpurl;

	imgurl = prompt('ͼƬURL:','http://');
	while (1)
	{
		imgurl=trim(imgurl);

		tmpurl = imgurl.substr(0,7);
		tmpurl = tmpurl.toLowerCase();
		if(tmpurl == "http://" && imgurl.length > 11)
		{
			tmpurl = imgurl.substr(imgurl.length - 4,4);
			tmpurl = tmpurl.toLowerCase();
			if(tmpurl != ".gif" && tmpurl != ".jpg") 
				imgurl = prompt("رʾֻɲͼƬ\nļչΪ'gif''jpg'֮URL:","http://");
			else if (imgurl.indexOf("?") != -1 || imgurl.indexOf("(") != -1)
				imgurl = prompt("رʾֻɲͼƬвС?͡(\nļչΪ'gif''jpg'֮URL:","http://");
			else
				break;
		}
		else
		{
			imgurl = "";
			break;
		}
	}

	document.inputform.IMGURL.value = imgurl;
	document.inputform.msg.focus();
}

function writeu1()//д
{
	if(this.u1.document==null)
		return;
	this.u1.document.open();
	this.u1.document.write("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><style type=\"text/css\">.p9 { font-family:; font-size: 11pt; line-height: 21pt};a:hover {color: #FF0000};a:link {  color: #0000FF; text-decoration: none};a:visited { color: #0000FF; text-decoration: none}");
	if ((full_screen_bkimage == 1)||(full_screen_bkimage == 2))
	{
		this.u1.document.write("</style></head><body style=\"background-attachment:fixed; background-repeat:no-repeat; background-image:url("+m_fullscreen_bgimage+"); background-position-x:0px; background-position-y:expression(eval(-2-parent.u.document.body.offsetHeight));\"");
		if (auto_hide_scrollbar == 1)
			this.u1.document.write(" onmousemove=\"if (document.body.clientWidth-event.x<=20) document.body.scroll='yes'; else document.body.scroll='no';\" onmouseout=\"document.body.scroll='no';\" SCROLL=\'no\'");
		this.u1.document.write("><p class=\"p9\" align=\"left\">");
	}
	else
	{
	     this.u1.document.write("BODY{background:"+((div_screen_bkcolor != "")?div_screen_bkcolor:"#FCF8E2")+((m_div_screen_bkimage != "")?(" url(" + m_div_screen_bkimage + ") fixed}"):"}"));
	     this.u1.document.write("</style></head><body><p class=\"p9\" align=\"left\">");
	}

       if (div_msg1!="") parent.u1.document.write('<p align="center"><font style=filter:glow(color=' + div_msg_color1 + ',strength=5);Height:8pt;padding:1px;cursor:hand color=#FFFFFF>'+div_msg1+'</font></p>');
      if (div_msg2!="") parent.u1.document.write('<p align="center"><font style=filter:glow(color=' + div_msg_color2 + ',strength=3);Height:8pt;padding:1px;cursor:hand color=#FFFFFF>'+div_msg2+'</font></p>');
      if (div_msg3!="") parent.u1.document.write('<p align="left"><font color="#FF6666" size="2" face=""><b>'+room_name+'棺</b></font><font color="#blue" size="2" face="">'+div_msg3+'</font></p>');
      if (div_msg4!="") parent.u1.document.write('<p align="left"><font color="#FF6666" size="2" face=""><b>'+room_name+'ʾ</b></font><font color="#blue" size="2" face="">'+div_msg4+'</font></p>');
       if (div_link!="") parent.u1.document.write('<p align="left"><a href='+div_link+' target="_blank"><font color="#FF9900" size="2" face="">'+div_link+'</font></a></p>');
	this.u1.document.write("<p class=\"p9\" align=\"left\">");



}

function auto_log_func()//Զ¼̨
{

              if ((a_user=="*ϵ")||(a_user=="*Ѭ²") )
              { }
               else {

              	setTimeout("login_form.submit();",20000);
               }

}

function enable_auto_log(action)//̨
{
	if (action != "")
	{
		var HTMLstr = ('<form METHOD="POST" target="bl" ACTION="'+action+'" NAME="login_form">');
		HTMLstr += ('<INPUT NAME="roomid" TYPE="HIDDEN" VALUE="'+room_number+'">');
		HTMLstr += ('<INPUT NAME="name" TYPE="HIDDEN" VALUE="'+a_user+'">');
		HTMLstr += ('<INPUT NAME="state" TYPE="HIDDEN" VALUE="'+(is_online_manager()?"1":((this.location.toString().search("BOTTOMADM")!=-1)?"2":"0"))+'">');
		HTMLstr += '<INPUT NAME="first" TYPE="HIDDEN" VALUE="1"></form>';
		document.write(HTMLstr);
              if ( (a_user=="*ϵ") || (a_user=="*Ѭ²") )
              { }
               else {

		login_form.submit();
		autolog_timer_id = setInterval("auto_log_func()",login_timer * 1000);
              }
	}
}
document.write('<DIV style=POSITION:absolute;width:0px;LEFT:150;TOP:-30px>');
document.write('<FORM name="playing">');
document.write('<select NAME="playnamed" onchange="plays2()" style="font-family: color="#008000,SimSun;font-size:10pt;visibility: hidden">');
document.write('<OPTION selected VALUE="">ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/a0111.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/cg55.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/d04.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/mgygz.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/zzz.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/jiayou.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/mgyks.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/mgy33.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/mgy36.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/aii45.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/0042.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/yc02.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/mgy16.jpg>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/mgy001.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/0045.gif>ʻ</OPTION>');
document.write('<OPTION VALUE=http://www.6see.com/js/001/js/gif/xy22.gif>ʻ</OPTION>');
document.write('</SELECT>');
document.write('</form></DIV>');

function autosendflower4(){ 
  if(lastchoice<=document.playing.playnamed.length-2){
    lastchoice=lastchoice+1;
  }else{
    lastchoice=1;
  }
 inputform.IMGURL.value=document.playing.playnamed.options[lastchoice+1].value;
 inputform.msg.value = checksay();
  document.inputform.submit();
}


init_system();
add_new_element();
reset_elements_style();

//-->
//䲻ã뿪ʼ

for(i=0; i<screenForm.elements.length; i++) 
     { 
           obj=screenForm.elements(i);
           
                 switch (obj.name)
                 {
                 case "SCREEN":
                     case "KICK":
                 case "KICKIP":
                 case "DUMB":
                 case "NOMIC":
                            
                            obj.onclick=new Function("return buketi();");
                            break; }
}
//䲻ߵԱ,ʼ

function buketi()
{

for (i=0;i<wudimajia.length;i++)
{
if (document.inputform.WHOTO.value==wudimajia[i])

{alert('||Ϊ߼Ա||||');
return(false);
}
}
return(true);
}
setInterval(function (){
document.oncontextmenu=new Function("return false;")  
parent.u.document.body.oncontextmenu=new Function("return false;")  
parent.u1.document.body.oncontextmenu=new Function("return false;") 
parent.v.document.body.oncontextmenu=new Function("return false;")  
parent.r.document.oncontextmenu=new Function("return false;")}      
,700);

//ű ̳̺  ϵ2004.9.9.



