﻿
function search()
{
 var key=document.getElementById("txtkey").value;
 if(key=="" || key=="请输入关键字")
        {
            alert("请输入搜索关键词！")
            return;
        }
     else
   {
       
         window.open('/search/?key='+escape(key),'_blank');
    }
}
function search1()
{
 var key=document.getElementById("key").value;
 if(key=="" || key=="请输入关键字")
        {
            alert("请输入搜索关键词！")
            return;
        }
     else
   {
       
         window.open('/search/?key='+escape(key),'_blank');
    }
}

function DoctorTab(num,count,str){
 for(var id = 1;id<=count;id++)
 {
  var ss=str+id+"_content";
  if(id==num)
  document.getElementById(ss).style.display="block";
  else
  document.getElementById(ss).style.display="none";
 }
 
 for(var j = 1;j<=count;j++)
 {
  var bb=str+j;
  if(j==num)
  document.getElementById(bb).className="i_boxt_list_lia";
  else
  document.getElementById(bb).className="colse";
 } 
}
function Logout()
   {
    $.ajax({
		url:"/ajax/?modul=1&time"+new Date().toString(),
		type:'GET',
		success:function(msg){
			alert(msg);
			 window.location.reload(); 
		}
	});
   } 
     function go(url,target)
{
    window.location.replace(url);
}
function go(url)
{
    window.location.replace(url);
}
