function getTrendIdentifier() 
{
		var theDate = "";
		var theCookie = "";
		if ( window.document.cookie != null ) {			 
			theDate = getMyCookie( "tid" );	
			theCookie = getMyCookie( "JSESSIONID" );		 	    
		}		 
		if ( theCookie == null ){
			theCookie = getCookie2( "jsessionid" );
		}
		if ( theDate  == null ){
			theDate = getCookie2( "tid" );
		}		 
		if ( theDate == null ) {
			theDate = getDate();
			if ( theCookie == null ) {
				theDate = theDate + "_" + Math.random()*1000000000000000000;
			} else {
				theDate = theDate + "_" + theCookie;
			}
			createMyCookie( "tid", theDate, 365 );		 
		}		 		 
		return theDate;  
}