// JavaScript Document
function logon1(){
 target1=document.login1.select.value;
 if( target1 == "mailtom") {
 	document.login1.action="http://bjweb.mail.tom.com/cgi/163/login_pro.cgi";
 	return true;

 }
  if( target1 == "mail163") {
 	document.login1.action="http://bjweb.mail.tom.com/cgi/163/login_pro.cgi";
 	return true;

 }
  if( target1 == "sms" ) {
 	document.login1.action="http://sms.tom.com/deal_other.php?action=login";
	document.login1.login_name.value=document.login1.user.value;
	document.login1.password.value=document.login1.pass.value;
 	return true;

 }
  if( target1 == "tomnet" ) {
 	document.login1.action="http://billing.cn.tom.com/cgi-bin/user/new_3/login.pl";
	document.login1.username.value=document.login1.user.value;
	document.login1.password.value=document.login1.pass.value;
 	return true;

 }
 if( target1 == "mytom" ) {
 	document.login1.action="http://login.tom.com/login.php";
	document.login1.username.value=document.login1.user.value;
	document.login1.pwd.value=document.login1.pass.value;
	document.login1.backurl.value="http://club.tom.com/index.php";
 	return true;
 }
 else{
 	return true;
 }
}
function clearpass(){
	document.loginfrm.pass.value="";
}
function clearpass1(){
	document.login1.pass.value="";
}
function picsubmit1(){
var url = "http://picsearch.tom.com/web/search.php?word="+document.tomsearch2.w.value
window.open(url);
}
function SelText()
{
	if (document.searchform.w.value == "请输入要查询的关键词")
	{
	document.searchform.w.value = "";
	}
	if (document.searchform.w.value == "请输入要查询的图片关键词")
	{
	document.searchform.w.value = "";
	}
}
function car(){
var url="http://search.tom.com/s.php";
document.searchform.edt.value=1;
document.searchform.action=url;
}
function search(){
var url="http://search.tom.com/s.php";
document.searchform.edt.value=0;
document.searchform.action=url;
}