﻿/* Last published: 06 Jan 2011 01:02 */
/*
This script hides any element with a given classname in IE. It is particulary useful
as a  work-around for the select element z-index bug.
this fix calls the getElementsByClass function created in domHelp.js
it toggles visibility of all elements of a particular class, but only in IE.
To use the script give all the elements that need hiding a class (e.g. class = "togvis") and then wirte:
var myObject= new togObj(CSSclass);
Where ‘CSSclass’ is the name you have given to your class (eg ‘togvis’)
You can then hide and show the objects in IE by:
myObject.hideIE() and myObject.showIE()
*/

function togObj(theClass){
    var el = getElements(theClass);
    this.showIE = function(){ 
        if(document.all){    
            for ( i=0;i<el.length;i++ ) {
                el[i].style.visibility="visible";
                }
            }
        }
    this.hideIE = function(){ 
        if(document.all){
            for ( i=0;i<el.length;i++ ) {
                el[i].style.visibility="hidden";
                }
            }
        }
}
