/**
 * popWinName            the Cookie name. Must the same as the other javascript phishing_alert_popup.js under 
 *                       singapore_51\content\singapore\personal\services\phishing_alert\js
 * popWinNameValue       the value of the Cookie. Must the same as the other javascript phishing_alert_popup.js under 
 *                       singapore_51\content\singapore\personal\services\phishing_alert\js
 *
 * Method to trigger the Phising aler page again:
 * 1. change the cookie name popWinName to another, and also do the same thing at phishing_alert_popup.js.
 * 2. change the value of the cookie popWinNameValue, and also for the phishing_alert_popup.js.
 */

var popWinName = "PopupPhishingAlert";
var popWinNameValue = "20080515used";

/**
 * Popup a window with given URL
 */
function popWinOpenOnce(winURL){
  var popCookies = document.cookie	  
  var newWin;		  
  if (popCookies.indexOf(popWinName) == -1){ // cookie not found
    newWin=window.open(winURL, popWinName, "menubar=no, resizable = yes, toolbar=no,directories=no,location=no,scrollbars=yes,status=yes,copyhistory=0,width=715,height=480");
    }
  }


