function popOver(url, w, h)
{
	var spec = (h && w) ? "toolbar=0,menubar=0,status=1,location=0,scrollbars=1" : "toolbar=1,menubar=1,status=1,location=1,scrollbars=1,resizable=1,";
	if (!h) h = (window.screen) ? window.screen.height : window.outerHeight;
	if (!w) w = (window.screen) ? window.screen.width  : window.outerWidth;
	var x =  (window.screenX) ? window.screenX : (window.screenLeft) ? window.screenLeft : 100;
	var y =  (window.screenY) ? window.screenY : (window.screenTop)  ? window.screenTop  : 100;
	spec += "top=" + y + ",left=" + x + ",width=" + w + ",height=" + h;
	var ie7 = (window.clientInformation && window.clientInformation.appVersion.indexOf("IE 7") > 0);
    var popName = "popOver_" + String((new Date()).valueOf());
	var pop = (true || !ie7) ? window.open(url, popName, spec, true) : window.open(url);
	return pop;
}

function popUnder(url, w, h)
{
	if (!h) h = (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight - 10 : (document.body.clientHeight) ? document.body.clientHeight - 10 : 700;
	if (!w) w = (document.documentElement && document.documentElement.clientWidth)  ? document.documentElement.clientWidth  - 10 : (document.body.clientWidth)  ? document.body.clientWidth  - 10 : 950;
	var x =  (window.screenX) ? window.screenX : (window.screenLeft) ? window.screenLeft : 100;
	var y =  (window.screenY) ? window.screenY : (window.screenTop)  ? window.screenTop  : 100;
	var spec = "toolbar=1,menubar=1,status=1,location=1,scrollbars=1,resizable=1,";
	spec += "top=" + y + ",left=" + x + ",width=" + w + ",height=" + h;
	var ie7 = (window.clientInformation && window.clientInformation.appVersion.indexOf("IE 7") > 0);
    var popName = "popUnder_" + String((new Date()).valueOf());
    var pop = (true || !ie7) ? window.open("about:blank", popName, spec, true) : window.open("about:blank");
	if (pop) pop.blur();
	self.focus();
	if (pop) pop.location.replace(url);
	self.focus();
	return pop;
}
