// Opens a Window and then Maximizes it to screen resolution
// This over-rides further <A HREF="ptxUrl" onClick="openWindowMax('ptxUrl')>

function openWindowMax(ptxUrl) {
	twin = window.open(ptxUrl, "MaxPage", "width=600, height=400, toolbar=0, scrollbars=1, status=1, resizable=1");
	twin.focus();
	// self.moveTo(0,0);
	//self.resizeTo(screen.availWidth, screen.availHeight);
	var offset = (navigator.userAgent.indexOf("Mac")      != -1 ||
				  navigator.userAgent.indexOf("Gecko")    != -1 ||
				  navigator.userAgent.indexOf("Netscape") != -1    ) ? 0 : 4;
				  
	twin.moveTo(-offset, -offset);
	twin.resizeTo(screen.availWidth + (2 * offset), screen.availHeight + (2 * offset));
	return false;
}