// reference to the popup window handle for testimonies
var testimonyWindow;
//-------------------------graceChangTestimony BEGINS---------------------------
/**
*Testimony of Grace Chang
*/
function graceChangTestimony(){
    winText = "<h3 align='center'>Testimony of Pastor Grace Chang</h3>"
    winText += "<p>Janet O'Leary helped our church to"
    winText += " set up Achieving Children, an after school homework program,"
    winText += " and a Saturday morning children's club. She recruited" 
    winText +=" volunteers, taught children and planned outreach events" 
    winText +=" and special outings.</p>"
    winText +="<p>Janet loves children and has a" 
    winText +=" strong desire to reach out to them and disciple them.</p>" 
    return winText
}//end of graceChangTestimony
//------------------------------graceChangTestimony ENDS------------------------

//-------------------------janiceEldertonTestimony BEGINS---------------------------
/**
*Testimony of Janice Elderton
*/
function janiceEldertonTestimony(){
    winText = "<h3 align='center'>Testimony of Janice Elderton</h3>"
    winText +="<p>I have worked alongside Janet in our children's ministry at Granville Chapel.  "
    winText += "I can observe that Janet has a sincere and deep love for God and that she seeks "
    winText += "to impart that love to children. She has a winsome and creative way to tell the "
    winText += "Bible stories that draws the children in and imparts biblical truth in a fun and "
    winText += "thought provoking way.</p>"
    return winText
}//end of janiceEldertonTestimony
//------------------------------janiceEldertonTestimony ENDS------------------------


//-------------------------joyceLitaniTestimony BEGINS---------------------------
/**
* Testimony of Joyce Litani
*/
function joyceLitaniTestimony(){
    winText = "<h3 align='center'>Testimony of Joyce Litani</h3>"
    winText += "I have been working with Janet at Christ Church of China for several years "
    winText += " and I have been blessed as I witnessed her love and commitment for the "
    winText += "children to know the Lord.  Her creativity and use of interesting teaching "
    winText += "tools have really got me listening closely too! Janet really knows how to "
    winText += "make learning interesting!"
    return winText
}//end of joyceLitaniTestimony
//------------------------------joyceLitaniTestimony ENDS------------------------


//-------------------------lynnChanTestimony BEGINS---------------------------
/**
* Testimony of Lynn Chan
*/
function lynnChanTestimony(){
    winText = "<h3>Testimony of Lynn Chan</h3>" +
     "<p>It's been a huge blessing to have you lead " + 
     "our children's program this summer. It's been such a pleasure working " +
     "with you. I've learned a lot from you by observing your devotion and love for " +
     "the children. You made my day!I am sure each of the children have been " +
     "touched in a special way by you and that Jesus is pleased!</p>" +
     "<p>Continue to do good work for Him and toil on for the sake of His Kingdom!";
    return winText
}//end of lynnChanTestimony
//------------------------------lynnChanTestimony ENDS------------------------


//-------------------------pastorJoeTestimony BEGINS---------------------------
/**
*Testimony of Pastor Joe
*/
function pastorJoeTestimony(){
    winText ="<h3 align='center'>Testimony of Pastor Joe Russell</h3>"
    winText +="<p>God has given Janet such a"
    winText +=" heart to see children reached with the Gospel"
    winText +=" and deeply discipled. </p>"
	winText +="<p>Janet has carried out this precious work"
    winText +=" of God's through Canadian Sunday School Mission and then"
    winText +=" through New Beginnings Baptist Church - one of God's churches"
    winText +=" in Vancouver's inner city.</p>"
	winText +=" <p>Because of her Christ-like character,"
    winText +=" her gifting from God, and her long experience in children's"
    winText +=" ministry I highly recommend Janet as a teacher to raise up"
    winText += " children's teachers.</p>"
	return winText
}//end of pastorJoeTestimony
//------------------------------pastorJoeTestimony ENDS------------------------

function testimony(testifier)
{
    if(!testimonyWindow || testimonyWindow.closed)
    {
    testimonyWindow=window.open("","testimony","height=300, width=350")
    winText="<html><head><title>Testimony</title></head>"
	winText += "<body style='background-color: #ffffff;'>"
	winText ="<link rel='stylesheet' type='text/css' href='equipper.css' />"
    winText += "<div class='normal12' align='center'>";
   // call the testimony function for this particular testimony
    winText += eval(testifier + "Testimony()")	
    if(navigator.appName == "Microsoft Internet Explorer")
    {
        winText += "<br /><br /><a href='testimonies.php'  target='main' onclick='window.close()'>More testimonies</a>"
	}// only do this for IE
    winText +="<form><input type='button' value='Close'"
    winText +="' onclick='window.close()' /></form></div>"
	winText +="</td></tr></table></body></html>"
    testimonyWindow.document.write(winText)
    testimonyWindow.document.close()
    }
        else
    {
      testimonyWindow.close()
	  testimony(testifier)
    }
}// end testimony

