	var paramSeg = '<dsp:valueof param="edstempseg" />';
	
	if(paramSeg != null && paramSeg != '')
	{
		Set_Cookie( 'CookieSegment', paramSeg, 'Thu,31-Dec-2020 00:00:00 GMT;', '/', '', '' );
	}
	function Set_Cookie( name, value, expires, path, domain, secure ) 
	{
		// set time, it's in milliseconds
		var today = new Date();
		today.setTime( today.getTime() );
	
		document.cookie = name + "=" +escape( value ) +
		( ( expires ) ? ";expires=" + expires : "" ) + 
		( ( path ) ? ";path=" + path : "" ) + 
		( ( domain ) ? ";domain=" + domain : "" ) +
		( ( secure ) ? ";secure" : "" );
		//alert(document.cookie);
	}
