window.status = 'www.cssoft.it by Castronovo Salvatore'
function cssoft_status_restore() { //v1.0
	window.status='www.cssoft.it by Castronovo Salvatore';
}
function cssoft_StatusMsg(msgStr)  { //v3.0
	status=msgStr; document.MM_returnValue = true;
}

function right(e) 
{
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("© Copyright CSsoft.it ®");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;

// VERIFICA COGNOME NOME
function isName(what,fname)
	{
		var i=new RegExp("([a-zA-Z\ ]{3,})");
		if(!i.test(wath)) { alert("Il campo "+fname+" è obbligatorio."); return false}
		return true;
	}
	
// VERIFICA data
//function isDate(what,fname)
//	{
//		var i=new RegExp("^([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4})$");
//		if (i.test(what))
//	{
//		datePart=wath.split("/");
//		giorno=(datePart[0]>=1) && (datePart[0]<=31);
//		mese=(datePart[1]>=1) && (datePart[1]<=12);
//		anno=(datePart[2]>=1900) && (datePart[2]<=9999);
//
//		if(!giorno || !mese || !anno) { alert("Il campo "+fname+" non è valido."); return false }
//		}
//		else
//		{
//		alert("Il campo "+fname+" non è valido."); return false
//		}
//		return true;
//	}

