function setGoogleCookie(valueOfParam){

	var expireDays = 3;
	var nameOfParam = "FORM_INFO";
	var expireDate = new Date();
	expireDate.setTime(expireDate.getTime() + (expireDays * 24 * 3600 * 1000));
	
	document.cookie = nameOfParam + "=" + valueOfParam + "; expires=" + expireDate.toGMTString() + "; path=/";
}

function setGoogleCookieForLanding(valueOfParam){
	
	var nameOfParam = "FORM_INFO";
	var expireDate = new Date();
	expireDate.setTime(expireDate.getTime() + (3 * 3600 * 1000));
	document.cookie = nameOfParam + "=" + valueOfParam + "; expires=" + expireDate.toGMTString() + "; path=/";
}

function getGoogleCookie() {

	
	var nameOfParam = "FORM_INFO";
	var idOfHiddenInput = "GOOGLE_LINK_INFORMATION_HIDDEN_INPUT";
	
	if (document.cookie.length>0) {
		
		cookieStartIndex=document.cookie.indexOf(nameOfParam + "=");
		
		if (cookieStartIndex!=-1) {
		    
		    cookieStartIndex=cookieStartIndex + nameOfParam.length+1;
		    cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex);
		    
	    	if (cookieEndIndex==-1) {
		    	cookieEndIndex=document.cookie.length;
		    }
		    
			var valueOfParam = unescape(document.cookie.substring(cookieStartIndex,cookieEndIndex));
			
			
			var input = document.getElementById(idOfHiddenInput);
			
			if (input != null) {
				input.value = valueOfParam;
			}
			
			return valueOfParam;
		}
	}
	return "";
}
