// JavaScript Document
// This is the central JS file for elres websites to call for various functions
// to do with ELRes.

// Centred Window, Scrolling and Not Resizeable

function scrollWindowLaunchELRes(url,mywidth,myheight,name) {
	var iMyWidth;
	var iMyHeight;

	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - ((mywidth/2) + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((myheight/2) + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(url,name,"status=1,height=" + myheight + ",width=" + mywidth + ",resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
	win2.focus();
}


