// JavaScript Document
<!-- Begin
function GP_AdvOpenWindow(theURL,winName,features,popWidth,popHeight,center,ignorelink,alwaysOnTop,autoCloseTime,borderless) { //v1.1
  var autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340;  
  if (popWidth > 0) {
    features += (features.length > 0 ? ',' : '') + 'width=' + popWidth;
  }
  if (popHeight > 0) {
    features += (features.length > 0 ? ',' : '') + 'height=' + popHeight;
  }
  if (center && center != "" && popWidth > 0 && popHeight > 0) {
    if (document.all || document.layers || document.getElementById) {
      w = screen.availWidth;
	  h = screen.availHeight;
	}
    var leftPos = (w-popWidth)/2, topPos = (h-popHeight)/2;
    features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;
  }
  if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) {
    features+=",fullscreen=1";
  }
  popupWindow = window.open(theURL,winName,features);
  if (popupWindow.opener == null) {
    popupWindow.opener = self;   
  } 
  if (document.all || document.layers || document.getElementById) {
    if (borderless && borderless != "") {
	  popupWindow.resizeTo(popWidth,popHeight); popupWindow.moveTo(leftPos, topPos);
	}
    if (alwaysOnTop && alwaysOnTop != "") {
      ontopIntervalHandle = popupWindow.setInterval("window.opener.popupWindow.focus();", 50);
      popupWindow.document.body.onload = function() {
        popupWindow.setInterval("window.opener.popupWindow.focus();", 50);
      }; 
    }
    if (autoCloseTime && autoCloseTime > 0) {
      popupWindow.document.body.onbeforeunload = function() {
        if (autoCloseTimeoutHandle) {
	      window.clearInterval(autoCloseTimeoutHandle);
        }
        window.onbeforeunload = null;
      }  
      autoCloseTimeoutHandle = window.setTimeout("popupWindow.close()", autoCloseTime * 1000);
    }
  	window.onbeforeunload = function() {
	  popupWindow.close();
    };
  }   
  document.returnValue = (ignorelink && ignorelink != "") ? false : true;
}
//<a href="#" onClick="GP_AdvOpenWindow('popup.php','popup','fullscreen=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no',450,200,'center','ignoreLink','',0,'');return document.returnValue">Forgot your Password?</a>
// End -->