function PoPup(url, type)
{
	var features;
	switch (type)
	{
		case "tipFriend":
				features = "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,top=" + screen.height * 1/10 + ",left=" + screen.width * 1/10 + ",height=360, width=360";
				break;
		case "help":
			features = "status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=0,left=0,height=" + screen.height * 8/10 +",width=" + screen.width * 5/10;
			break;	
		case "cme":
			features = "status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=0,left=0,height=100,width=100";
			break;
		case "cme2":
			features = "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=" + screen.height * 1/10 + ",left=" + screen.width * 1/10 + ",height=400,width=430";
			break;
		case "print":
			// used to print ebus receipt
			features = "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=0,left=0,height=" + screen.height * (8/10) + ",width=640";
			break;
		case "printPage":
			// used to print ebus receipt
			features = "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=0,left=0,height=" + screen.height * (8/10) + ",width=500";
			break;

		//case "print":
		//		features = "status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,top=0,left=0,height=500,width=700";
		//		break;

		case "viewpoll":
			features = "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=0,left=0,height=320,width=320";
			break;
		default :
			features = "status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,top=" + screen.height * 1/10 + ",left=" + screen.width * 1/10 + ",height=600,width=600";
			//features = "";
			break;
	}
	window.open(url, '', features);
	
}

function load() {
var load = window.open('http://www.sanitaria.hu/sovereign_popup.html','','resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,dependent=no,width=600,height=500');
}
