{
var dow = new Array("Domenica,", "Luned&igrave;,",	"Marted&igrave;," , "Mercoled&igrave;," , "Gioved&igrave;," ,  "Venerd&igrave;," , "Sabato,");
var month = new Array("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre");
var todaysDate;
}

function gioca(gioco)
{
	gioco = window.open('giochi/' + gioco + '/default.php', 'gioco', 'toolbar=0, menubar=0, scrollbars=auto, width=500, height=400, statusbar=0');
	return false;
}

function img(imgName,newImg)
{
	document.images[imgName].src = eval(newImg + ".src");
}

function getstrip()
{
var now = new Date();

mm = now.getMonth();
dd = now.getDate();
yyyy = now.getFullYear();
if (dd < 10)
    dd = "0" + dd;
if (mm < 10)
    mm = "0" + mm;
stripnumb = "e" + dd + "v" +  mm;
}

function getTodaysDate()
{
var now = new Date();

dayOfWeek  = now.getDay();
dayOfWeek  = dow[dayOfWeek];

mm = now.getMonth();
mm = month[mm];
dd = now.getDate();
//if (dd < 10)
    //dd = "0" + dd;
yy = now.getFullYear();
todaysDate = dayOfWeek + " " +  dd + " " +  mm + " " +  yy;
}

function img_ran(i)
{
/* si: start index 
** i: current index
** ei: end index
** cc: current count
*/
if (i==-1) { ind = Math.floor(Math.random() *cc); }
else
	{ ind=i }
if (ind>cc)
   { ind=0 }

document.images.banner.src = imageSet[ind];
window.status=ind;
timer=window.setTimeout("img_ran(ind+1)",delay);
}

function gobanner()
{
if (urlSet[ind]!="")
	{
		win=window.open(urlSet[ind],"NewWindow");
		<!-- win=window.open(pag,"NewWindow","toolbar=no,directories=no,menubar=no,crollbars=no,width=225,height=150"); -->
	}
return false;
}

function controlla_carto()
{
	if ( top.pagina.carto.img.value == '' ) {
		alert ("Tutti i campi sono necessari [immagine]");
		return false;
	} 
	if ( top.pagina.carto.from.value == '' ) {
		alert ("Tutti i campi sono necessari [mittente]");
		return false;
	} 
	if ( top.pagina.carto.fromail.value == '' ) {
		alert ("Tutti i campi sono necessari [ind. mittente]");
		return false;
	} 
	if ( top.pagina.carto.tochi.value == '' ) {
		alert ("Tutti i campi sono necessari [destinatario]");
		return false;
	} 
	if ( top.pagina.carto.tomail.value == '' ) {
		alert ("Tutti i campi sono necessari [ind. destinatario]");
		return false;
	} 
	if ( top.pagina.carto.testo.value == '' )
		top.pagina.carto.testo.value=' ';
	if ( top.pagina.carto.testo.value == ' ' ) {
		alert ("Il testo e' necessario");
		return false;
	} 
	if ( top.pagina.carto.greetings.value == '' ) {
		alert ("Tutti i campi sono necessari [saluto]");
		return false;
	} 
	alert(top.pagina.carto.img.value);
	return true;
}

// End Script -->