// JavaScript Document  popupSized.js - asgardforge.com - May 7, 2008

<!--
function goodPop2($nam,wid,hgt,chc) {
 var popfun,name,width,height,control
 name=$nam;
 width=wid;
 height=hgt;
 choice=chc;
 	popfun=function(){ 
// create positioning to centre popUp on viewer's screen:
		if(screen.width<width) {
			lpos = 0;
		}
		else {
			lpos = (screen.width) ? (screen.width-width)/2 : 10;
		}
// cause popup to occur for ONCLICK and ONKEYPRESS events:
		if (choice == 0) {
			var windowAttributes='width=' +width+ ',height=' +height+ ',left=' +lpos+ ',top=20,toolbar=no,scrollbars=no,resize=no';
		}
		else if (choice == 1) {
			var windowAttributes='width=' +width+ ',height=' +height+ ',left=' +lpos+ ',top=20,toolbar=no,scrollbars=yes,resize=no';
		}
		else {
			var windowAttributes='width=' +width+ ',height=' +height+ ',left=' +lpos+ ',top=20,toolbar=yes,scrollbars=yes,resize=no';
		}
		var oWin = window.open(name,'',windowAttributes); 
		if (oWin==null || typeof(oWin)=="undefined"){
	   	alert("Please disable your POPUP Blocker Software, and then re-select the LINK button.");
		}
       return false; 
	} // exit popfun
	popfun();	
 }  /* exit goodPop */
-->