function clearTxt (id) {
  if (document.getElementById(id).value == "关键字搜索" ||
    document.getElementById(id).value == "请填写手机号码办理自助业务" ||
    document.getElementById(id).value == "请输入您的手机号码" ||
    document.getElementById(id).value == "请输入手机号" ||
    document.getElementById(id).value == "请输入关键字" )
    document.getElementById(id).value="" ;
  return ;
}

function fillTxt (id,txt) {
  if ( document.getElementById(id).value == "" )
    document.getElementById(id).value=txt;
  return ;
}
function jumpMenu(targ,selObj,restore){
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}

function chk_frm_search() {
  if (document.frm_search.qt.value == '' || document.frm_search.qt.value.length<2) { 
  document.frm_search.qt.focus(); 
  return false;
  } 
  if (document.frm_search.qt.value == '关键字搜索') {
  document.frm_search.qt.focus();
  document.frm_search.qt.value='';
  return false;
  }
  return true;
}

function search_network_click(){
  document.frm_search.style.value = 'standard';
  return true;
}

function search_local_click(){
  document.frm_search.style.value = 'www';
  return true;
}

function chk_frm_onlinebiz(){
  var a=0;
  if (document.frm_onlinebiz.PhoneNo.value =='' || document.frm_onlinebiz.PhoneNo.value == '请输入手机号'){
    document.frm_onlinebiz.PhoneNo.focus();
    return false;
  }
  a=parseFloat(document.frm_onlinebiz.PhoneNo.value);
  
  if ((a+'hehe')=='NaNhehe')  {
    alert('手机号码输入错误或不是中国移动的手机号码！');
    document.frm_onlinebiz.PhoneNo.focus();
    document.frm_onlinebiz.PhoneNo.select();
   return false;
  }
  if (a<13400000000 || ((a>13999999999) && (a<15900000000)) || a>15999999999 ) {
    alert('手机号码输入错误或不是中国移动的手机号码！');
    document.frm_onlinebiz.PhoneNo.focus();
    document.frm_onlinebiz.PhoneNo.select();
    return false;
  }
  return true;
}
