// Blockpringting

function popup(url) {
	var browser = navigator.appName;
	var w;
	var h;
	var winx;
	var winy;
	if (screen.width >= 1024 ) {
			w=1024;
			h=600;
			winx = (screen.width - w) / 2;
			winy = (screen.height - h) / 2;
			neww= window.open(url,'Popup','height='+h+',width='+w+',scrollbars=1,location=no,menubar=no,resizable=no,status=no, top='+winy+',left='+winx+'');
			neww.focus(); 
		} else {
			w=800;
			h=440;
			winx = (screen.width - w) / 2;
			winy = (screen.height - h) / 2;
			neww= window.open(url,'Popup','height='+h+',width='+w+',scrollbars=1,location=no,menubar=no,resizable=no,status=no, top='+winy+',left='+winx+'');
			neww.focus();
		}
}

function popTerms(url) {
	var w = 400;
	var h = 240;
	var winx;
	var winy;
	winx = (screen.width - w) / 2;
	winy = (screen.height - h) / 2;
	neww= window.open(url,'Terms','height='+h+',width='+w+',scrollbars=1,location=no,menubar=no,resizable=no,status=no, top='+winy+',left='+winx+'');
	neww.focus();
}