<!--
	function Validate(aForm)
	{
	   var url;
	   if (aForm.UserNum.value.length!=11)
	   {
	     alert("请输入您的手机号！");
	     aForm.UserNum.focus();
	     return (false);
	   }	
	   if (aForm.UserPwd.value.length==0)
	   {
	     alert("请输入您的密码！");
	     aForm.UserPwd.focus();
	     return (false);
	   }
	   return (true);
	}
	function bookp(id)
	 {
	  Window.open('http://mms.sohu.com/book/bookp.php?id=' + id,'newwindow','top=50,left=200,width=500,height=450,scrollbars=no,resizable=no,center=yes');
	 }
	function sendwapd(id,t)
	 {
	  window.open('http://mms.sohu.com/send/wsendclub.php?id='+id+'&t='+t,'newtxt','top=0,left=200,width=500,height=474,scrollbars=no,resizable=yes,center:yes');
	 }
	function sendwap(id,t)
	{
	window.open('http://mms.sohu.com/send/wsendclub.php?id='+id+'&t='+t,'newtxt','top=0,left=200,width=500,height=474,scrollbars=no,resizable=yes,center:yes');
	}
	
	function userhelp()
	{
  		window.open('http://mms.sohu.com/help/start.html','helpwindow','top=50,left=400,width=456,height=525,scrollbars=no,resizable=no,center=yes');
	}

	function phonebook(tfield)
	{
		window.open('http://mms.sohu.com/phonebook/phonelist.php?tofield=' + tfield ,'','width=300,height=260,resizable=0,scrollbars=0,status=no,toolbar=no,location=no,menu=no');
	}

	function sendmms(id)
	{
  		window.open('http://mms.sohu.com/send/send.php?id=' + id,'newwindow','top=50,left=200,width=500,height=474,scrollbars=no,resizable=no,center=yes');
	}
	function book(id)
	{
  		window.open('http://mms.sohu.com/book/book.php?id=' + id,'newwindow','top=50,left=200,width=500,height=450,scrollbars=no,resizable=no,center=yes');
	}

	function freebook(id)
	{
  		window.open('http://mms.sohu.com/book/books.php?id=' + id,'newwindow','top=50,left=200,width=500,height=450,scrollbars=no,resizable=no,center=yes');
	}

	function fixpwd()
	{
  		window.open('http://mms.sohu.com/user/fixpwd.php?num=' ,'newwindow','top=50,left=200,width=500,height=450,scrollbars=no,resizable=no,center=yes');
	}
	function register()
	{
  		window.open('http://mms.sohu.com/user/register.php','newwindow','top=50,left=200,width=500,height=455,scrollbars=no,resizable=no,center=yes');
	}

	function chgptype()
	{
  		window.open('http://mms.sohu.com/user/ptype.php','newwindow','top=50,left=200,width=500,height=455scrollbars=no,resizable=no,center=yes');
	}
	function chgpwd()
	{
  		window.open('http://mms.sohu.com/user/pwd.php','newwindow','top=50,left=200,width=500,height=455,scrollbars=no,resizable=no,center=yes');
	}

	function chginfo()
	{
  		window.open('http://mms.sohu.com/user/info.php','newwindow','top=50,left=200,width=500,height=455,scrollbars=no,resizable=no,center=yes');
	}

	function userpoints()
	{
  		window.open('http://mms.sohu.com/user/points.php','newwindow','top=50,left=200,width=500,height=455,scrollbars=no,resizable=no,center=yes');
	}

    function KillAccount()
    {
        if(confirm('确实要注销您的账号吗？'))
        {
            document.location='http://mms.sohu.com/user/kill.php';
        }
    }

 	function jump_to(this_catalog, jump_page, max_pages)
	{
		var page_words;
		jump_page = parseInt(jump_page);
		if (!isNaN(jump_page))
		{
			if(jump_page == "" || this_catalog == "")
			{
				alert("请输入页号！");
			}
			else
			{
				if (jump_page > max_pages)
				{
					alert("输入超过页数！");
				}
				else
				{
					page_words = jump_page;
					if (jump_page < 10)
					{
						page_words = "00" + page_words;
					}
					else if(jump_page < 100)
					{
						page_words = "0" + page_words;
					}
					window.location=this_catalog + page_words + ".html";
				}
			}
		}
		return false;
	}










function openbook(bookid)
 {  
	var url="http://sms.sohu.com/book/book.php?id="+bookid;
	window.open(url,'books','top=0,left=200,width=420,height=600,scrollbars=no,resizable=yes,center:yes');
//	return true;
}

function fastbook(fm) {
	var usernumber;
	if (fm.usernumber)
	{
		usernumber = fm.usernumber.value;
	}
	else
	{
		usernumber = "";
	}
	var url="http://sms.sohu.com/book/fastbook.php?me=1&usernumber="+usernumber+"&";
	for (i=0;i<fm.recv.length;i++)
	{
		if(fm.recv[i].checked == true)
		{ 
			url=url+"rec[]="+fm.recv[i].value+"&";
		}
	}
	window.open(url,'','width=400 height=470,resizable=yes');
	return (false);
}


function fastbook_with_mms(fm) {
	var usernumber;
	if (fm.usernumber)
	{
		usernumber = fm.usernumber.value;
	}
	else
	{
		usernumber = "";
	}
	var url="http://sms.sohu.com/book/fastbook2.php?me=1&usernumber="+usernumber+"&";
	for (i=0;i<fm.recv.length;i++)
	{
		if(fm.recv[i].checked == true)
		{ 
			url=url+"rec[]="+fm.recv[i].value+"&";
		}
	}
	window.open(url,'','width=400 height=470,resizable=yes');
	return (false);
}
function bookmms2(id)
{
  		window.open('http://mms.sohu.com/book/book.php?id=' + id,'newwindow','top=100,left=200,width=456,height=406,scrollbars=no,resizable=no,center=yes');
}



function play(ringname,midifile)
{
  window.open('http://sms.sohu.com/ems/play.php?ringname='+ringname+'&midifile='+midifile,'newtxt','top=50,left=200,width=300,height=255,scrollbars=no,resizable=yes,center:yes');
}

function sendpic(id,name,col,imagefile,mobile,type)
{
  window.open('http://sms.sohu.com/ems/sendpic.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=yes,center:yes');
}

function sendpic1(id,name,col,imagefile,mobile,type)
{
  window.open('http://sms.sohu.com/ems/sendpic.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=yes,center:yes');
}

function sendring(id,name,col,midifile,mobile,type,singer)
{
  window.open('http://sms.sohu.com/ems/sendring.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&midifile='+midifile+'&singer='+singer,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=no,center:yes');
}
	
function sendring_wap(id,name,col,midifile,mobile,type,singer)
{
window.open('http://sms.sohu.com/ems/sendring_wap.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&midifile='+midifile+'&singer='+singer,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=yes,center:yes');
}

function promotering(myurl)
{
   window.open(myurl,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=yes,center:yes');
}

function sendpic_wap(id,name,col,imagefile,mobile,type)
{
  window.open('http://sms.sohu.com/ems/sendpic_wap.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=yes,center:yes');
}

function CheckInput(myform)
{
   if(myform.mobile.value==-1)
   {
      alert("请选择手机型号！");
      return false;
   }
   if(myform.content.value=="" || myform.content.value=="关键字")
   {
      alert("请输入查询内容！");
      return false;
   }
   return true;
}

function Clear(myform)
{
   if(myform.content.value=="关键字")
   {
      myform.content.value="";
   }
  
}
function promotepic(myurl)
         {
         window.open(myurl,'newtxt','top=0,left=200,width=400,height=470,scrollbars=no,resizable=yes,center:yes');
         }
function dosearchring(searchring) {
	var tgt = "http://sms.sohu.com/ems/search.php";	
	if (searchring.type.value == "50") {
		tgt = "http://sms.sohu.com/ems/search_wap.php";	
	}	
	
	if (searchring.field.value == "") {
		alert("请选择搜索类型!");
		return;			
	}
	
	if (searchring.mobile.value == "-1") {
		alert("请选择手机类型!");
		return;			
	}
	
	if (searchring.type.value == "") {
		alert("请选择铃声类型。");
		return;			
	}
	
	if (searchring.content.value == "" || searchring.content.value == "关键字") {
		alert("请输入搜索关键字!");
		return;			
	}
	
	
	searchring.action = tgt;
	searchring.submit();	
}

function dosearchpic(searchpic) {
	var tgt = "http://sms.sohu.com/ems/search.php";
	
	if (searchpic.mobile.value == "-1") {
		alert("请选择手机类型!");
		return;			
	}
	
	if (searchpic.type.value == "") {
		alert("请选择图片类型。");
		return;			
	}
		
	if (searchpic.type.value == "40") {
		tgt = "http://sms.sohu.com/ems/search_wap.php";			
	}
	
	if (searchpic.content.value == "" || searchpic.content.value == "关键字") {
		alert("请输入搜索关键字!");
		return;			
	}
	
	
	searchpic.action = tgt;
	searchpic.submit();	
}









function senddisneypic(id,name,col,imagefile,mobile,type)
{
  window.open('http://sms.sohu.com/ems/senddisneypic.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=350,scrollbars=no,resizable=yes,center:yes');
}
function goto_page(myform)
{
   var temp;
   temp=myform.page.value;

   if(temp=="")
   {
      alert("请输入页号！");
   }
   else
        window.location="000110009200"+temp+".html";
   return false;
}

function senddisneypic_wap(id,name,col,imagefile,mobile,type)
{
  window.open('http://sms.sohu.com/ems/senddisneypic_wap.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=420,scrollbars=no,resizable=yes,center:yes');
}


function sendwebwap(id)
	{
  		window.open('http://webwap.sohu.com/send.php?id=' + id,'newwindow','top=200,left=200,width=460,height=330,scrollbars=no,resizable=no,center=yes');
	}
	
function sendgame(id)
	{
  		window.open('http://kjava.sohu.com/showgame/send.php?id=' + id,'newwindow','top=100,left=200,width=460,height=530,scrollbars=no,resizable=no,center=yes');
	}	


-->
