function open_it(url,h,w){
				now=new Date();
				window.open(url,'popup'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=yes,resizable=no,scrollbars=no');
}

var pippo;
function open_pop(url,w,h){
	if(pippo) pippo.close();
	pippo = window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}

function close_pop(){
	if(pippo) pippo.close();
}


function center_me(w,h){
			if(navigator.appName.indexOf('Explorer')+1){
				var win_width=w;
				var win_height=h;
			} else {
				var win_width=window.outerWidth;
				var win_height=window.outerHeight;
			}
			var pos_x=(screen.width-win_width)/2;
			var pos_y=(screen.height-win_height)/2;
			moveTo(pos_x,pos_y);
}

function nascondi() { 
  if (document.all) {
    document.all["log"].style.visibility="hidden";
    /*cambio la visibilità da visibile a invisibile con IE*/ 
  } else if (document.layers){ //NN4
    document.layers["log"].visibility="hide";
  } else if (document.getElementById) { //NN6 ed Opera
    document.getElementById("log").style.visibility="hidden";
  } 
}


	function HideDiv(ID){
			document.getElementById(ID).style.display='none';
		}
		
		function ShowDiv(ID){
			document.getElementById(ID).style.display='';
		}
		
		function ShowHideDiv(ID){
			if(document.getElementById(ID).style.display=''){
				HideDiv(ID);
			}else{
				HideAll("offerta",1);
				ShowDiv(ID);
			}
		}
		
		function HideAll(prefix,iterations){
			for (i=1;i<=iterations;i++){
				HideDiv(prefix+i);
			}
		}
		
		
function apriImg(nomeImmagine) {
		    tagImg.innerHTML = "<img src='" + nomeImmagine + "'>";
		}

