<!--

function wSession( cName, cValue ) 
{
	// Set cookie expiration to one year from now 
	var expire = new Date()
 	expire.setMonth(expire.getMonth()+12)

	// Write the cookie 
	document.cookie = cName + "=" + escape(cValue) + "; expires=" + expire.toGMTString() + ";path=/";
}

function rSession( name ) 
{
	// Check to see if a cookie exists
	if (document.cookie != "") 
	{
		var tmp = document.cookie;
		
		if ( tmp.indexOf(name) == -1 )
			return;

		var valPair = tmp.substr( tmp.indexOf(name) );
		
		if ( valPair.indexOf(';') != -1 )
			valPair = valPair.substring( 0, valPair.indexOf(';') );
		
		var cValue = unescape( valPair.substring( valPair.indexOf('=') + 1, valPair.length ) );
/*
		var valPair = tmp.substring( tmp.indexOf(name), tmp.indexOf(';', tmp.indexOf(name) ) );
		var cValue = unescape( valPair.substring( valPair.indexOf('=') + 1, valPair.length ) );
*/
		return cValue;
	}
}

//-->