
function doPop(url,W,H,scroll) {

	value = scroll
	itm = url
	itmW = W
	itmH = H
	myurl = url+".html";
remote=window.open(myurl,itm,"height="+itmH+",width="+itmW+",left="+(((screen.width-itmW)-10)/2)+",top="+(screen.height-itmH-36)/2+",directories=0,fullscreen=0,menubar=0,resizable=0,status=0,titlebar=0,toolbar=0,scrollbars="+value+"");
remote.focus();
	}
	

function doPhp(url,oggetto,W,H,scroll) {

	value = scroll
	itm = oggetto
	itmW = W
	itmH = H
	myurl = url;
remote=window.open(myurl,itm,"height="+itmH+",width="+itmW+",left="+(((screen.width-itmW)-10)/2)+",top="+(screen.height-itmH-36)/2+",directories=0,fullscreen=0,menubar=0,resizable=0,status=0,titlebar=0,toolbar=0,scrollbars=1");
remote.focus();
	}
	

function openPhoto(imgPop,version) {


	imgVar = imgPop;

	
	if (version == 'v'){
	imgW = 332;
	imgH = 500;
	}
	
	if (version == 'o'){
	imgW = 500;
	imgH = 332;
	}
	
	if (version == 'mappa'){
	imgW = 600;
	imgH = 447;
	}
	
	myurl = "foto.html";
remote=window.open(myurl,"popUp_"+imgPop+"","height="+imgH+",width="+imgW+",left="+(screen.width-imgW-8)/2+",top="+(screen.height-imgH-30)/2+",directories=0,fullscreen=0,menubar=0,resizable=0,status=0,titlebar=0,toolbar=0,scrollbars=0");

	}
