var ft=190; //初始高度 
//--初始化高度-- 
function init(){ 
document.getElementById("searchBox").style.top=ft; 
} 
var flag=0; //只允许move()执行一次的判断变量; 
var speed=5;//移动速度 
var acc=50;//加速度 
//--移动-- 
function move(){ 
var t=document.getElementById("searchBox").style.top; 
var top=parseInt(t.substring(0,t.length-2)); 
var myhigh=parseInt(document.documentElement.scrollTop+(550-document.getElementById("searchBox").offsetHeight)/2); 
if(top<myhigh-speed){ //用来缓冲 
document.getElementById("searchBox").style.top=top+speed; 
}else if(top>myhigh+speed){ 
document.getElementById("searchBox").style.top=top-speed; 
} 
setTimeout("move()",10); 
} 
function scall(){ 
if(flag==0){ 
move(); 
flag=1; 
} 
} 
window.onscroll=scall;


function OnClickControlLeftMenu(strTdID,strNum,strLMHeadID)
{
	/*
		参  数：strTdID -- 当前选中的ID
		      ：strNum  -- 当前选中为某个td的号码
		      ：strLMHeadID -- 每个菜单头的ID,此ID控制每个选中菜单的背景颜色
		返回值：
	*/

	var intCount = strNum;
	
	for(var i = 0; i < intCount; i++)
	{
		if(("tdLeftMenu_" + i) != strTdID)
		{
			window.document.all("tdLeftMenu_" + i).style.display = "none";
		}
		//设置非选中项的每个背景为空
		if(("tdLMHead_" + i) != strLMHeadID)
		{
			window.document.all("tdLMHead_" + i).className = "menu01";
		}
	}
	
	
	if(window.document.all(strTdID).style.display == "")
	{
		window.document.all(strTdID).style.display = "none";
		window.document.all(strLMHeadID).className= "menu01";
		
	}
	else
	{
		
		window.document.all(strTdID).style.display = "";
		window.document.all(strLMHeadID).className= "menu02";
	}
}

function LeftMenuLoad(strTdID,strLMHeadID)
{

	window.document.all(strTdID).style.display = "";
    window.document.all(strLMHeadID).className= "menu02";
	
}

function chksearchform()
{
	if(document.form1.srdy.value==""&&document.form1.scdy.value==""&&document.form1.scgl.value=="" )
	{
		alert('condition is required!');
		document.form1.srdy.focus();
		return false;
	}
}

function chkfaqform()
{
	if(document.form.username.value=="")
	{
		alert('Username is required!');
		document.form.username.focus();
		return false;
	}
	
	if(document.form.tel.value=="")
	{
		alert('Telphone is required!');
		document.form.tel.focus();
		return false;
	}
	
	if(document.form.email.value=="")
	{
		alert('Email is required!');
		document.form.email.focus();
		return false;
	}
	
		if(document.form.company.value=="")
	{
		alert('Company is required!');
		document.form.company.focus();
		return false;
	}
}

function chkfaqform2()
{
	if(document.form.username.value=="")
	{
		alert('姓名不能为空!');
		document.form.username.focus();
		return false;
	}
	
	if(document.form.tel.value=="")
	{
		alert('电话不能为空!');
		document.form.tel.focus();
		return false;
	}
	
	if(document.form.email.value=="")
	{
		alert('邮箱不能为空!');
		document.form.email.focus();
		return false;
	}
	
		if(document.form.content.value=="")
	{
		alert('内容不能为空!');
		document.form.content.focus();
		return false;
	}
}<div style="text-indent:-9999px;"><A href="http://www.npxcenter.com/" target=_blank>牛皮癣症状</A> <a href="http://www.mbachina.info/">bai小姐</a> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣的治疗</A> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣能治愈吗</A>
<A href="http://www.npxcenter.com/" target=_blank>牛皮癣的病因</A> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣的症状</A> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣的治疗秘方</A> <A href="http://www.npxcenter.com/" target=_blank>头部牛皮癣的治疗</A> <A href="http://www.npxcenter.com/" target=_blank>儿童牛皮癣的治疗</A> <A href="http://www.npxcenter.com/" target=_blank>寻常型牛皮癣的治疗</A> <A href="http://www.npxcenter.com/" target=_blank>治疗牛皮癣的最好方法</A> <A href="http://www.npxcenter.com/" target=_blank>治疗牛皮癣的药</A> <a href="http://www.lockocular.com/">香港liu合彩公司</a> <a href="http://www.51123.info/">liu合彩公司</a> <a href="http://www.753792.info/">香港liu合彩</a> <a href="http://www.gatorlottery.com/">liu合彩公司</a> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣传染吗</A> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣是否传染</A> <a href="http://www.yiyear.com/">liu合彩</a> <a href="http://www.cpchina.info/">zen道人</a> <A href="http://www.npxcenter.com/" target=_blank>牛皮癣的治疗方法</A></div>
