styleRef = ".style" eval( "document.all.['bluething']." + styleRef + ".visibility = 'visible'")
Both of the statements below will work - the only difference is that the single and double quotes have been switched.
eval( "document" + layerRef + "['findpants']" + styleRef + ".visibility = 'visible'") eval( 'document' + layerRef + '["findpants"]' + sstyleRef + '.visibility = "visible"')
<SCRIPT LANGUAGE="JavaScript"> layerRef = "" styleRef = "" if (navigator.appName == "Netscape") { layerRef = ".layers" styleRef = "" } else //must be IE { layerRef = ".all" styleRef = ".style" }