function getBrowserWidth()
{
         var x;
         if (self.innerHeight) // all except Explorer
         {
	    x = self.innerWidth;
         }
         else if (document.documentElement && document.documentElement.clientHeight)
	 // Explorer 6 Strict Mode
        {
       	    x = document.documentElement.clientWidth;
        }
        else if (document.body) // other Explorers
        {
	     x = document.body.clientWidth;
        }
        return (x);
}

function getBrowserHeight()
{
         var y;
         if (self.innerHeight) // all except Explorer
         {
	    y = self.innerHeight;
         }
         else if (document.documentElement && document.documentElement.clientHeight)
	 // Explorer 6 Strict Mode
        {
	    y = document.documentElement.clientHeight;
        }
        else if (document.body) // other Explorers
        {
	     y = document.body.clientHeight;
        }
        return (y);
}

// setStyleById: given an element id, style property and
// value, apply the style.
// args:
//  i - element id
//  p - property
//  v - value
//
function setStyleById(i, p, v) {
        //alert('Settingit');
        var n = document.getElementById(i);
	n.style[p] = v;
}
