function checkurl()
{
if (document.form1.key.value=="")
{
document.form1.key.focus();   		
alert("请输入关键字！");
return false;	
}
if (document.form1.key.value.length<1&&document.form1.year.value.length<1&&document.form1.month.value.length<1) 
{
document.form1.key.focus();   		
alert("请输入关键字或选择出版日期的年月份！");
return false;	
}						
if(document.form1.type2.checked==true){
document.form1.action="/supply/index.aspx";
document.form1.submit();
return true;
}
if(document.form1.type3.checked==true){
document.form1.action="/need/index.aspx";
document.form1.submit();
return true;
}
if(document.form1.type1.checked==true){
document.form1.action="/hlsearch/search.aspx";
document.form1.submit();
return true;
}
}
function openScript3(url, width, height){
var Win = window.open(url,"openScript0",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no,status=yes,left=100, top=80' );
}
function openScript2(url, width, height){
var Win = window.open(url,"openScript0",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=no,menubar=no,status=yes,left=0, top=0' );
}
function openScript0(url, width, height){
var Win = window.open(url,"openScript0",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes,left=0, top=0' );
}
function login_submit()
{				
if (document.login.username.value.length<1) 
{
document.login.username.focus();   		
alert("请输入账号！");
return false;	
}	
if (document.login.password.value.length<1) 
{
document.login.password.focus();   		
alert("请填写密码！");
return false;	
}
if (document.login.validateCode.value.length<1) 
{
document.login.validateCode.focus();   		
alert("请输入验证码！");
return false;	
}			
return true;
}
function adv_submit()
{				
if (document.form1.key.value.length<2) 
{
document.form1.key.focus();   		
alert("请输入关键字，不得少于两字符！");
return false;	
}						
return true;
}
function loadDoc()
{
document.form1.key.focus();
return;
}

