function agGetElementById(id) {
  return document.getElementById(id);
}

function agSetElementStyle(obj,style,value) {
  eval("obj.style."+style+"='"+value+"';");
}

function agGetAttribute(obj,name) {
  return obj.getAttribute(name);
}

/**
  Opens a new window of set width and height.  If the new window has a global javascript variable of opener, then it is set to a reference of the calling window.
*/
function agOpenWindow (url, pointer, name, parms) {

    var aPointer;
    
    if(pointer) aPointer = pointer; 
    if(!parms) parms="SCROLLBARS=YES,RESIZABLE=YES,WIDTH=600,HEIGHT=400";
    if(!name) name="_blank";
    aPointer = open (url, name, parms);
    if (aPointer.opener) aPointer.opener = self;
    aPointer.focus ();
}

