
function openForm()
{
window.open("http://www.srn.ca/form/form.asp","blank","toolbar=no,location=no,menubar=no,scrollbars=yes,width=450,height=500");
}

function whichUser()
{
  var doc_location = window.location.href;
  var current_location = doc_location+"";
  if(current_location.indexOf("people_with_disabilities_caregivers")!=-1)
  {
    the_cell = document.getElementById(0);
    the_cell.style.backgroundColor = "white";
    the_cell.style.fontStyle= "italic";
   
  }else
  if(current_location.indexOf("donors_volunteers")!=-1)
  {
    the_cell = document.getElementById(1);

    the_cell.style.backgroundColor = "white";
    the_cell.style.fontStyle= "italic";
  }else
  if(current_location.indexOf("corporate_rehab")!=-1)
  {
    the_cell = document.getElementById(2);

    the_cell.style.backgroundColor = "white";
    the_cell.style.fontStyle= "italic";
  }else
  if(current_location.indexOf("national_programs")!=-1)
  {
    the_cell = document.getElementById(3);

    the_cell.style.backgroundColor = "white";
    the_cell.style.fontStyle= "italic";
  }
}
 //people_with_disabilities_and_caregivers;
 //donors_volunteers;
 //corporate_rehab;
 //national_programs
  //
 // the_cell.borderColor="red";
  
function alternateTableCell(id1,id2,id3)
{
  if (document.getElementsByTagName)
  {
    if(document.getElementById(id1)!=null)
    {
    
      var table = document.getElementById(id1);
      var rows = table.getElementsByTagName("tr");
    
      for(i=0;i<rows.length;i++)
      {
        //manipulate rows
        if(i%2==0)
        {
          rows[i].className = "even";
        }else
         {
           rows[i].className = "odd";
         }
      
       }
     }
     
    if(document.getElementById(id2)!=null)
    {
    
      var table = document.getElementById(id2);
      var rows = table.getElementsByTagName("tr");
    
      for(i=0;i<rows.length;i++)
      {
        //manipulate rows
        if(i%2==0)
        {
          rows[i].className = "even";
        }else
         {
           rows[i].className = "odd";
         }
      
       }
     }
     
         if(document.getElementById(id3)!=null)
    {
    
      var table = document.getElementById(id3);
      var rows = table.getElementsByTagName("tr");
    
      for(i=0;i<rows.length;i++)
      {
        //manipulate rows
        if(i%2==0)
        {
          rows[i].className = "even";
        }else
         {
           rows[i].className = "odd";
         }
      
       }
     }
     
  }

}


  function doClick(buttonName,e)
  {
  
    var key;
    
    if(window.event)
      key = window.event.keyCode;
     else
       key = e.which;
       
       if(key==13)
       {
         var btn = document.getElementById(buttonName);
         if(btn != null)
         {
           btn.click();
           event.keyCode = 0;
           
         }
       }
  
  }


