function checkform1()
{
 	if (!check_empty(document.forms[0].txtSearch.value))
    { 
		if(document.forms[0].chkChoose[0].checked == true){
			alert('Please Type a Keyword to search for');
			return false;
		}else{
			alert('Please Type a Datacard name to search for');
			return false;
		}
	}
}

function checkform2()
{
	if (document.forms[1].Sub_Cat_ID.selectedIndex == -1)
	{ 
		alert('Please choose a Category Type');
		return false;
	}
}

function check_empty(text)
{
	  return (text.length > 0); // returns false if empty
}
