
function GetCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return "false";
}


  
function WriteCookie (cookieName, cookieValue, expiry) {
	var expDate = new Date();
		if(expiry)
		{
		 expDate.setTime (expDate.getTime() + expiry);
		 document.cookie = cookieName + "=" + escape (cookieValue) + "; expires=" + expDate.toGMTString() + "; path=" + escape("/ga");
		}
	  	else
		{
		 document.cookie = cookieName + "=" + escape (cookieValue) + "; path=" + escape("/ga");
		}
	  }


function ReadCookie(CookieName,Language)
{
// do nothing : Deletion of popup page 2004-06-17
}

function ReadCookieBackUp(CookieName,Language)
{
//returns the cookie value: true or false
var RV = GetCookie(CookieName);

//if the cookie is false we want to see the pop up window

if (RV == "false")
	{
	

		var URL="MLPopUp.htm";
		if (Language=="F") 
		    {
		    URL="MLPopUp_F.htm";
		    }
		var win;
		//all the attribute of the pop up window can be modified below
		win = window.open(URL, 'ManuLife', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=405,height=150,left=10,top=10');
		win.focus();
	}

}