		
function iframeset(val,val2,val3) {
	var contenitore = document.getElementById("play");
	contenitore.src = "includes/play.php?s="+val2+"&l="+val+"&n="+val3;
}
function iframeset2(val,val2,val3) {
	var contenitore = document.getElementById("play");
	contenitore.src = "includes/download.php?s="+val2+"&l="+val+"&n="+val3;
}

function iframed() {
	var contenitore = document.getElementById("play");
	contenitore.src = "";
}
var sURL = unescape(window.location.pathname);

function doLoad()
{
    // the timeout value should be the same as in the "refresh" meta-tag
    setTimeout( "refresh()", 2*1000 );
}

function refresh()
{
    //  Questa versione della funzione refresh inserisce una nuova
    //  pagina nella storia del browser.  Ciò è utile per
    //  i browsers che supportano JavaScript 1.0.
    //
    window.location.href = sURL;
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function hide(id){
document.getElementById(id).style.visibility = "hidden";
}

function togli_border(id) {
document.getElementById(id).style.border = "0px";
}
function metti_border(id) {
document.getElementById(id).style.border = "solid 2px #A9D942";
}
function verifica_campo(id,mess) {
var risposta = document.getElementById(mess);
var campo = document.getElementById(id);
if (campo.value == ""){
	risposta.style.color = "#FF3333";
	risposta.innerHTML = "Il campo non può essere vuoto!";
	campo.style.background = "#E37B7B";
	return false;
}else {
	risposta.innerHTML = "";
	campo.style.background = "#BCE578";
	return true;	
}
}

