var isie6 = window.XMLHttpRequest?false:true;
window.onload=function() 
{ 
for(var ii=0; ii<document.links.length; ii++) 
document.links[ii].onfocus=function(){this.blur()} 

var ask3 = document.getElementById('ask3');
 if(ask3!=null){
   if(isie6){
         ask3.style.position = 'absolute';
		  
		  window.onscroll =function(){
			   function rightBottomAd(){
				 ask3.style.top = document.documentElement.scrollTop+document.documentElement.clientHeight-74+"px";
				 setTimeout(function(){rightBottomAd();},50);
				}
				rightBottomAd();
		  }
		  		  
		  
   }else{
      ask3.style.position = 'fixed';
   }
      ask3.style.right = '0';
      ask3.style.bottom = '0';
 }

}


function changeMenu(ID,name,classover,classout,num){
	var nameValue = name.substring(0,name.length-1);
	for(i=1;i<num;i++){
	  var tag2=document.getElementById(nameValue+i);
	  var con2=document.getElementById(nameValue+'content'+i);
	  tag2.className=i==ID ? classover:classout;
	  con2.style.display=i==ID?'':'none';
	 }
}

//选项卡动作
function changeMenus(ID,name,classover,classout,num){
	var nameValue = name.split('_');
	for(i=1;i<=num;i++){
		var tag2=document.getElementById(nameValue[0]+'_'+i);
		var con2=document.getElementById(nameValue[0]+'con'+i);
		tag2.className=i==ID ? classover:classout;
		con2.style.display = i==ID ?'':'none';
	}
}

function changeMenuss(ID,name,classover,classout,num){
	var nameValue = name.split('_');
	for(i=1;i<=num;i++){
		var tag2=document.getElementById(nameValue[0]+'_'+i);
		var con2=document.getElementById(nameValue[0]+'con'+i);
		var links=document.getElementById(nameValue[0]+'links'+i);
		tag2.className=i==ID ? classover:classout;
		con2.style.display = i==ID ?'':'none';
		links.style.display = i==ID ?'':'none';
	}
}


function ask_submit(this_form)
{
	if(this_form.title.value=="" || this_form.title.value=="请输入您的问题，我们有专业的医师在线为您解答。")
	{
		alert("请输入您要提问的问题");
		this_form.title.focus();
		return false;
	}
	this_form.method = "post";
	this_form.action="http://iask.fh21.com.cn/ask.php";
	//this_form.submit();
}
