jQuery.noConflict();
jQuery(document).ready(function() 
{
	
	
});

function CheckAndCreateCookie(userid, paramComObjId, uniqueKey, rating)
{
	
	 var AnonyKey='';
	//checking if user is anonymous
	if(userid==-1)
	{
		var cookieName='AnonyKey_' + paramComObjId;
		var key='key_' + uniqueKey ;//+ '_' + rating;
		//check if cookie exists 
		var cookieVal=jQuery.cookie( cookieName);
		if(cookieVal!=null)
		{
			//cookie found
			AnonyKey=cookieVal;
			return AnonyKey;
		}
		else
		{
			//cookie not  found
			jQuery.cookie( cookieName, key, { expires: 365, path: '/',  secure: false });
			AnonyKey=key;
			return AnonyKey;
		}
	}
	
}



