//This object should only contain methods used on section pages. - GM
SectionPage = function(){
 }
 
 SectionPage.prototype.blockImageBorder = function(id,width,height,color){
   var id = id || null;
   var width = width || null;
   var height = height || null;
   var color = color || 'white';
   var styleObj;
   if( id != null && width != null && height != null){ 
      if(document.all){
         styleObj = document.all[id].style;
         if(typeof(styleObj) == "object"){
            styleObj.width = width + "px";
            styleObj.height =  height + "px";
            styleObj.visibility = "visible";
            styleObj.borderColor = color;
         }  
       } else if(document.getElementById){
         // Gecko browsers do not include borders in block element dimensions.
         styleObj = document.getElementById(id).style;
         if(typeof(styleObj) == "object"){
            styleObj.width = (width - 2) + "px";
            styleObj.height = (height - 2) + "px";
            styleObj.visibility = "visible";
            styleObj.borderColor = color;
         }
      }
   }
}      

var Section = new SectionPage;

