
	function ValidateForm_cautare(frm){
		
		if (Trim(frm.txtSearch.value)=="") {alert("Va rugam sa introduceti termenul de cautat."); frm.txtSearch.focus(); return false;}
		frm.action="cautare.php";
		frm.submit();
		}
		
	function ValidateForm_login(frm){
		
		if (Trim(frm.txtEmail.value)=="") {alert("Please enter your email address."); frm.txtEmail.focus(); return false;}
		else if (!ValidateEmail(Trim(frm.txtEmail.value))) {alert("Please enter a valid email address.");frm.txtEmail.focus();return false;}		 
		else if (Trim(frm.txtPassword.value)=="") {alert("Please enter your password."); frm.txtPassword.focus(); return false;}		
		frm.action="login.php?act=login";
		}
