//:::::::::::::::::::::::::::::::::::::::::::::::::::
//                  Logo:  Edizioni ByteMan        ::
//               Collana:  Particelle JavaScript   ::
//             Argomento:  Funzioni Ausiliarie     ::
//      Titolo originale:  BMJAVAS.JS              ::
// Autore e Proprietario:  Salvatore ROSTA         ::
//      Ultima revisione:  19-04-2000              ::
//         Sito Internet:  w3.quipo.it/byteman     ::
//                e-mail:  byteman@quipo.it        ::
//                                                 ::
//     Tutti i diritti riservati (c)1993..2000     ::
//:::::::::::::::::::::::::::::::::::::::::::::::::::

function winMeteoPrev () {     
	var newWindow = window.open("http://www.meteo.fr/temps/europe/modele/carteeumod.jpg",'met1popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,HEIGHT=360,WIDTH=460')}

function winMeteoSat () {     
	var newWindow = window.open("http://www.meteo.fr/temps/europe/satellite/sateuj_00.jpg",'met2popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,HEIGHT=360,WIDTH=460')}

function winEtna () {     
	var newWindow = window.open("http://web.poseidon.nti.it/Sorvis/pics/Etna/Etna.jpg",'etnapopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,HEIGHT=300,WIDTH=390')}

// ex indirizzo etna: http://195.103.209.221/visiva/etna.jpg

function WriteSiti() {
	document.write("<SPAN class=\"x1\"><B>Edizioni ByteMan non &egrave; collegata ai siti recensiti e non &egrave; responsabile del loro contenuto</B>. Facciamo tutto il possibile per mantenere i collegamenti aggiornati, ma gradiremmo molto essere informati di eventuali link interrotti in modo da potervi offrire un servizio migliore. <A href=\"mailto:byteman@quipo.it\"><IMG src=\"pics/mailto.gif\" alt=\"mailto\" width=\"14\" height=\"10\" border=\"0\" align=\"bottom\"></A> <B>Grazie!</B><BR>");
}


function WriteTitle(image,title) {
	document.write("<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=0 BORDER=0 ALIGN=\"CENTER\">", "<TR><TD ALIGN=\"CENTER\" VALIGN=\"MIDDLE\" COLSPAN=1 ROWSPAN=1 WIDTH=30%>", "<IMG SRC=\"", image, "\"  ALIGN=\"MIDDLE\"></TD>", "<TD ALIGN=\"LEFT\" VALIGN=\"MIDDLE\" COLSPAN=1 ROWSPAN=1 WIDTH=50%>", "<SPAN class=\"x3\">", title, "</SPAN></TD></TR></TABLE><BR>");
}

function WriteAnchor(anchor,title) {
	document.write("<HR><A name=", anchor, "></A><BR><SPAN class=\"z2\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ", title, "<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN>"); 
}

function WriteGoIndex(title) {
	document.write("<BR><BR><A href=", title, " target=\"due\"><IMG border=\"0\" src=\"pics/rubin_.gif\"", "height=\"08\" width=\"16\"><SPAN class=\"y1\">Indice</SPAN></A><BR>");
}

function MkIndexElem(anchor,title) {
	var  nn=new Array(2);
	if (anchor == "-") 
		{	document.write("<TD ALIGN=\"LEFT\" WIDTH=\"25%\"> </TD>");
		}
	else
		{	if (title.substring(0,2) == "i-")
				{ 	image="pics/rubin_i.gif"; 
					stp="yi1"; 
					nn = title.split("-");
				}
			else 
				{ 	image="pics/rubin_.gif"
					stp="y1";
					nn[1]=title;
				}
			document.write("<TD ALIGN=\"LEFT\" WIDTH=\"25%\"><A HREF=\"", anchor, "\"><IMG SRC=\"", image, "\" HEIGHT=\"08\" WIDTH=\"16\" BORDER=\"0\"><SPAN class=\"", stp, "\">", nn[1], "</SPAN></A></TD>");


		}
}

function WriteIndexElem(anchor1,title1,anchor2,title2,anchor3,title3) {
	document.write("<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=\"100%\"><TR>");
	MkIndexElem(anchor1,title1);  
	MkIndexElem(anchor2,title2);  
	MkIndexElem(anchor3,title3);  
	document.write("</TR></TABLE>");
}

function WriteSiti2(prepath) {
	image="pics/mailto.gif";
	document.write("<SPAN class=\"x1\"><B>Edizioni ByteMan non &egrave; collegata ai siti recensiti e non &egrave; responsabile del loro contenuto</B>. Facciamo tutto il possibile per mantenere i collegamenti aggiornati, ma gradiremmo molto essere informati di eventuali link interrotti in modo da potervi offrire un servizio migliore. <A href=\"mailto:byteman@quipo.it\"><IMG src=\"", prepath+image, "\" alt=\"mailto\" width=\"14\" height=\"10\" border=\"0\" align=\"bottom\"></A> <B>Grazie!</B><BR>");
}

function WriteGoIndex2(prepath,title) {
	image="pics/rubin_.gif";
	document.write("<BR><BR><A href=", title, " target=\"due\"><IMG border=\"0\" src=\"", prepath+image, "\" height=\"08\" width=\"16\"><SPAN class=\"y1\">Indice</SPAN></A><BR>");
}

function MkIndexElem2(prepath,anchor,title) {
	var  nn=new Array(2);
	if (anchor == "-") 
		{	document.write("<TD ALIGN=\"LEFT\" WIDTH=\"25%\"> </TD>");
		}
	else
		{	if (title.substring(0,2) == "i-")
				{ 	image="pics/rubin_i.gif"; 
					stp="yi1"; 
					nn = title.split("-");
				}
			else 
				{ 	image="pics/rubin_.gif"
					stp="y1";
					nn[1]=title;
				}
			document.write("<TD ALIGN=\"LEFT\" WIDTH=\"25%\"><A HREF=\"", anchor, "\"><IMG SRC=\"", prepath+image, "\" HEIGHT=\"08\" WIDTH=\"16\" BORDER=\"0\"><SPAN class=\"", stp, "\">", nn[1], "</SPAN></A></TD>");


		}
}


function WriteIndexElem2(prepath,anchor1,title1,anchor2,title2,anchor3,title3) {
	document.write("<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=\"100%\"><TR>");
	MkIndexElem2(prepath,anchor1,title1);  
	MkIndexElem2(prepath,anchor2,title2);  
	MkIndexElem2(prepath,anchor3,title3);  
	document.write("</TR></TABLE>");
}

function GetDay(intDay) {
	var DayArray = new Array("Domenica", "Lunedi'", "Martedi'", "Mercoledi'", "Giovedi'", "Venerdi'", "Sabato")
	return DayArray[intDay]
}

function GetMonth(intMonth) {
	var MonthArray = new Array("gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic") 
	return MonthArray[intMonth]                  
}

function getDateStrWithDOW() {
	var today = new Date()
	todayStr = today.getDate() + "-" + GetMonth(today.getMonth()) + "-"
	NS4=(document.layers) ? true:false;
	IE4=(document.all) ? true:false;
	ver4 = (NS4 || IE4) ? true : false;
	if (ver4) {
		todayStr += today.getFullYear();
		}
	else
		todayStr += today.getYear();
	return todayStr
}
