/*
var z_img1 = new Image(19,40);
z_img1.src="fatherday.gif";
var z_img2 = new Image(19,40);
z_img2.src="worldcup-2.gif";

<!-- Begin
function placeFocus() {
if (document.Login.length > 0) {
var field = document.Login;
for (i = 0; i < field.length; i++) {
if ((field.username.type == "text") || (field.username.type == "textarea") || (field.username.type.toString().charAt(0) == "s")) {
document.Login.username.focus();
break;
         }
      }
   }
}
//  End -->

function chg_over(){
	document.sig1.src=z_img1.src
	document.sig2.src=z_img2.src
}
function chg_out(){
	document.sig1.src="http://images.sohu.com/sohu_logo.gif"
	document.sig2.src="http://images.sohu.com/sohu_logo.gif"
}
function Validate(aForm)
{
   var url;
   if (aForm.message.value.length>50)
   {
     alert("短信超长,最多50个字！");
     aForm.message.focus();
     return (false);
   }	
   if (aForm.message.value=="")
   {
     alert("请输入短信内容！");
     aForm.message.focus();
     return (false);
   }
   if (aForm.tonumber.value.length<11)
   {
     alert("请输入目的手机号码!");
     aForm.tonumber.focus();
     return false;
   }
   if (aForm.usernumber.value.length<11)
   {
     alert("请输入您的手机号码!");
     aForm.usernumber.focus();
     return false;
   }
   if (aForm.password.value=="")
   {
     alert("请输入您的密码!");
     aForm.password.focus();
     return false;
   }
   if (aForm.username.value.length>8)
   {
     alert("名字最多8个字！");
     aForm.username.focus();
     return false;
   }
   return (true);
}
function setfocus()
{
  send.Msg.focus();
}
function promotering(myurl)
{
   window.open(myurl,'newtxt','top=0,left=200,width=400,height=235,scrollbars=no,resizable=yes,center:yes');
}
function play(ringname,midifile)
{
  window.open('/ems/play.php?ringname='+ringname+'&midifile='+midifile,'newtxt','top=50,left=200,width=200,height=85,scrollbars=no,resizable=yes,center:yes');
}
function sendbolt(id)
{
  window.open('/bolt/send.php?id='+id,'newtxt','top=0,left=200,width=400,height=235,scrollbars=no,resizable=yes,center:yes');
}
function sendring(id,name,col,midifile,mobile,type)
{
  window.open('/ems/sendring.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&midifile='+midifile,'newtxt','top=0,left=200,width=400,height=235,scrollbars=no,resizable=yes,center:yes');
}
function sendring_wap(id,name,col,midifile,mobile,type)
{
  window.open('/ems/sendring_wap.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&midifile='+midifile,'newtxt','top=0,left=200,width=400,height=225,scrollbars=no,resizable=yes,center:yes');
}
function sendpic(id,name,col,imagefile,mobile,type)
{
  window.open('/ems/sendpic.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=235,scrollbars=no,resizable=yes,center:yes');
}
function sendpic_wap(id,name,col,imagefile,mobile,type)
{
  window.open('/ems/sendpic_wap.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=290,scrollbars=no,resizable=yes,center:yes');
}
function sendblink(id,name,col,imagefile,mobile,type)
{
  window.open('/ems/sendblink.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=235,scrollbars=no,resizable=yes,center:yes');
}
function sendanim(id,name,col,imagefile,mobile,type)
{
  window.open('/ems/sendanim.php?id='+id+'&mobile='+mobile+'&type='+type+'&name='+name+'&class='+col+'&imagefile='+imagefile,'newtxt','top=0,left=200,width=400,height=235,scrollbars=no,resizable=yes,center:yes');
}
function send(id,name,col,file,mobile,type)
{
   if(type==8 || type==9 || type==13 || type==17 || type==18 || type==19)  sendring(id,name,col,file,mobile,type);
   else if(type==88)  sendblink(id,name,col,file,mobile,type);
   else if(type==89)  sendanim(id,name,col,file,mobile,type);
   else if(type==40)  sendpic_wap(id,name,col,file,mobile,type);
   else if(type==50)  sendring_wap(id,name,col,file,mobile,type);
   else                    sendpic(id,name,col,file,mobile,type);
  
}

function sendtext(id,cla,msg)
{
  window.open('/message/sendtext.php?id='+id+'&class='+cla+'&msg='+msg,'newtxt','top=0,left=200,width=400,height=258,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;
   }

var url='/ems/search.php?mobile='+myform.mobile.value+'&content='+myform.content.value;
var url=url + '&field='+myform.type.value+'&type=8';
   window.open(url);
   return false;
}

function Clear(myform)
{
   if(myform.content.value=="关键字")
   {
      myform.content.value="";
   }
}
function sendifate(flag){
    var sex=0;
    switch (flag){
        case "1":
          productid="Sohu_00020";
          columnid="4696";
          break;
        case "2":
          productid="Sohu_00003";
          columnid="4697";
          break;
        case "3":
          productid="Sohu_00014";
          columnid="4843";
          break;
        case "4":
          productid="Sohu_00001";
          columnid="4695";
          break;
    }
  if (document.ifate.sex[0].checked) sex=1;
 window.open('/ifate/newsend.php?productid='+productid+'&columnid='+columnid+'&surname='+document.ifate.surname.value+'&name='+document.ifate.name.value+'&sex='+sex+'&year='+document.ifate.year.value+'&month='+document.ifate.month.value+'&day='+document.ifate.day.value+'&time='+document.ifate.time.value+'&quick=1','newtxt','top=0,left=200,width=400,height=225,scrollbars=no,resizable=yes,center:yes');
}

function openit(loadpos){
controlWindow=window.open(loadpos,"newtxt","top=0,left=200,width=400,height=420,scrollbars=no,resizable=yes,center:yes");
}

*/