var currentpos,timer;
function checkf1(){
if(document.form1.username.value.length<1){
	alert("用户名未输入！");
	document.form1.username.focus();
	return false;
}
if(document.form1.password.value.length<1){
	alert("密码未输入！");
	document.form1.password.focus();
	return false;
}
}
function checkgg(){
if(document.ggsearch.gpcode.value.length!=6){
	alert("请输入正确的股票代码！");
	document.ggsearch.gpcode.focus();
	return false;
}
}
function checkq(){
if(document.form2.q.value.length==0){
	alert("请输入搜索内容！");
	document.form2.q.focus();
	return false;
}
}
function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
