// JavaScript Document
function doGo(){
	if(document.forms.allform.keyword.value==""){
		alert("请输入关键字！");
		document.forms.allform.keyword.focus();
		return false;
	}else{
		var len_p,len_pn,len_s;
		var field_p,field_pn,field_s;
		len_p=document.getElementsByName("precision");
		//alert(document.forms.allform.precision.value);
		len_pn=document.getElementsByName("pageNum");
		//alert(document.forms.allform.pageNum.value);
		len_s=document.getElementsByName("sumsize");
		//alert(document.forms.allform.sumsize.value);
		for(i=0;i<len_p.length;i++){
			if(len_p[i].checked){
				field_p = len_p[i].value
			}
		}
		for(j=0;j<len_pn.length;j++){
			if(len_pn[j].checked){
				field_pn = len_pn[j].value
			}
		}
		for(k=0;k<len_s.length;k++){
			if(len_s[k].checked){
				field_s = len_s[k].value
			}
		}

		window.location="/dynamic/search/condition.asp?chaID="+ document.forms.allform.channel.value +"&precision="+ field_p +"&pageNum="+ field_pn +"&zlen="+ field_s +"&startTime="+ document.forms.allform.startTime.value +"&endTime="+ document.forms.allform.endTime.value +"&keyword="+document.forms.allform.keyword.value;
		return false;
	}
}

function doGofile(){
	if(document.forms.file.keyword.value==""){
		alert("请输入关键字！");
		document.forms.file.keyword.focus();
		return false;
	}else{
		var len_p,len_pn,len_s;
		var field_p,field_pn,field_s;
		len_p=document.getElementsByName("precision");
		//alert(document.forms.allform.precision.value);
		len_pn=document.getElementsByName("pageNum");
		//alert(document.forms.allform.pageNum.value);
		len_s=document.getElementsByName("sumsize");
		//alert(document.forms.allform.sumsize.value);
		for(i=0;i<len_p.length;i++){
			if(len_p[i].checked){
				field_p = len_p[i].value
			}
		}
		for(j=0;j<len_pn.length;j++){
			if(len_pn[j].checked){
				field_pn = len_pn[j].value
			}
		}
		for(k=0;k<len_s.length;k++){
			if(len_s[k].checked){
				field_s = len_s[k].value
			}
		}

		window.location="/dynamic/search/file.asp?chaID="+ document.forms.file.channel.value +"&precision="+ field_p +"&pageNum="+ field_pn +"&zlen="+ field_s +"&startTime="+ document.forms.file.startTime.value +"&endTime="+ document.forms.file.endTime.value +"&keyword="+document.forms.file.keyword.value;
		return false;
	}
}




function doGo_all(){
	if(document.forms.blurform.keyword.value==""){
		alert("请输入关键字！");
		document.forms.blurform.keyword.focus();
		return false;
	}else{
		//document.write("/dynamic/search/condition.asp?chaID=0&precision=blur&pageNum=20&zlen=150&keyword="+document.forms.blurform.keyword.value);
		window.location="/dynamic/search/condition.asp?chaID=0&precision=blur&pageNum=200&zlen=150&keyword="+document.forms.blurform.keyword.value;
		return false;	
	}
}

function doGo_service(){
	if(document.forms.serviceform.keyword.value==""){
		alert("请输入关键字！");
		document.forms.serviceform.keyword.focus();
		return false;
	}else{
		window.location="/dynamic/search/condition.asp?chaID="+ document.forms.serviceform.channel.value +"&precision=blur&pageNum=200&zlen=150&keyword="+document.forms.serviceform.keyword.value;
		return false;	
	}
}
