// JavaScript Document
var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=600,width=800,left=300,top=150,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function showDialog(url, width, height)
{
	return showWindow(url, 0, 0, 0, 0, 0, 0,0,true, width, height, 0, 0);
}
 
function showWindow(url, isStatus, isResizeable, isScrollbars, isToolbar, isLocation, isFullscreen, isTitlebar, isCentered, width, height, top, left)
{
	if (isCentered)
	{
		top = (screen.height - height) / 2;
		left = (screen.width - width) / 2;
	}
	
	winDef = 'status=no,resizable=yes,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=no,height=' + height + ',width=' + width + ',top=' + top + ',left=' + left + '';
		
	newwin = open(url, '_blank', winDef);
}




function openmywindow(url,width,height){
	
	top = (screen.height - height) / 2;
	left = (screen.width - width) / 2;
	
	var w = window.open(url,'info','fullscreen=no,toolbar=0,location=0,directories=0,status= 0,menubar=0,scrollbar=0,scrollbars=0,resizable=1,top='  + top + ',left=' + left );
}

