if(!document.getElementById) 
{
	document.getElementById()=new function (eid){return document.all[eid];}
}

function open_window(newLoc, newWidth, newHeight) 
{
	if(!newWidth)
		var newWidth = 600;
	if(!newHeight)
		var newHeight = 400;
	

  	newWin = window.open(newLoc, "newWindow", "toolbar=no, location=no, directories=no, menubar=no, scrollbars=yes, resizable=yes, status=no, top=40, left=20, height=" + newHeight + ", width="+ newWidth);
    newWin.window.focus();
}

function windowOpen(newLoc, width, height, resizable, scrollbars)  {
  if (!width)  
    width = 750;
  if (!height)  
    height = 500;
  if (!resizable)  
    resizable = 'no';
  if (!scrollbars)  
    scrollbars = 'no';
  if (!newLoc)
    newLoc = "about:blank";

  var params = 'toolbar=no, location=no, directories=no, menubar=no, scrollbars=' + scrollbars + ', resizable=' + resizable + ', status=no, top=20, left=60, height=' + height + ', width='+ width;
  
  newWin = window.open(newLoc, 'newWin', params);
  newWin.window.focus();
}

function checkUncheckCheckbox(formObj, status)  {
  for (i = 0; i < formObj.length; i++)  {
    if (formObj[i].type == 'checkbox')  {
      formObj[i].checked = status;
    }
  }
}

function Go(url)  {
  if (url)  {
    window.location.href = url;
  }
}

function resizeUnderSubMenuImage()  {
  if (document.getElementById('underSubMenuImage') && document.getElementById('subMenuDiv'))  {
    oUnderSubMenuImage = document.getElementById('underSubMenuImage');
    oSubMenuDiv        = document.getElementById('subMenuDiv');
  }

  oUnderSubMenuImage.width  = oSubMenuDiv.offsetWidth;
  oUnderSubMenuImage.height = oSubMenuDiv.offsetHeight;
}