function popUp(url, height, width, winname){

  if(height==null || height=='')

    height = 500;

  if(width==null || width=='')

    width = 650;

  if(winname==null || winname=='')

    winname = "win";

  window.open(url,winname,"toolbar=yes,status=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width="+width+",height=" + height);

}

// Checks for enter key being pressed and fires the click event for the specified button


function clickOnEnter(buttonID)
{
  if (((document.all)?window.event.keyCode:event.which) == 13)
  {
    document.getElementById(buttonID).click(); 
    return false;
  }
  else
  {
    return true;
  }
}

// Clears a textbox of any default "accessibility" text on focus - this function is now depracated in favour of clear default
function clearText(textBoxID,defaultVal){
  if (document.getElementById(textBoxID).value == defaultVal) document.getElementById(textBoxID).value = '';
}

