
var Message="++ circolo delle seghe ++";
var place=1;
function scrollIn() {
window.status=Message.substring(0, place);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollOut()",300); 
} else {
place++;
window.setTimeout("scrollIn()",50); 
   } 
}
function scrollOut() {
window.status=Message.substring(place, Message.length);
if (place >= Message.length) {
place=1;
window.setTimeout("scrollIn()", 100);
} else {
place++;
window.setTimeout("scrollOut()", 50);
   }
}

function openpic(picHash,width,height){
	if (!width){
		width=10;height=10;
	}
	window.open(picHash,'picpopup','toolbar=0,location=0,dirctories=0,status=0,menuBar=0,scrollbars=0,resizable=0,width=10,height=10');
	//return false;
}

/*
function myFunc(value)
{
myForm.submit();
}

function controllo_inserimento(){
	if ( document.modulo.irc.value != "" ) {
	  if ( document.modulo.irc.value.length >= 4 ) {
	  if ( (document.modulo.pass.value.length >= 6 ) && (document.modulo.pass2.value.length >= 6 ) ) {
		if ( (document.modulo.pass.value != "" ) && (document.modulo.pass2.value != "" ) ) {
			if (document.modulo.pass.value == document.modulo.pass2.value) {
			 if (document.modulo.email.value == document.modulo.email2.value) {
			 var myemail = document.modulo.email.value;
			  if (reg1.test(myemail) != true) {
			  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.modulo.email.value)) {
				if ( document.modulo.citta.value != "" ) {
				  if ( document.modulo.reg.value != 0 ) {
				    if (( document.modulo.gg.value != 0 ) && ( document.modulo.mm.value != 0 ) && ( document.modulo.aaaa.value != 0 ) ){
					  if ( document.modulo.dichiaro.checked == true ) {
					  		document.modulo.a.value = "s";
							return true;
						} else {
							alert ("Devi dare il consenso");
								return false;
						}
				      }
				      else{
			  	      	alert ("La data di nascita non è completa");
				      	return false;
			  		  }
					}
				    else{
			  	      alert ("Devi selezionare la regione");
				      return false;
			  		}
				}
				else{
			  	  alert ("Devi inserire la città");
				  return false;
			  	}
			  }
			  else{
			  	  alert ("L'email non è in formato corretto");
				  return false;
			  }
			 }
			 else{
			 	 alert ("Le mail appartenenti al dominio Libero/Wind non sono accettate");
				 return false;
			 }
			}
			else{
				alert ("Le email devono coincidere");
				return false;
			 }
			}
			else{
				alert ("Le password devono coincidere");
				return false;
			}
		}
		else{
			alert ("Le password non devono essere nulle");
			return false;
		}
	  }
	else{
		alert ("Le password devono essere lunghe ALMENO 6 CARATTERI");
		return false;
	  }
	 }
	else{
		alert ("Il nick deve essere lungo MINIMO 4 CARATTERI");
		return false;
	}
	}
	else{
		alert ("Il nick non può essere vuoto");
		return false;
	}
}
*/

function finestra_messaggio(utente) {
	url = 'mess.php?id=' + utente;
	window.open(url, 'msg', 'toolbar=0, location=0, dirctories=0, status=0, menuBar=0, scrollbars=1, resizable=0, width=468, height=500');
}

function finestra_history(utente) {
	url = 'mess_history.php?id=' + utente;
	window.open(url, 'history', 'toolbar=0, location=0, dirctories=0, status=0, menuBar=0, scrollbars=1, resizable=0, width=468, height=500');
}

function finestra_info_verifica() {
	window.open('verify_info.php', 'msg', 'width=400, height=500');
}

function finestra_immagine(userid, img) {
	var nw;
	url = 'showpic.php?id=' + userid + '&num=' + img;
	nw=window.open(url, 'win_img', 'toolbar=0,location=0,dirctories=0,status=0,menuBar=0,scrollbars=0,resizable=0,width=10,height=10');
	nw.focus();
}

function finestra_upload_img(param) {
	if (param) url = 'upload_img.php?t=' + param;
	else url = 'upload_img.php';
	window.open(url, '_blank', 'toolbar=0,location=0,dirctories=0,status=0,menuBar=0,scrollbars=0,resizable=0,width=450,height=300');
}

function PlaySound(soundobj, finestra) {
	finestra.location.href = 'sound/splay.php?id=' + soundobj;
}

function apri_miniclient() {
	window.open('mini/mini_client.php', 'miniclient', 'toolbar=0,location=0,dirctories=0,status=0,menuBar=0,resizable=0,width=450, height=500');
}
/*
						
	var mediaVoto = new Number();
	mediaVoto = 2.375;
	var starDisposal = new Array();							
	pic1 = new Image(16,16);
	pic2 = new Image(16,16);
	pic3 = new Image(16,16);
	pic4 = new Image(16,16);
	pic1.src = "img/star_void_l.gif";
	pic2.src = "img/star_half_l.gif";
	pic3.src = "img/star_full_l.gif";
	pic4.src = "img/star_vote_l.gif";
	for( sst = 1; sst < 6; sst ++ ) {
		if((mediaVoto-sst)<(-0.5)) {
			starDisposal[sst-1] = pic1;
		} else if((mediaVoto-sst)>=(-0.5) && (mediaVoto-sst)<0) {
			starDisposal[sst-1] = pic2;
		} else if((mediaVoto-sst)>=0) {
			starDisposal[sst-1] = pic3;
		}
	}														
	function submitVote(vote) {	
		//window.open("http://upload.commenti.kataweb.it/rating/rating.php?id=0&voto="+vote+"&skin=repradiotv&idarticolo=repradiotv_rrtv_player_15858&brand=62&titolo=I violenti compleanni dei soldati Usa" , "vota", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=200");																																	
	 }																							 			
	function votaVideo(vote) {
		var temp = new Array();
		temp = vote.split("s");
		var tempNum = new Number();
		tempNum = temp[0];	
		submitVote(tempNum);
	}
	function rollOverStar(active) {								
		var temp = new Array();
		temp = active.split("s");
		var tempNum = new Number();
		tempNum = temp[0];								
		for(var ss=1; ss < 6; ss ++) {									
			if(ss > tempNum) {
				document.getElementById(ss+"s").src = pic1.src;
			} else {
				document.getElementById(ss+"s").src = pic4.src;
			}
		}	
	}
	function rollOutStar(active) {								
		var temp = new Array();
		temp = active.split("s");
		var tempNum = new Number();
		tempNum = temp[0];	
		for(var ss=1; ss < 6; ss ++) {
			document.getElementById(ss+"s").src = starDisposal[ss-1].src;
		}
	}

<div id="voteStars">													
<img id="1s" onclick="votaVideo(this.id);" onmouseover="rollOverStar(this.id);" onmouseout="rollOutStar(this.id);" src="http://tv.repubblica.it/images/star_full_l.gif">
<img id="2s" onclick="votaVideo(this.id);" onmouseover="rollOverStar(this.id);" onmouseout="rollOutStar(this.id);" src="http://tv.repubblica.it/images/star_full_l.gif">
<img id="3s" onclick="votaVideo(this.id);" onmouseover="rollOverStar(this.id);" onmouseout="rollOutStar(this.id);" src="http://tv.repubblica.it/images/star_void_l.gif">
<img id="4s" onclick="votaVideo(this.id);" onmouseover="rollOverStar(this.id);" onmouseout="rollOutStar(this.id);" src="http://tv.repubblica.it/images/star_void_l.gif">
<img id="5s" onclick="votaVideo(this.id);" onmouseover="rollOverStar(this.id);" onmouseout="rollOutStar(this.id);" src="http://tv.repubblica.it/images/star_void_l.gif">
</div>	


*/
