function launchLink(url, windowname, theScrollbars, theResizable, theWidth, theHeight, windowType) {
	var screenX = window.screen.width;
	var screenY = window.screen.height;

	var x = 0;
	var y = 0;

	if ( windowType == "small" ) {
		x = Math.floor( screenX/2 );
		y = Math.floor( screenY/2 );
		x = x - Math.floor(theWidth/2);
		y = y - Math.floor(theHeight/2);
	}
	else {
		x = Math.floor( screenX/2 );
		x = x - Math.floor(theWidth/2);
		y = 50;

		if (screenY == 600) {
			theHeight = 600 - 50;
		}
		else if(screenY == 480) {
			theHeight = 480 - 30;
		}
		else {
			theHeight = 768 - 50;
		}
	}

	window.open (url, windowname, "toolbar=0," +
		"location=0,directories=0,status=0,menubar=0,scrollbars="+theScrollbars+"," +
		"resizable="+theResizable+",width="+theWidth+",height="+theHeight+"," +
		"screenX="+x+",screenY="+y+",left="+x+",top="+y);

}


function popWindow(url, windowname, top, left, scrollbars, resizable, width, height) {
	var screenX = window.screen.width;
	var screenY = window.screen.height;
	var x = 0;
	var y = 0;

	x = (screenX - width) / 2;
	y = (screenY - height) / 2;

	window.open (url, windowname, "top="+top+",left="+left+"," +
		"toolbar=0,location=0,directories=0,status=0,menubar=0," +
		"scrollbars="+scrollbars+",resizable="+resizable+"," +
		"width="+width+",height="+height+"," +
		"screenX="+x+",screenY="+y+",left="+x+",top="+y);
}
