<!--
	function ValidateSearch(frm,dbsearch){
		
		
		opt = frm.Option.value;
		
		//Normal Search		
		if (dbsearch) {
			if (opt=="company"){
				f1	 = frm.StockNo.value;
				f2	 = frm.CompanyName.value;
				//period   = frm.Period.options[frm.Period.selectedIndex].value;
				//nochoice = ((f1=="") && (f2=="") && (period=="-1")) ? 1 : 0;
				nochoice = ((f1=="") && (f2==""))  ? 1 : 0;
			}
			else if (opt=="government"){
			//	f1	 = frm.deptcode.options[frm.deptcode.selectedIndex].value;
			//	f2	 = frm.catecode.options[frm.catecode.selectedIndex].value;
				//period   = frm.Period.options[frm.Period.selectedIndex].value;				
				//nochoice = ((f1=="-1") && (f2=="-1") && (period=="-1")) ? 1 : 0;
			//	nochoice = ((f1=="-1") && (f2=="-1")) ? 1 : 0;
			}
			if (nochoice) {
				alert("Please enter at least one field!");
				return false;
			}
		}

		//Keyword Search
		else if (!dbsearch) {
			if (frm.Keyword.value=="") {
				alert("Please enter the keyword to search!");
				return false;
			}
		}
		
	}
-->