<!--
    // $AUTOFTP:1 $


function getCookieValue (pos)
{
	var temp = document.cookie.indexOf (" &", pos)
	
	if(temp == -1)
	{
		temp = document.cookie.indexOf (";", pos);
		if(temp == -1)
			temp = document.cookie.length ;
	}
	return unescape (document.cookie.substring (pos, temp))
}
function GetCookie (name)
{
	var cName = name + "=" ;
	var len = cName.length ;
	var cookieLen = document.cookie.length ;
	var i = 0, j ;

	while (i < cookieLen)
	{
		j = i + len ;
		if(document.cookie.substring(i, j) == cName)
		{
			return getCookieValue (j);
		}
		i++
		if(i == 0)
			break ;
	}
	return null ;
}


    function CheckBoxCookie (strX, Obj) {
    	var str ;
        str = GetCookie(strX);
        if((str == "1") && (Obj != null)){
            Obj.checked = 1 ;
            Obj.value = "1" ;
        }
    }    

    function ValueCookie (strX, Obj) {
    	var str ;
        str = GetCookie(strX);
        if((str) && (Obj != null)){
            Obj.value = str ;
        }
	}


//-->


