function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}


function popup(theURL,winName,features) { //v2.0
	features+=",top="
	features+=screen.height/2-200/2
	features+=",left="
	features+=screen.width/2-200/2
	window.open(theURL,winName,features);
}


function popup_sito(theURL,larghezza,altezza) { //v2.0

	winName="window";
	winName+=Math.floor(Math.random()*100000)+1; //crea un nome univoco per ogni finestra
	features="";
	features+=",top=";
	features+=screen.height/2-altezza/2;
	features+=",left=";
	features+=screen.width/2-larghezza/2;
	features+=",width="+larghezza+",height="+altezza+",toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=auto,resizable=yes";
	window.open(theURL,winName,features);
}


function popup_resize(theURL) {
	winName="window";
	winName+=Math.floor(Math.random()*100000)+1;
	features="";
	features+=",top=";
	features+=screen.height/2-200;
	features+=",left=";
	features+=screen.width/2-300;
	features+=",width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
	window.open(theURL,winName,features);
}

function popup_contatto(theURL) 
{
	winName="window";
	winName+=Math.floor(Math.random()*100000)+1;
	features="";
	features+=",top=";
	features+=screen.height/2-850/2+100;
	features+=",left=";
	features+=screen.width/2-790/2+100;
	features+=",width=580,height=480,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
	window.open(theURL,winName,features);
}


function popup_scroll(theURL) { //v2.0

	winName="window";
	winName+=Math.floor(Math.random()*100000)+1;
	features="";
	features+=",top=";
	features+=screen.height/2-370/2;
	features+=",left=";
	features+=screen.width/2-590/2;
	features+=",width=590,height=370,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no";
	window.open(theURL,winName,features);
}


function popup_img (theURL) { //v2.0

	winName="window";
	winName+=Math.floor(Math.random()*100000)+1;
	features="";
	features+=",top=";
	features+=screen.height/2-270/2;
	features+=",left=";
	features+=screen.width/2-450/2;
	features+=",width=450,height=270,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
	window.open(theURL,winName,features);

}