window.onload = prepareLinks;
function prepareLinks() 
{
  if (!document.getElementsByTagName) return false;
  var lnks = document.getElementsByTagName("a");
  for (var i=0; i<lnks.length; i++)
  {
    if (lnks[i].getAttribute("className")=="pryr")  // IE recognizes className.
    {
      lnks[i].onclick=function()
      {     
        showPrayer(this.getAttribute("href"));
        return false;
      }
    }  
    else if (lnks[i].getAttribute("class")=="pryr") // Firefox recognizes class.
    {
      lnks[i].onclick=function()
      {   
        showPrayer(this.getAttribute("href"));
        return false;
      } 
    }
  }
}

function showPrayer(winURL)
{
  // alert ("Running Function");
  var windowProperties = "width=400,height=525,scrollbars=yes,alwaysRaised=yes,dependent=yes,z-lock=yes";
  var newWindow = open(winURL,"Prayer",windowProperties);
  // window.open(winURL,"Prayer","width=400,height=525,scrollbars=yes,alwaysRaised=yes,dependent=yes,z-lock=yes");
  newWindow.focus();
  return false;
}