<!--

website = "tedperez";

net = (document.layers && true);

widgetBuf = (net) ? 0:50

function popWin(url, name, width, height, scroll, resizable, menus) {
	bWidth = (net) ? top.innerWidth:parseInt(top.document.body.clientWidth);
	bHeight = (net) ? top.innerHeight:parseInt(top.document.body.clientHeight);
	bLeft = (net) ? top.screenX:parseInt(top.screenLeft);
	bTop = (net) ? top.screenY:parseInt(top.screenTop);
	scroll = (scroll) ? scroll:"auto";
	resizable = (resizable) ? resizable:"yes";
	menus = (menus) ? menus:false;
	if (!bLeft) {
		bLeft = 0;
		bWidth = screen.width;
	}
	if (!bTop) {
		bTop = 0;
		bHeight = screen.height;
	}
	xer = bLeft + ((bWidth/2) - width/2);
	yer = (bTop - widgetBuf) + ((bHeight/2) - height/2);
	if (xer < 2) {
		xer = 2;
	}
	if (xer < 2) {
		xer = 2;
	}
	
	if (menus) {
		paramStr = "width=" + width + ",height=" + height + ",screenX=" + xer + ",screenY=" + yer + ",left=" + xer + ",top=" + yer + ",dependent=1,directories=1,location=1,menubar=1,resizable="+resizable+",scrollbars="+scroll+",toolbar=1";
	}else{
		paramStr = "width=" + width + ",height=" + height + ",screenX=" + xer + ",screenY=" + yer + ",left=" + xer + ",top=" + yer + ",dependent=1,directories=0,location=0,menubar=0,resizable="+resizable+",scrollbars="+scroll+",toolbar=0";
	}

	top[name] = window.open(url, name, paramStr);
	top[name].focus();
}

popups = new Object();

function launchPopUp(name, args) {
	tP = popups[name];
	if (args) {
		params = "?";
		for (var i in args) {
			params += i + "=" + args[i] + "&";
		}
	} else {
		params = "";
	}
	popWin(tP.url+params, website+tP.name, tP.width, tP.height, tP.scroll, tP.resizable);
}

function newPopUp(argObj) {
	popups[argObj.name] = new Object();
	tP = popups[argObj.name];
	tP.name = argObj.name;
	tP.url = argObj.url;
	tP.width = argObj.width;
	tP.height = argObj.height;
	tP.scroll = argObj.scroll;
	tP.resizable = argObj.resizable;
	tP.menus = argObj.menus;
}
newPopUp({
		name:"EXAMPLEPOPUPTHING",
		url:"recruit.php",
		width:492, height:411, scroll:"no", resizable:"no"});	
//-->