
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var user_id="24090";
var user_colora,user_colorb,user_logo,url_tmp ;
user_colora="94D731" ;
user_colorb="B6E06F" ;
user_logo="/images/smslogo.gif" ;
var url="&:&";
url=url.split("&") ;
open_subscribe('',48,'','2',user_id);




function GetCookie(name)
{
	var result=null;
	var myCookie=" " +document.cookie +";";
	var searchName = " " +name+ "=";
	var startOfCookie = myCookie.indexOf(searchName);
	var endOfCookie;
	if (startOfCookie !=1)
	{
		startOfCookie += searchName.length;
		endOfCookie=myCookie.indexOf(";",startOfCookie);
		result=unescape(myCookie.substring(startOfCookie,endOfCookie));
	}
	return result;
}

function SetCookie(name,value,expires,path,domain,secure)
{
	var expString=((expires==null)? "":("; expires="+expires.toGMTString()));
	var pathString=((path==null)?"":("; path="+path));
	var domainString=((domain==null)?"":("; domain="+domain));
	var secureString=((secure==true)?"; secure":"");
	document.cookie=name + "=" +escape(value)+expString +pathString+domainString +secureString;
}


function open_subscribe(inc,type,id,z,user_id)//Added by Tom.LM 02-9-22 23:08
{
	var p_name="wxqy_pic_list_jump_71" ;
	var today= new Date();
		//time_flag=today.getHours(); //0-23
		//if (time_flag<=9){p_name="9_subscribe"};
		//if ((time_flag>9)&&(time_flag<=15)){p_name="wxqy_subscribe_new_flash"};
		//if ((time_flag>15)&&(time_flag<=23)){p_name="wxqy_subscribe_new"};
	var temp=GetCookie("OpenNewOne");
	//document.write("alert('"+temp+"');");
	if (temp!="T")
	{
		var fiveYears=60*30*1000;
		var expDate= new Date();
		expDate.setTime(expDate.getTime()+fiveYears);
		SetCookie("OpenNewOne","T",expDate,null,null,false);
		
		window.open('http://www.thethirdmedia.com/sms/smse.aspx/mysmsPacaPac/'+p_name+'.php?inc='+inc+'&type='+type+'&id='+id+'&user_id='+user_id+'&code_id=99',''+p_name+'','height=300,width=300,resizable=no,location=no');
	};
		
}


function sms_send(inc,type,id,key)           
{
	var bt="",special_flag=0;
	if ((type==45)||(type==46)||(type==39)||(type==43)||(type==44)||(type==41)||(type==42)||(type==52)||(type==53)||(type==54)||(type==55)||(type==56)||(type==64)){bt="color_pic";special_flag=1;};
	if ((type==47)||(type==40)||(type==50)||(type==51)||(type==57)||(type==59)||(type==66)){bt="hexuan";special_flag=1;};
	if ((type==51)||(type==55)||(type==56)||(type==54)||(type==53)){special_flag=2;};
	window.open('http://www.thethirdmedia.com/sms/smse.aspx/usendPacaPac/fast_send_meet.php?inc='+inc+'&type='+type+'&id='+id+'&user_id='+user_id+'&code_id=99&key='+key+'&bt='+bt+'&special_flag='+special_flag,'','height=180,width=450,resizable=no');
	
}
function sms_send1(inc,type,id,key)           
{
	var bt="",pf="u_lingsheng_step0",special_flag=0;
	if ((type==45)||(type==46)||(type==39)||(type==43)||(type==44)||(type==41)||(type==42)||(type==52)||(type==53)||(type==54)||(type==55)||(type==56)||(type==64)){bt="color_pic";special_flag=1;};
	if ((type==47)||(type==40)||(type==50)||(type==51)||(type==57)||(type==59)||(type==66)){bt="hexuan";special_flag=1;};
	if ((type==51)||(type==55)||(type==56)||(type==54)||(type==53)){special_flag=2;};
	if (inc==1){pf="v7n_yanyu_step0";};
	if (inc==2){pf="v7n_tupian_step0";};
	if (inc==3){pf="v7n_lingsheng_step0";};
	window.open('http://www.thethirdmedia.com/sms/smse.aspx/usendPacaPac/'+pf+'.php?inc='+inc+'&type='+type+'&id='+id+'&user_id='+user_id+'&var='+key+'&bt='+bt+'&special_flag='+special_flag,'','height=180,width=450,resizable=no');
	
}

function free_send(inc,type,id)
{
	var bt="",special_flag=0;
	window.open('http://www.thethirdmedia.com/sms/smse.aspx/usendPacaPac/free_send_meet.php?inc='+inc+'&type='+type+'&id='+id+'&user_id='+user_id+'&code_id=99'+'&bt='+bt+'&special_flag='+special_flag,'','height=250,width=300,resizable=no');
}

function game_subscribe(inc,type,id,z)//Added by Tom.LM 02-9-22 23:08
{
	//alert(z) ;
	var winsize=300;
	p_name="wxqy_gif_list_txt_75" ;
	if (z=='3'){p_name="vgirl_subscribe_new" ;}
	if ((z=='1')||(z=='2')){p_name="wxqy_gif_list_txt_75" ;};
	if (z=='4'){p_name="qqxh" ;winsize=250;};
	window.open('http://www.thethirdmedia.com/sms/smse.aspx/usmsPacaPac/'+p_name+'.php?inc='+inc+'&type='+type+'&id='+id+'&user_id='+user_id+'&code_id=99',''+p_name+'','height='+winsize+',width='+winsize+',resizable=no,location=no');
}

function sms_goto(order,inc,type,cata,page)
{
	var bt="",special_flag=0;
	if ((type==45)||(type==46)||(type==39)||(type==43)||(type==44)||(type==41)||(type==42)||(type==52)||(type==53)||(type==54)||(type==55)||(type==56)||(type==64)){bt="color_pic";special_flag=1;};
	if ((type==47)||(type==40)||(type==50)||(type==51)||(type==57)||(type==59)||(type==66)){bt="hexuan";special_flag=1;};
	if ((type==51)||(type==55)||(type==56)||(type==54)||(type==53)){special_flag=2;};
	document.URL="http://www.thethirdmedia.com/sms/smse.aspx/usmsPacaPac/smslist/sms_" + order + "_" + inc + "_" + type + "_" + cata + "_" + page + ".htm?user_id="+user_id + "&" + url[1] + "&" + url[2] + "&user_logo=" +user_logo+ "&bt=" +bt+'&special_flag='+special_flag;
}
function sms_goto2(page)
{
	sms_goto(form_go.order.value,form_go.inc.value,form_go.type.value,form_go.catalog.value,page);
	return false;
}
function go_search()
{
	document.URL="http://www.thethirdmedia.com/sms/smse.aspx/mysmsPacaPac/smslist/smsearch.php?user_id=" + user_id +"&" + url[1] + "&" + url[2]+ "&" + url[3]+"&keyword=" + search.keyword.value + "&inc=" + search.inc.value   ;
	return false;
}
function show_mysms()
{
	window.open("show_mysms.php?user_id="+user_id,null,"");
}
function go_com_url(url)
{
	urls= url+"?user_id="+user_id + "&user_color1=" + user_colora + "&user_color2=" + user_colorb + "&user_logo=" +user_logo;
	window.open(urls,'_blank','');
}
function tom_ivr_send_song(id)           
{
	window.open('http://www.thethirdmedia.com/sms/smse.aspx/smsPacaPac/v7n_ivr_song_step0.php?var=1&id='+id+'&user_id='+user_id+'&code_id=81&','','scrollbars=no');
}


function tomgetuser_new(src)
{
	return "24090";
}	
function tomgetuser(src)
{
	return "24090";
}

function tomgetuname(src)
{
	return "yuxi";
}

function tomgourl(urls, Height, Width)
{
	
		urls= urls + "&user_id=24090" ;
		window.open(urls,'','height=' + Height + ' ,width=' + Width + ',resizable=no,location=yes');
	

}

function tomgo(urls)
{
	
		urls= urls + "&user_id=24090" ;
		window.open(urls);
	

}

function tomgologin(urls, Height, Width)
{
	
	urls= urls + "?up_line=24090";
	open(urls,'','height=' + Height + ' ,width=' + Width + ',location=yes,scrollbars=yes');
}


