function GetCookie( name )
{
	if( document.cookie.length == 0 )
	{
		return "";
	}
	
	cookieStart = document.cookie.indexOf( name + "=" );
	if( cookieStart == -1 )
	{
		return "";
	}
	
	cookieStart = cookieStart + name.length + 1;
	cookieEnd = document.cookie.indexOf( ";", cookieStart );
	if( cookieEnd == -1 )
	{
		cookieEnd = document.cookie.length;
	}
	
	return unescape( document.cookie.substring( cookieStart, cookieEnd ) );
}

function SetCookie( name, value, iExpireDays )
{
	var expiryDate = new Date();
	expiryDate.setDate( expiryDate.getDate() + iExpireDays );
	document.cookie = name + "=" + escape( value ) + ( (iExpireDays == null) ? "" : ";expires=" + expiryDate.toGMTString() + ";path=/");
}

//value = GetCookie( 'telephone' );
//if( value != "" && value != null )
