function ge(sId)
{
  return document.getElementById(sId);
}

function clearInputField(sId, sDefaultText)
{
  oElement = ge(sId);
  if(oElement.value == sDefaultText)
  {
    oElement.value = '';
  }
}


/*
    Probably the most un-exciting tab javascript ever.
 */
function changeTab(tab1, tab2)
{
    
    tab1 = document.getElementById(tab1);
    tab2 = document.getElementById(tab2);
    
    tabContainer1 = document.getElementById(tab1.id + 'Container');
    tabContainer2 = document.getElementById(tab2.id + 'Container');
    
    
    /* Change the tab class. */
    tab1.className = 'current';
    tab2.className = '';
    
    /* Change the display. */
    tabContainer1.style.display = 'block';
    tabContainer2.style.display = 'none';
}