﻿/* CAUTION! This .js file is not the standart main.js used by magiClick*/
function getCenter(pwidth,pheight){
	wwidth=screen.width;
	wheigth=screen.height;
	lpos= (wwidth - pwidth)/2;
	tpos= (wheigth - pheight)/2;
	return lpos, tpos;
}


function PopItUp(src,name,w,h,s) {
	if(s) w=w+17;
	getCenter(w,h);
	Popwin = window.open(src,name,"toolbar=0,width=" + w + ", height=" + h + ", left="+ lpos +", top="+ tpos +"; location=0, directories=0, status=1, scrollbars="+s+", menubar=0, resizable=0, copyhistory=0");
	Popwin.focus();
	//return false;
}