// JavaScript Document
var bookmarkurl="http://www.ilnottambulo.it"
var bookmarktitle="Il Nottambulo.it - La pił grande community di Brescia e provincia"

	// Forum nuova discussione
lung = 0;
sec=new Array('Pop','Rock, Heavy Metal, Hard rock','Hip-Hop, Rap','House, Dance, Techno, Hardcore','Calcio','Motori','Altri sport','Sesso','Programmi tv','Libri','Teen','Over 18','Over 25'); 

function scegli() 
   { 
   aa=document.modulo.categoria.options[document.modulo.categoria.selectedIndex].value; 
	   
   if (aa=='B') 
		{
		qq=new Array(0,1,2,3);
		lung = 4; 
		} 
   else 
	  if (aa=='C') 
		{
		qq=new Array(4,5,6);
		lung = 3; 
		} 
   else 
	  if (aa=='D') 
		{
		qq=new Array(7,8,9);
		lung = 3; 
		} 
   else 
	  if (aa=='E') 
		{
		qq=new Array(10,11,12);
		lung = 3; 
		} 
	else
		{
		qq=new Array();
		}

   for(o=1;o<(document.modulo.subcat.length);o++)
	  { 
	  document.modulo.subcat.options[o]=null; 
	   }
   for(o=1;o<(document.modulo.subcat.length);o++)
	  { 
	  document.modulo.subcat.options[o]=null; 
	   }
	  document.modulo.subcat.options[1]=null; 
	   
	if (document.modulo.subcat.length>lung) 
		document.modulo.subcat.options[1]=null; 
		
   for (i=0; i<lung; i++) 
	  { 
	   newO=new Option(sec[qq[i]],(qq[i]+1)); 
	   document.modulo.subcat.options[document.modulo.subcat.length]=newO; 
	   }
	if (document.modulo.subcat.length>(lung+1))
		{ 
		document.modulo.subcat.options[5]=null; 
		}
}
	///

function addbookmark()
	{
	if (document.all)
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
	}

function cambiaStato()
	{
	var stato = document.form.stato.value;
	window.location.href = 'cambia_stato.php?stato=' + stato;
	}
	
function smile(id)
	{
	document.modulo.testo.value += id + " ";
	}

function flash(id)
	{
	window.open('flash_popup.php?azione=risp&id=' + id,'','width=330,height=330')
	}
