	function  FocusInput(obj,sf,sfbg,fb)
	{
		if (document.getElementById || document.all)
		{
		obj.style.color=sf;
		obj.style.backgroundColor=sfbg;
		obj.style.fontWeight=fb;
		}
	}
	
	function BlurInput(obj,sf,sfbg,fb)
	{
		if (document.getElementById || document.all)
		{
		obj.style.color=sf;
		obj.style.backgroundColor=sfbg;
		obj.style.fontWeight=fb;
		}
	}
	
	function FocusCol(obj,sf,sfbg,fb)
	{
		if (document.getElementById || document.all)
		{
		obj.style.color=sf;
		obj.style.backgroundColor=sfbg;
		obj.style.fontWeight=fb;
		obj.value="";
		}
	}
	
	function BlurCol(obj,sf,sfbg,fb,txt)
	{
		if (document.getElementById || document.all)
		{
		obj.style.color=sf;
		obj.style.backgroundColor=sfbg;
		obj.style.fontWeight=fb;
			if (obj.value < 1)
			{
			obj.value=txt;
			}
		}
	}

	
	function CryptMailto()
    {
        var n = 0;
        var r = "";
        var s = "mailto:"+document.forms[0].emailField.value;
        var e = document.forms[0].emailField.value;

        e = e.replace( /@/, " [at] ");
        e = e.replace( /\./g, " [dot] ");

        for( var i=0; i < s.length; i++ )
        {
            n = s.charCodeAt( i );
            if( n >= 8364 )
            {
                n = 128;
            }
            r += String.fromCharCode(n+1);
        }
        document.forms[0].cyptedEmailField.value = r;
        document.forms[0].HTMLCyptedEmailField.value = "<a href=\"javascript:linkTo_UnCryptMailto('"+ r +"');\">"+ e +"</a>";
    }

    function UnCryptMailto( s )
    {
        var n = 0;
        var r = "";
        for( var i = 0; i < s.length; i++)
        {
            n = s.charCodeAt( i );
            if( n >= 8364 )
            {
                n = 128;
            }
            r += String.fromCharCode( n - 1 );
        }
        return r;
    }

    function linkTo_UnCryptMailto( s )
    {
        location.href=UnCryptMailto( s );
    }
