function flashMessage (args){
  switch (args) {
  		
	
	case  "REGOLAMENTO":		
window.open("popup/regolamento.htm","regolamento","width=630,height=650,scrollbars=yes,resizable=no,status=no");
	break;
	case  "PRIVACY":		
window.open("popup/privacy.htm","regolamento","width=630,height=650,scrollbars=yes,resizable=no,status=no");
	break;
	
	
	}
}

function clickTrack(action){
    var i=new Image(1,1);
    i.src= "/" + action + ".tck?" + Math.round(Math.random()*2147483647);
}

function pageView(action){
	var i=new Image(1,1);
    i.src= "/" + action + ".tck?" + Math.round(Math.random()*2147483647);
}

function openwin(url, popName, width, height) {
	var width = width; 
	var height = height;  
	var left = (screen.width - width) / 2 ;
	var top = (screen.height - height) / 2;
	var popProp = "width="+ width +",height="+ height +",left="+ left +",top="+ top +",scrollbars=yes,toolbar=no";
	window.open(url, popName, popProp);
}

function openwinresizable(url, popName, width, height) {
	var width = width; 
	var height = height;  
	var left = (screen.width - width) / 2 ;
	var top = (screen.height - height) / 2;
	var popProp = "width="+ width +",height="+ height +",left="+ left +",top="+ top +",scrollbars=yes,toolbar=no,resizable=yes";
	window.open(url, popName, popProp);
}

function openpop(url, popName, width, height) {
	var width = width; 
	var height = height; 
	var left = (screen.width - width) / 2 ;
	var top = (screen.height - height) / 2;
	var popProp = "width="+ width +",height="+ height +",left="+ left +",top="+ top +",scrollbars=no,toolbar=no";
	window.open(url, popName, popProp);
}
