function scaricaDocumenti(nomeDoc)
{
	if (nomeDoc=="CorsoPrivacy")
		return 0;
	if (nomeDoc=="SpecificheSun")
		return 0;
	if (nomeDoc=="GuidaTagHTML")
		return 0;
	if (nomeDoc=="MotoriRicerca")
		return 0;
		
		
	return 1;
}

function DownloadWord(urlPuntata)
{
	var nomeFin=new String("MyNameIs");
	var rand=new String(Math.random());
	
	OpenWindow=window.open("", nomeFin+rand.substring(7,13), "height=245,width=500")

	OpenWindow.document.write('<HTML>\n')
	OpenWindow.document.write('<TITLE>Scarica puntata in formato Word (rtf)</TITLE>\n');
	OpenWindow.document.write('<BODY BGCOLOR="#FFFFFF" LINK="#0000FF">\n');



	OpenWindow.document.write('<table width="360" border="0" cellspacing="0" cellpadding="0">\n');
  	OpenWindow.document.write('<tr>\n'); 
	OpenWindow.document.write('<td width="150">\n'); 
  	OpenWindow.document.write('<center>\n'); 
    OpenWindow.document.write('<a href="../../MaterialeCorsi/autenticazione.htm" target="_blank">\n'); 
    OpenWindow.document.write('Login</a> \n'); 
  	OpenWindow.document.write('</center>\n'); 
	OpenWindow.document.write('</td>\n'); 
 	OpenWindow.document.write('<form method="post" action="http://www.softwareplanet.net/cgi-bin/downloadDoc.cgi">\n'); 
	OpenWindow.document.write('<td>\n'); 
    OpenWindow.document.write('<input type="hidden" name="nomeFile" value="'+urlPuntata+'">\n'); 
    OpenWindow.document.write('<input type="hidden" name="modalita" value="email">\n'); 
    OpenWindow.document.write('<input type="submit" name="Submit" value="Scarica il documento via eMail"></td>\n'); 
 	OpenWindow.document.write('<td><input type="radio" name="tipoFile" value="DOC" checked>');
	OpenWindow.document.write('(.doc)');
	OpenWindow.document.write('<input type="radio" name="tipoFile" value="RTF">');
	OpenWindow.document.write('(.rtf)');
    OpenWindow.document.write('</form>\n'); 
	OpenWindow.document.write('</tr>\n'); 
	OpenWindow.document.write('</table><br>\n'); 



	numPage = parseInt(Math.random()*1000);

	OpenWindow.document.write('<div align="center">\n');

	OpenWindow.document.write('<center><a href="http://www.advertpower.com">'); 
    OpenWindow.document.write('<img src="http://www.softwareplanet.net/Images/BannerPlanetFunny.gif" border=0 alt="Banner Planet: lo scambio banner per eccellenza!"></a></center>');		

//stampiamo a video il banner di NewClick

	OpenWindow.document.write('<A HREF="http://www.bannerlink.it/cgi-bin/bxsql/go.cgi?mem=000099" TARGET="_blank"><IMG SRC="http://www.bannerlink.it/cgi-bin/bxsql/show.cgi?mem=000099&randomPage='+numPage+'" ALT="Membro BannerLink" WIDTH=468 HEIGHT=60 BORDER=0></A>\n');
 

	OpenWindow.document.write('<CENTER><FONT SIZE="-2" COLOR="#FF0000">\nClicca <A HREF="javascript:self.close()">qui</A> per chiudere la finestra</FONT></CENTER>\n');

	OpenWindow.document.write('</BODY>\n');
	OpenWindow.document.write('</HTML>\n');
}

