<!--

function popup(url,width,height)
	{
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no,navigation toolbar=no,status=no, top=0, left=0');
	Win.focus() ;
	}


function PrendiElementoDaId(id_elemento)
	{
	var elemento;
	if(document.getElementById)
		elemento = document.getElementById(id_elemento);
	else
		elemento = document.all[id_elemento];
	return elemento;
	}

	
	
function visualizza_img(immagine,width,height) {
	if(immagine!='')
		PrendiElementoDaId('immagine_top').innerHTML = '<a href="javascript:popup(\'popimage.php?image=layout/upload/' + immagine + '\', ' + width + ', ' + height + ')"><img src="imagemagic.php?dim=2&immagine=' + immagine + '" alt="" title="" /></a>';

		//PrendiElementoDaId('immagine_top').innerHTML = '<img src="imagemagic.php?dim=2&immagine=' + immagine + '" alt="" title="" />';
		//PrendiElementoDaId('immagine_top').innerHTML = '<img src="layout/upload/' + immagine + '" width="' + width + '" height="' + height + '" alt="" title="" />';
	}


function Apri(str,nome,width,height) {
    window.open(str, nome, 'width='+width+',height='+height+',scrollbars=yes,status=no,location=no,toolbar=no');
}
function focus_enter(campo) {
    if (campo == 'password' && document.getElementById(campo).value == 'Password' || campo == 'email' && document.getElementById(campo).value == 'Email'){
        if (campo == 'password'){
            document.getElementById(campo).type = 'password';
        }
        document.getElementById(campo).value = '';
        document.getElementById(campo).style.color = '#656565';
    }
}
function blur_enter(campo) {
    if (document.getElementById(campo).value == ''){
        if (campo == 'password'){
            document.getElementById(campo).type = 'text';
            document.getElementById(campo).value = 'Password';
        } else {
            document.getElementById(campo).value = 'Email';
        }
        document.getElementById(campo).style.color = '#c5dbe9';
    }
}
//-->
