heightSMALL = 300;
widthSMALL = 600;
posXS = (screen.width/2 - widthSMALL/2).toString();
posYS = (screen.height/2 - heightSMALL/2).toString();

function openSMALL(URLStr)
	{ var w = window.open(URLStr,"_blank","height=" + heightSMALL + ",width=" + widthSMALL + ",top=" + posYS + ",left=" + posXS + ",screenX=" + posXS + ",screenY=" + posYS + ",menubar=no,resizable=yes,scrollbars=yes");
	  return void(0); }

heightBIG = 450;
widthBIG = 700;
posXB = (screen.width/2 - widthBIG/2).toString();
posYB = (screen.height/2 - heightBIG/2).toString();

function openBIG(URLStr)
	{ var w = window.open(URLStr,"_blank","height=" + heightBIG + ",width=" + widthBIG + ",top=" + posYB + ",left=" + posXB + ",screenX=" + posXB + ",screenY=" + posYB + ",menubar=no,resizable=yes,scrollbars=yes");
	  return void(0); }

heightCOLOUR = 197;
widthCOLOUR = 600;
posXC = (screen.width/2 - widthCOLOUR/2).toString();
posYC = (screen.height/2 - heightCOLOUR/2).toString();

function openCOLOUR(URLStr)
	{ var w = window.open("getcolour.php","_blank","height=" + heightCOLOUR + ",width=" + widthCOLOUR + ",top=" + posYC + ",left=" + posXC + ",screenX=" + posXC + ",screenY=" + posYC + ",menubar=no,resizable=no,scrollbars=no");
	  return void(0); }

function openWindow(URLStr,w,h)
	{ posXC = (screen.width/2 - w/2).toString();
	  posYC = (screen.height/2 - h/2).toString();
	  var w = window.open(URLStr,"_blank","height=" + h + ",width=" + w + ",top=" + posYB + ",left=" + posXB + ",screenX=" + posXB + ",screenY=" + posYB + ",menubar=no,resizable=yes,scrollbars=yes");
	  return void(0); }
	  
var isNS = 0;
var isIE = 0;
var docObj, styleObj;

if (navigator.appName == "Netscape")
	{ isNS = 1; } else { isIE = 1; }

docObj = (isNS) ? "document." : "document.all.";
styleObj = (isNS) ? "" : ".style";
