function checkUserLastUpdate(){
	var userEmailCookie = GetCookie('email');
	var isLastNotUpdated = GetCookie('islastnotupdated');
	var userResponse = GetCookie('userresponse');
		
	if(null!=userEmailCookie && ""!=userEmailCookie){
		if(userResponse == null && isLastNotUpdated == 'true'){
			launch();			
		}
	}
}

function setCookie(name,value,ageInMonths){
	var domain=null;
	var secure=false;
	var path="/";	
	
	document.cookie = name + "=" + escape(value)+
	((ageInMonths == null)? "" : "; expires=" + getGMTString(ageInMonths)) + 
	((path == null) ? "" : ("; path=" + path)) +
    ((domain == null) ? "" : ("; domain=" + domain)) +
    ((secure == true) ? "; secure" : "");
}

function getGMTString(month){
	// grab the current date
	var myExpire = new Date();

	// set the month to 6 months in the future
	myExpire.setMonth(myExpire.getMonth() + month);

	//set the date to a GMT string format
	return myExpire.toGMTString(); 
}
