////////////////////////////////////////////////////////////////////////////////
// W3C XHTML 1.0 standard doesn't allow the use of target="_blank" in <a> tag; hence 
// the code to deal with the situation - use window.open instead.
function dealHREF(){
  var links = document.getElementsByTagName('a');
  for(var i=0 ; i< links.length; i++)
  {
     if(links[i].className == 'new-window') 
     {
        links[i].onclick = function() {
           window.open(this.href);
           return false;
        };
     }
  }
}

function chooseText(selection)
{
  var str = "";
  switch(selection) {
     case "text1" : str = "<p>&quot;I have been utilitzing Dr. Birkman's assessment lifework in my strategic advisory/career development practice for some 19 years now. And while I hold other professional certifications, nothing has ever matched the insight, the sensitivity or the elegance that his &quot;Birkman Method&quot; offers both the practitioner and the fortunate recipient.&quot;<br><br>- Ronald S. Ross, President<br>American College of<br>Complementary Education (ACCE)</p><br><br>"; break;
     case "text2" : str = "<p>&quot;In my experience, Birkman has developed the most reliable and practical assessment tool available to applied behavioral science today. The Birkman Method<sup>&reg;</sup> has helped me to separate the behaviors that are based on constructs that won't change and those that will. In fact, I will not take a coaching assignment if I cannot use Birkman in the process.&quot;<br><br>- Robert T. DeFilippis<br>Author of You, Yourself and the 21st Century: Coaching Yourself and Others in Postmodern Times<br>Featuring The Birkman Method<sup>&reg;</sup></p><br><br>"; break;
     case "text3" : str = "<p>&quot;Pay for itself? I should say so! Using the power of The Method<sup>&reg;</sup> we were able to help one of our clients save over three million dollars a year by reducing their new-hire turnover rate from 97% to 38% in just eighteen months. The rate continues to drop (it is now 34%), and with additional research I'm confident we'll ultimately get it down to around 25% or better.&quot;<br><br>- Lynn Greene, Member<br>Performance Enhancement Group, Ltd.</p><br><br>"; break;
     case "text4" : str = "<p>&quot;We are very proud of our growth and national standing with the other 'Hot Growth Companies'. However, we feel that a great deal of Serv-Tech's success has come from the careful selection of its people, i.e. the advice, education and assistance of Birkman.&quot<br><br>- Richard W. Krajicek, President<br>Serv-Tech, Inc.</p><br><br>"; break;
     case "text5" : str = "<p>&quot;The Birkman assessment is a multi-faceted instrument that provides me with insights into organizational, team and individual capabilities. It is a powerful tool that can disarm defensiveness and open the gateway to learning.&quot;<br><br>- Esther Powers, Ph.D.<br>E. Powers & Associates, Inc.</p><br><br>"; break;
     case "text6" : str = "<p>&quot;As a tenured executive, I have seen quite a number of behavioral and personality assessments. The difference here is that when I saw my Birkman, I took it home to my wife and said, 'If you really want to know me, read this.'&quot;<br><br>- John Rosso, President<br>Brown Fintube Industries (Koch International)</p><br><br>"; break;
     case "text7" : str = "<p>&quot;In my opinion, The Birkman Method<sup>&reg;</sup> is the most powerful non-clinical interpersonal assessment available today.&quot<br><br>- Larry G. Lee, EDD</p><br><br>"; break;
   
  }

  return (str);
}


function swapText()
{
  dealHREF();
  if(document.getElementById)
  {
     var theID = document.getElementById("homeQuotes");
     if(theID)
     {
       var theNum = "text" + rnd(7);
       var theText = chooseText(theNum);
       theID.innerHTML = theText;
     }
  } 

  return true;
}

function rnd(n)
{
  return Math.floor(Math.random() * n) + 1;
}
