function CheckLogin(theForm) {

	var strObjFocus='';

	if (theForm.txtUtente.value=='') {
		var bIsOkForm=false;
		if (strObjFocus=='') {
			strObjFocus='txtUtente';
		}
	}

	if (theForm.txtPassword.value=='') {
		var bIsOkForm=false;
		if (strObjFocus=='') {
			strObjFocus='txtPassword';
		}
	}

	if (bIsOkForm==false) {
		alert('Digitare lo username e la password!');
		if (strObjFocus!='') {
			var objFocus = eval('theForm.' + strObjFocus);
			objFocus.focus();
		}
	} else {
		theForm.submit();
	}
}

function CheckAllSearchCRLF(e) {

	if (e.keyCode==13) {
		url = 'risultatiricerca_changepage.asp?PAGE=1&SEARCH=' + document.getElementById('searchall').value;
		document.location.href=url;
		return false;
	}
}
