﻿function OnlyOne(chk)
{
  var otherId;
  var thisId;
  var commonPart;
 
  if(chk.checked)
  {
    // only do something if this is checked
    // now see if this is the approved or reject button
    thisId = chk.id;
    if(thisId.indexOf("Approve") > 0)
    {
      // this is the approve button
      otherId = thisId.substr(0,thisId.indexOf("Approve"));
      otherId = otherId + "Reject";
    }
    else
    {
      // this is the reject button
      otherId = thisId.substr(0,thisId.indexOf("Reject"));
      otherId = otherId + "Approve";
    }
    document.getElementById(otherId).checked = false;
  }
}

function LoginStartup()
{
  //window.resizeTo(screen.availWidth,screen.availHeight);
  //var div;
  //div =  document.getElementById("Footer");
  //div.style.top = screen.availHeight - 200;
  
  //div =  document.getElementById("Placeholder");
  //div.style.height = screen.availHeight - 300;
}
