

/* Created June 13, 2007*/



function openpagesize(relativeurl, winwidth, winheight)
{

	pagewidth = winwidth;
	pageheight= winheight;
	leftpos = (window.screen.width/2) - (pagewidth/2); //half the screen width minus half the new window width.
	toppos = 200;

	window.open(relativeurl,'MathResources','width=' + pagewidth + ',height=' + pageheight + ',left=' + leftpos + ',top=' + toppos + ',screenX=' + leftpos + ',screenY=' + toppos + ',scrolling=yes, scrollbars=yes, alwaysRaised,location=no,status=no');	
}


function openpage(relativeurl)
{

	pagewidth = 500;
	pageheight= 350;
	leftpos = (window.screen.width/2) - (pagewidth/2); //half the screen width minus half the new window width.
	toppos = 200;

	window.open(relativeurl,'MathResources','width=' + pagewidth + ',height=' + pageheight + ',left=' + leftpos + ',top=' + toppos + ',screenX=' + leftpos + ',screenY=' + toppos + ',scrolling=yes, scrollbars=yes, alwaysRaised,location=no,status=no');	
}