//______INVESTORS DISCLAIMER POP-UP

//function to set cookie
function setCookie(name,value){
	var expire = new Date();
	expire.setTime(expire.getTime() + 7*24*60*60*1000);
	var expDate = expire.toGMTString();
	document.cookie=name+"="+value+";"+" expires="+expDate;
}

//function to get cookie
function getCookie(Name) {
	var search = Name+"=";
		if(document.cookie.length>0) {
			var offset=document.cookie.indexOf(search);
			if(offset!=-1) {
				offset+=search.length;
				var end=document.cookie.indexOf(";",offset);
					if(end==-1) {
						end=document.cookie.length;
						return document.cookie.substring(offset,end);
					}
			}
		}
}

//check to see if they have been here
//if not throw the popup
//function disclaimerpop(){
	var invhome = getCookie("investhome");
	var p = window.location.pathname;

  	if((invhome==null) && (p.indexOf('/about__unisys/investors/index.htm')!=-1))	{
     	window.open('http://www.unisys.com/about__unisys/investors/disclaimer.htm','','width=270,height=300,scrollbars=yes,resizable=yes');
		setCookie("investhome","yes");
   		}
//______END INVESTORS DISCLAIMER POP-UP
