function getRef(myForm,myAction,myTarget)
{
  document[myForm].action = myAction;
  document[myForm].target = myTarget;	
  document[myForm].submit();			
  return true;
}

function go()
{
    document.goform.submit();
}

function checkall(myCbox,myform)
{
inputs = myform.getElementsByTagName('input');
var checkboxes = new Array();
for (i = 0; i < inputs.length; i++)
{
  if (!inputs[i].length)
  {
    if (inputs[i].type == 'checkbox')
      checkboxes[checkboxes.length] = inputs[i];
  } else
  {
    for(k = 0; k < inputs[i].length; k++)
    {
      if (inputs[i][k].type == 'checkbox')
        checkboxes[checkboxes.length] = inputs[i];
    }
  }
}
for (i = 0; i < checkboxes.length; i++)
   checkboxes[i].checked = myCbox.value;
}

function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=350,left = 340,top = 312');");
}

function popUpImage(xURL, xWIDTH, xHEIGHT) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(xURL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + xWIDTH + ",height=" + xHEIGHT + ",left = 340,top = 312');");
}

function popUpDoc(xURL, xWIDTH, xHEIGHT) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(xURL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + xWIDTH + ",height=" + xHEIGHT + ",left = 340,top = 312');");
}
