var IE;
function hideAll()
{
	for(i=1; i< 26; i++)
	{
		if(document.getElementById("q"+i) != null)
		{
			setIdProperty("q"+i, "display", "none");
		}
	}
}
function getUA()
{
	 if (navigator.appName.indexOf("Explorer") >= 0)
	 {
	     IE = true;
	 }
}
function setInnerHtml(id, text) 
{
	if (IE == false)
	{
		document.getElementById(id).innerHTML = text;
		return;
	}
 	document.all[id].innerHTML = text;
}
function showHide( subNum )
{	
	//alert( document.all[subNum].style["display"] );
	if(getIdProperty(  subNum, "display") == null || getIdProperty(subNum, "display") == "")
	{
		setIdProperty(subNum, "display", "block");
		return;
	}
	if (getIdProperty(  subNum, "display") == "block" )
    {
        setIdProperty( subNum, "display", "none");
		return;
    }
	
    setIdProperty( subNum, "display", "block");
    return;
}

function getIdProperty( id, property )
{
	var styleObject = document.getElementById( id );
    if (IE == false)
    {
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            if (styleObject[property] != null)
            {
                return styleObject[ property ];
            }
			return null;
        }
        styleObject = getStyleBySelector( "#" + id );
        return (styleObject != null) ? styleObject[property] : null;
    }
    return document.all[id].style[property];
}
function setIdProperty( id, property, value )
{
    if (!IE)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
			return;
        }
    }
    document.all[id].style[property] = value;
}


