function getCookie( name )
{
	var search = name + "=";

	if ( document.cookie.length > 0 )
	{
		offset = document.cookie.indexOf( search );
		if ( offset != -1 )
		{
			offset += search.length;
			end = document.cookie.indexOf( ";", offset );
			if ( end == -1 )
				end = document.cookie.length;
			return unescape( document.cookie.substring( offset, end ) );
		}
	}
	return "";
}

function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name+"="+escape( value )+"; path=/;expires="+todayDate.toGMTString()+";"
}

function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

