/* Used for onload code on Home Page as onload code in the domino form and also set in the add load event does not work together */
/*
function changecountry(){
var expiration = new Date( 1982, 11, 31, 12, 0, 0 );
setCookie('skipintro', country , expiration , "/");
location.replace("http://"+domain+path+"intro")
//Delete Products Cookie as we will have new products available depending on what we select.
var expiration = new Date( 1954, 11, 31, 12, 0, 0 );
setCookie('SampleRequestCookie', '', expiration, "/" );
}
*/
addLoadEvent(function (){
//Set cookie for skipping intro
s = getCookie('skipintro');
if( s == null ){
		if( country != "" )
		{
			var expiration = new Date( 2099, 11, 31, 12, 0, 0 );
			setCookie("skipintro", country , expiration ,  "/" );
		}
}
else{
			if (country == "" )
			{
			//set expiry to past to delete
			var expiration = new Date( 1982, 11, 31, 12, 0, 0 );
			setCookie("skipintro", country , expiration ,  "/" );
			return
			}
			else if(s != country){
			var expiration = new Date( 2099, 11, 31, 12, 0, 0 );
			setCookie("skipintro", country , expiration ,  "/" );
			}
	
	}
 });

