function popUp( URL,name,w,h )
{
    attributes = 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width='+w+',height='+h+',left=0,top=0';
    win = window.open(URL,name,attributes);
    win.focus();
}

function toggle( id )
{
    var theElem = document.getElementById(id);

    if(theElem.style.display == 'none' )
    {
        theElem.style.display = 'block';
    } else
    {
        theElem.style.display = 'none';
    }
}

function doSwitch (obj) 
{
	while ((obj != null) && (obj.nodeName == "#text")) 
	{
		obj = obj.nextSibling;
	}
	if (obj != null) 
	{
		if (obj.style.display != "none") 
		{
			obj.style.display="none";
		} 
		else 
		{
			obj.style.display="";
		}
	}
}