function setcolor()
{
  if (window.location.href=="http://www.cdsgnk.com/index.html")
    {
      mm1.style.background="#57B8FF";

    }
  else if (window.location.href=="http://www.cdsgnk.com/cdsg/gysg/")
    { 
	  mm2.style.background="#57B8FF";
	 
	}
  else if (window.location.href=="http://www.cdsgnk.com/cdsg/qwzk/")
    { 
	  mm3.style.background="#57B8FF";
	 
	}
  else if (window.location.href=="http://www.cdsgnk.com/cdsg/myfc/")
    { 
	  mm4.style.background="#57B8FF";
	 
	}
  else if (window.location.href=="http://www.cdsgnk.com/cdsg/jyzn/")
    { 
	  mm5.style.background="#57B8FF";
	 
	}
  else if (window.location.href=="http://www.cdsgnk.com/cdsg/dzdt/")
    { 
	  mm6.style.background="#57B8FF";
	 
	}
  else if (window.location.href=="http://www.cdsgnk.com/tpzt/")
	{
	  mm7.style.background="#57B8FF";
	
	}
  else if (window.location.href=="http://www.cdsgnk.com/nkjb/")
	{
	  mm8.style.background="#57B8FF";
	 // mm8.className="curr";
	
	}
  else if (window.location.href=="http://www.cdsgnk.com/nxbj/")
	{
	  mm9.style.background="#57B8FF";
	
	}
  else if (window.location.href=="http://www.cdsgnk.com/xabk/")
	{
	  mm10.style.background="#57B8FF";
	
	}
  else if (window.location.href=="http://www.cdsgnk.com/sgbk/")
	{
	  mm11.style.background="#57B8FF";
    }
  else if (window.location.href=="http://www.cdsgnk.com/ask/index.html")
    {
	  mm12.style.background="#57B8FF";
    
	}
}





function selectTag(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
	
}






function nullmag()
{
if(document.frm.content.value=="")
	   {
	    alert("问题内容不能为空！");
	    document.frm.content.focus();
	    return false;
	   }
if(document.frm.content.value=="请输入你的问题，我们的专家将在24小时内为你作解答！")
	   {
	    alert("请输入你要问的问题！");
	    document.frm.content.focus();
	    return false;
	   }
	   if(document.frm.content.value=="")
	   {
	    alert("请输入你要问的问题！");
	    document.frm.content.focus();
	    return false;
	   }
if(document.frm.keshi.value=="请选择科室")
	   {
	    alert("请选择科室！");
	    document.frm.keshi.focus();
	    return false;
	   }  
}

 
