function policy(){
	displayWin = window.open("http://www.oemali.com/it/privacy.asp","Cg_img","scrollbars=yes,resizable=no,width=500,height=500,status=yes,location=no,toolbar=no");
}
function credits(){
	displayWin = window.open("http://www.oemali.com/it/credits.htm","credits","scrollbars=no,resizable=no,width=320,height=150,status=no,location=no,toolbar=no");
}
function vedi_img(img,de){
	var win = window.open("img.asp?img="+img + "&de=" + de, "foto_news", "resizable=1,HEIGHT=200,WIDTH=200");
}
function vedi_img2(img,de){
	var win = window.open("img.asp?img="+img + "&de=" + de, "foto_news", "resizable=1,HEIGHT=200,WIDTH=200,toolbar=yes");
}
function controllo_sk_log(){
	a = 0;
	a = no_vuoto(document.nmsg.user,a);
	a = no_vuoto(document.nmsg.password,a);
	if (a == 0) {
		document.nmsg.submit()
	}
}


function sk_news(id){
	displayWin = window.open("http://www.oemali.com/it/news_sk.asp?id="+id,"sknews","scrollbars=yes,resizable=no,width=500,height=500,status=no,location=no,toolbar=no");
}

function profilo(id){
	displayWin = window.open("http://www.oemali.com/it/profilo.asp?id="+id,"profilo","scrollbars=no,resizable=no,width=430,height=450,status=no,location=no,toolbar=no");
}

function centra_fin(){
	var NS = (navigator.appName=="Netscape")?true:false;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	LeftPosition = (screen.width) ? (screen.width-iWidth)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-iHeight)/2 : 0;
	moveTo(LeftPosition,TopPosition);
	self.focus();
}
function under(){
	alert("Sezione in costruzione.");
}

function lost_pwd(){
	a = prompt('Inserisci l\'email con cui ti sei iscritto.','')
	if ((a+"") != "") {document.location = "http://www.oemali.com/it/lost_pwd.asp?email=" + a}
}

function vedilog() {
			show('log');
			document.nmsg.user.focus();
}

function nascondilog() {
			hide('log');
}

function show(nome_livello)  {
    if (document.all) {
      document.all[nome_livello].style.visibility="visible";
    }

    else if (document.layers){
       document.layers[nome_livello].visibility="show";
    }

    else if (document.getElementById) {
       document.getElementById(nome_livello).style.visibility="visible";
    }

  }

function hide(nome_livello) {

       if (document.all) {
         document.all[nome_livello].style.visibility="hidden";
       }
       else if (document.layers){ //NN4

          document.layers[nome_livello].visibility="hide";
       }
       else if (document.getElementById) { //NN6 ed Opera
document.getElementById(nome_livello).style.visibility="hidden";
       }

  } 