/*********************************************************************************/
/*							                         */
/*	Display a custom mouseover message in the browser window status bar      */
/*							                         */
/* Invocation/useage:-                                                           */
/*		onMouseOver="show('Sign Up for PGP eNews')"                      */
/*							                         */
/*********************************************************************************/
function show(msg){
	window.status = msg;
	return true;
	}
	
/*********************************************************************************/
/*							                         */
/*	Jump Menu to country of choice added SMG 03-02-05
/*							                         */
/*********************************************************************************/

function countryJump(targ,selObj,restore){ //v3.0
  	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  	if (restore) selObj.selectedIndex=0;
	}
	
/*********************************************************************************/
/*							                         */
/*	popup Menu to country of choice added SMG 05-05-05
/*							                         */
/*********************************************************************************/
	

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var myWin = window.open(theURL,winName,features);
  myWin.window.focus();
  // return true;
}

/*********************************************************************************/
/*							                         */
/*	popup for sendmail webcast in /newsroom/webcast/webcastthankyou.html     */
/*							                         */
/*********************************************************************************/
			function openWebCast() {
				var webCastWin = null;
				var starturl = 'http://download.pgp.com/webcast/presentation.html';
				var winoptions = 'width=900'
				+ ',height=500'
				+ ',scrollbars=no'
				+ ',location=no'
				+ ',directories=no'
				+ ',status=no'
				+ ',menubar=no'
				+ ',resizable=no';
				webCastWin = window.open(starturl,"coursewin",winoptions);
				webCastWin.focus();
			}

/***********************************************************************************/
/* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) */
/* This notice MUST stay intact for legal use                                      */
/* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code        */
/***********************************************************************************/
		function bookmarksite(title, url){
			if (document.all)
				window.external.AddFavorite(url, title);
			else if (window.sidebar)
				window.sidebar.addPanel(title, url, "");
		}

/***********************************************************************************/
/* For Country selection within top banner nav) */
/***********************************************************************************/
function showLocalizationNav(thisitem) {

	var divname = "nav" + thisitem;
	var thediv = document.getElementById(divname);
	thediv.style.visibility = 'visible';
	}

function hideLocalizationNav(thisitem) {

	var divname = "nav" + thisitem;
	var thediv = document.getElementById(divname);
	thediv.style.visibility = 'hidden';
	}
/***********************************************************************************/
/* Javscript Cookie Setting functions */
/***********************************************************************************/

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(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 null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}
