function DataOggi()
{
	var print1="";
	var print2="";
	var print3="";
	var today = new Date();
	var weekday = today.getDay();
	if (weekday == 0) print1='Domenica';
	if (weekday == 1) print1='Lunedì';
	if (weekday == 2) print1='Martedì';
	if (weekday == 3) print1='Mercoledì';
	if (weekday == 4) print1='Giovedì';
	if (weekday == 5) print1='Venerdì';
	if (weekday == 6) print1='Sabato';
	var month = today.getMonth();
	if (month == 0) print2='gennaio';
	if (month == 1) print2='febbraio';
	if (month == 2) print2='marzo';
	if (month == 3) print2='aprile';
	if (month == 4) print2='maggio';
	if (month == 5) print2='giugno';
	if (month == 6) print2='luglio';
	if (month == 7) print2='agosto';
	if (month == 8) print2='settembre';
	if (month == 9) print2='ottobre';
	if (month == 10) print2='novembre';
	if (month == 11) print2='dicembre';
	var date = today.getDate();
	var year=today.getYear();
	//ora = today.getHours();
	//minuti = today.getMinutes() ;
	//if (minuti <10) minuti='0'+minuti;
	//document.write (print1,' ', date, ' ', print2, ' - ', ora, ':', minuti);
	var strDataOggi=print1 + ', ' + date + ' ' + print2 + ' ' + year;
	return strDataOggi;
}

//Aggiungi a Preferiti
<!--
function addbookmark()
{
var bookmarkurl="http://digilander.iol.it/unoliva"
var bookmarktitle="Un'Oliva - Il piccolo portale della musica"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
// -->

<!--
function apriwindow(pag, width, height)
{
    this.name = "myWindow"
    myRemote = open(pag, "myRemote", "height=" + height + ",width=" + width + ",alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0")
}
function apriwindow_td(pag)
{
    this.name = "myWindow"
    myRemote = open(pag, "myRemote", "height=480,width=480,alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,z-lock=0")
}
// -->


//Cerca by il Trovatore.it
<!--
function ScriviFormCerca ()
{
document.write('<!-- Start search bar --><table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor="#009900"><FORM METHOD=GET ACTION=http://digilander.iol.it/unoliva/UC/ricerca.html><tbody><TR><TD align=right valign="center" width=290 class="BiancoBig" noWrap>Cerca nel Web<IMG src="images\s.gif" border=0 width=10 height=1></td><TD width=180><INPUT TYPE=text NAME=q SIZE=25 VALUE=""><IMG src="images\s.gif" border=0 width=10 height=1></TD><TD><INPUT TYPE=submit VALUE=Cerca><!--<a href="http://www.iltrovatore.it/">by IlTrovatore</a>--></TD></TR></tbody></FORM></table><!-- End search bar -->');
}
//-->



// ************************************************************************************************************
// Nome        : ValidateEmail
// Descrizione : 
// ************************************************************************************************************
function ValidateEmail(string) {
	if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
		return true;
	else
		return false;
}

function checkEmail()
    {
        var objFrm = document.frmMailing;
	    if (objFrm.email.value=="")
	    {
		    alert("Non hai inserito l'indirizzo e-mail")
		    objFrm.email.focus();
		    return false;
	    }
//	    var address = objFrm.email.value;
//	    if (address.indexOf("@")<3)
//	    {
//		    alert("Indirizzo mail non valido!")
//		    objFrm.email.focus();
//		    return false;
//	    }

        var address = objFrm.email.value;
        if (!ValidateEmail(address))
        {
            alert("Indirizzo mail non valido!")
            objFrm.email.focus();
            return false;
        }
        
        if ( (!(objFrm.iscriviti[0].checked)) && (!(objFrm.iscriviti[1].checked)) )
        {
            window.alert("Devi scegliere fra richiesta di ISCRIZIONE oppure CANCELLAZIONE.")
            objFrm.iscriviti[0].focus;
            return false;
        }	
    }
    
function verifica()
	{
        if (!checkEmail)
        {
	        document.frmMailing.email.focus();
	        return false;
        }
        ogg = document.frmMailing;
        if ( (!(ogg.iscriviti[0].checked)) && (!(ogg.iscriviti[1].checked)) )
        {
            window.alert("Devi scegliere fra richiesta di ISCRIZIONE oppure CANCELLAZIONE.")
            ogg.iscriviti[0].focus;
            return false;
        }		   
    }
    function resetEmail()
    { 	ogg=document.frmMailing;
        ogg.email.value="";
        ogg.email.focus();
    }
    function checkSearch()
    {
	    s=document.frmSearch.searchfor.value;
	    if ((s=="") || (s==" "))
	    {
		    alert("Inserisci il termine da ricercare.")
		    return false;
	    }
    }
    
    
    /////////////////////////////////////// da controllare e modificare ////////////////////////////////////
    // *********************************************************************************
	// Function    : isNumericValue
	// Description : Verifica se una stringa contiene solo i valori validi
	//             : passati in input
	// Parameters  : OBJ     - oggetto da controllare
	//             : strWhat - Nome dell'oggetto per messaggio di errore
	// Return Code : true  - l'oggetto contiene solo valori numerici
	//             : false - l'oggetto NON contiene solo valori numerici
	// *********************************************************************************
	function isNumericValue(OBJ, strWhat)
	{
		var str = OBJ.value;
 
		for (var i = 0; i < str.length; i++) {
			var ch = str.substring(i, i + 1);
			if(ch < "0" || "9" < ch) {
				alert("\nThe " + strWhat + " field only accepts numbers. Please re-enter your  " + strWhat + ".");
				OBJ.select();
				OBJ.focus();
				return false;
			}
		}
		return true;
	}
 
	// *********************************************************************************
	// Function    : isAlphabeticValue
	// Description : Verifica se una stringa contiene solo valori alfabetici e spazi
	// Parameters  : OBJ   - oggetto da controllare
	// Return Code : true  - l'oggetto contiene solo valori alfabetici e spazi
	//             : false - l'oggetto NON contiene solo valori alfabetici e spazi
	// *********************************************************************************
	function isAlphabeticValue(OBJ, strWhat)
	{
		var str = OBJ.value;
 
		for(var i = 0; i < str.length; i++) {
			var ch = str.substring(i, i + 1);
			if(((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ') {
				alert("\nThe " + strWhat + " field only accepts letters & spaces.\n\nPlease re-enter your  " + strWhat + ".");
				OBJ.select();
				OBJ.focus();
				return false;
			}
		}
		return true;
	}
 
	// *********************************************************************************
	// Function    : isEmail
	// Description : Verifica se nel valore dell'oggetto in input e' stato inserito
	//             : un indirizzo di EMail nel formato xx@yyy.zz
	// Parameters  : OBJ   - oggetto da controllare
	// Return Code : true  - il valore è un'indirizzo di mail valido
	//             : false - il valore non è un'indirizzo di mail valido
	// *********************************************************************************
	function isEmail(OBJ) {
		emailAddress = OBJ.value;
		if(emailAddress == "") {
			alert("\nThe E-MAIL field is blank.\n\nPlease enter your e-mail address.")
			OBJ.focus();
			return false;
		}
		if(emailAddress.indexOf ('@',0) == -1 || emailAddress.indexOf ('.',0) == -1) {
			alert("\nThe E-MAIL field requires a \"@\" and a \".\"be used.\n\nPlease re-enter your e-mail address.")
			OBJ.select();
			OBJ.focus();
			return false;
		} else {
			return true;
		}
	}
 
	// *********************************************************************************
	// Function    : isURL
	// Description : Verifica se nel valore dell'oggetto in input e' stato inserito
	//             : un indirizzo internet nel formato http://askljf.df
	// Parameters  : OBJ   - oggetto da controllare
	// Return Code : true  - il valore è un'indirizzo URL valido
	//             : false - il valore non è un'indirizzo URL valido
	// *********************************************************************************
	function isURL(OBJ) {
		strHttp = OBJ.value;
		if(strHttp == "") {
			alert("\nThe URL field is blank.\n\nPlease enter your URL address.")
			OBJ.focus();
			return false;
		}
		if(strHttp.indexOf ('http://', 0) == -1 || strHttp.indexOf ('.', 0) == -1) {
			alert("\nThe URL field requires a \"http://\" and a \".\"be used.\n\nPlease re-enter your URL address.");
			OBJ.select();
			OBJ.focus();
			return false;
		} else {
			return true;
		}
	}