

function glossPopup(word) {
  var url = '/client/glossary/home/pfilter.cgi?file=index.html&cacheId=${cacheId}&glossaryWord=' + word;
  args = "width=370,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no";
  popWindow = window.open(url,'Glossary',args);
  if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
     popWindow.focus();
  }
}

function surveyPopup() {
  var url = '/client/cgi-bin/pfilter.cgi?file=/client/content/global/misc/survey/index.html&cacheId=${cacheId}';
  args = "width=610,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no";
  popWindow = window.open(url,'Survey',args);
  if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
     popWindow.focus();
  }
}

function retailHelpPopup(page) {
  var termURL =  page;
  helpWindow = window.open(termURL, "helppopup", "toolbar=no,width=425,height=420,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
  if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
     helpWindow.focus();
  }
}

function folderPopup(windowName, url, width, height) {
   remote = window.open(url, windowName, "width="+width+",height="+height+",resizable=1,scrollable=1,scrollbars=1,location=1");
   if (remote != null)
   {
      if (remote.opener == null)
         remote.opener = self;
      window.name = 'myFolderRoot';
      remote.location.href = url;
   }
}

function folderPopupNoScroll(windowName, url, width, height) {
   remote = window.open(url, windowName, "width="+width+",height="+height+",resizable=1,scrollable=1,scrollbars=0,location=1");
   if (remote != null)
   {
      if (remote.opener == null)
         remote.opener = self;
      window.name = 'myFolderRoot';
      remote.location.href = url;
   }
}

function forgotHelpPopup(page) {
  var termURL =  page;
  helpWindow = window.open(termURL, "forgotpopup", "toolbar=no,width=620,height=380,location=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
  if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
     helpWindow.focus();
  }
}

function newPopup(page,width,height) {
  var now = new Date();
  newWindow = window.open(page, "popup" +now.getTime(), "toolbar=0,width="+width+",height="+height+",location=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
  if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
     newWindow.focus();
  }
}

function newPopupWTool(page,width,height) {
  var termURL =  page;
  newWindow = window.open(termURL, "popwtool", "toolbar=yes,width="+width+",height="+height+",location=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
  if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) {
     newWindow.focus();
  }
}

function PDPopup() {

	// Check for Payroll Deduct cookie
	var name = 'Payroll_deduct';
	var popup_value = GetCookie(name);

	if (popup_value != 'true') {

	// If no cookie, pop it up
	var URL = '/pfs/content/promos/payroll_deduct.html?cacheId=${cacheId}';
	var w = 420;
	var h = 390;
	var now = new Date();
	window.open(URL, 'popup' + now.getTime(), 'WIDTH=' + w + ',HEIGHT=' + h + ',toolbar=0,location=1,directories=0,resizable=0,status=0,menubar=0,scrollbars=0');
	
	}	
}


