function loadNewWin(location,name)
{
	var cont=true;
	if(getCookie('xmlnasapopup')!='done'){
                openConfirm=confirm('You are about to open a new window that will be used\nto load Web pages outside of the NMO Web site.\nClick OK to continue or Cancel to stop.');
		if(openConfirm==true){
			setCookie('xmlnasapopup','done');
			cont=true;
		}else{
			cont=false;
		}
	}
	if(cont==true){
		openWin(location,name);
	}
}

function openWin(location,name){
	var newWin = window.open(location,"nasagov");
	newWin.focus();
}

function getCookie(cookieName) {
 var search = cookieName + "="
 var returnvalue = "";
 if (document.cookie.length > 0) {
   offset = document.cookie.indexOf(search)
   if (offset != -1) { // if cookie exists
     offset += search.length
     // set index of beginning of value
     end = document.cookie.indexOf(";", offset);
     // set index of end of cookie value
     if (end == -1)
        end = document.cookie.length;
     returnvalue=unescape(document.cookie.substring(offset, end))
     }
  }
 return returnvalue;
}

function setCookie (cookieName, cookieValue) {
	document.cookie = cookieName+"="+escape(cookieValue);
}
