function setScriptingSupported( element, formName )

{

    if( ( element.tagName.toLowerCase() == "input" ) && ( element.type == "image" ) )

    {

        document.forms[formName].elements["scriptingSupported"].value="true";

    }

    else if( element.tagName.toLowerCase() == "a" )

    {

        var link = element;

        // check for scriptingSupported=false

        if( link.href.indexOf( "scriptingSupported" ) != -1 )

        {

            link.href = link.href.replace( /scriptingSupported=false/, "scriptingSupported=true" );

        }

        else

        {

            if( link.href.indexOf( "?" ) )

            {

                link.href += "&scriptingSupported=true";

            }

            else

            {

                link.href += "?scriptingSupported=true";

            }

        }

    }

    return true;

}