﻿// JScript File

    

    

            

        function Event(number) {



            this.ms_hover = function() {

                document.getElementById(number).style.color="#2244ff";

            }

        

            this.ms_leave = function() {

                document.getElementById(number).style.color="#002233";

            }

        }

 

 function amnesty_home()

		{

		window.open("http://www.amnesty.ca/");

		}



function e_postcard()

{

  window.open("http://www.amnesty.ca/quiz/seeithearit/afghanistanaction.htm");

}

		  

function donate_now()

{

    window.open("https://www.strategicprofitsinc.com/hosted/amnesty_international/");

}        



function take_quiz()

{

    document.location="seeithearit.htm";

}



function navigate_sample()

{

    window.open("http://www.amnesty.ca/updates/latest.html");    

}



function email_is_valid(email)

	 {

	 	return (email.length > 4 && email.indexOf("@") > -1 && email.indexOf(".") > -1);

	 }

    

    function navigate_go()

    {

	 	  if(email_is_valid(document.getElementById('go_email').value))

		  {

		  		window.open("db_access5.php?addtolist=Y&go_email=" + document.getElementById('go_email').value);

		  		alert("Thank you for signing up!");

		  }

		  else

		  {

		  	document.getElementById('go_email').focus();

		  	alert("Please enter valid email first");

		  }

    }



function question1()

{

	

	

	 if (!document.getElementById('pic'))

    {

        var img=document.createElement("img"); 

        img.id="pic";  

        img.src="amnesty_background_question1.jpg";

        document.body.appendChild(img);  

    }    

    else    

    {    

              

       document.getElementById('pic').src="amnesty_background_question1.jpg";

    }    

	 

	 document.getElementById('pic').onLoad=questionLoaded();

}



function questionLoaded()

{

	 if (document.getElementById('page2'))

        document.body.removeChild(document.getElementById('page2'));

		  

	 if (document.getElementById('next_question'))

        document.body.removeChild(document.getElementById('next_question'));

		 

	 if (document.getElementById('prev_question'))

        document.body.removeChild(document.getElementById('prev_question'));



    if (document.getElementById('own_words'))

        document.body.removeChild(document.getElementById('own_words'));



    if (document.getElementById('e_name'))

        document.body.removeChild(document.getElementById('e_name'));



    if (document.getElementById('e_phone'))

        document.body.removeChild(document.getElementById('e_phone'));



    if (document.getElementById('e_email'))

        document.body.removeChild(document.getElementById('e_email'));



    if (document.getElementById('checkbox1'))

        document.body.removeChild(document.getElementById('checkbox1'));

/*

    if (document.getElementById('sample'))

        document.body.removeChild(document.getElementById('sample'));



    if (document.getElementById('policy'))

        document.body.removeChild(document.getElementById('policy'));

*/

    if (document.getElementById('send'))

        document.body.removeChild(document.getElementById('send'));



    if (document.getElementById('start_quiz'))

        document.body.removeChild(document.getElementById('start_quiz'));



    if (document.getElementById('contest'))

        document.body.removeChild(document.getElementById('contest'));



    

    



//    if (document.getElementById('pic'))

  //      document.body.removeChild(document.getElementById('pic'));



    if (document.getElementById('start2'))

        document.body.removeChild(document.getElementById('start2'));



    if (document.getElementById('firstName'))

        document.body.removeChild(document.getElementById('firstName'));



    if (document.getElementById('lastName'))

        document.body.removeChild(document.getElementById('lastName'));



    if (document.getElementById('eMail'))

        document.body.removeChild(document.getElementById('eMail'));



    if (document.getElementById('phone'))

        document.body.removeChild(document.getElementById('phone'));



    if (document.getElementById('address'))

        document.body.removeChild(document.getElementById('address'));



    if (document.getElementById('city'))

        document.body.removeChild(document.getElementById('city'));



    if (document.getElementById('postalCode'))

        document.body.removeChild(document.getElementById('postalCode'));



    if (document.getElementById('friend1'))

        document.body.removeChild(document.getElementById('friend1'));



    if (document.getElementById('friend2'))

        document.body.removeChild(document.getElementById('friend2'));



    if (document.getElementById('friend3'))

        document.body.removeChild(document.getElementById('friend3'));



    if (document.getElementById('friend4'))

        document.body.removeChild(document.getElementById('friend4'));



    if (document.getElementById('friend5'))

        document.body.removeChild(document.getElementById('friend5'));



    if (document.getElementById('submit'))

        document.body.removeChild(document.getElementById('submit'));







    if (document.getElementById('start_btn'))

        document.body.removeChild(document.getElementById('start_btn'));



    if (document.getElementById('page1'))

        document.body.removeChild(document.getElementById('page1'));



    if (document.getElementById('try_again'))

        document.body.removeChild(document.getElementById('try_again'));



    if (document.getElementById('response'))

        document.body.removeChild(document.getElementById('response'));



    if (document.getElementById('answer_a'))

        document.body.removeChild(document.getElementById('answer_a'));



    if (document.getElementById('answer_b'))

        document.body.removeChild(document.getElementById('answer_b'));



    if (document.getElementById('answer_c'))

        document.body.removeChild(document.getElementById('answer_c'));

        

    if (document.getElementById('conclusion'))

        document.body.removeChild(document.getElementById('conclusion'));

        



  //  pic = new Image();

//    pic.src="amnesty_background_question1.jpg";







var newdiv=document.createElement("div");

			newdiv.id="amnesty"; 

    		newdiv.style.position="absolute";

   			newdiv.style.left=530;

			newdiv.style.top=20;

			newdiv.style.width=250;

			newdiv.style.height=50;

			newdiv.style.backgroundRepeat="no-repeat";

			newdiv.style.backgroundAttachment="fixed";

			newdiv.style.backgroundImage="url(spacer.gif)";

			newdiv.style.cursor="hand";

			newdiv.onclick=amnesty_home;

			document.body.appendChild(newdiv);

			

    var newdiv=document.createElement("div");  

    newdiv.id="seeithearit"; 

    newdiv.style.position="absolute";

    newdiv.style.left=162;

    newdiv.style.top=38;

    newdiv.style.width=151;

    newdiv.style.height=22;    

    newdiv.style.backgroundRepeat="no-repeat";

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(seeithearit_btn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=take_quiz;

    document.body.appendChild(newdiv);



      

    

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="page1";

    newdiv.style.position="Absolute";

    newdiv.style.left=450;

    newdiv.style.top=120;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("1 of 12");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv);

    

    var newdiv=document.createElement("div");  

    newdiv.id="question"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=143;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("1. Violence against women…(choose one)");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv);

	 

    

    var newdiv=document.createElement("div");  

    newdiv.id="answer_a"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=225;

    newdiv.style.width=400;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

        newdiv.style.cursor="hand";    

    var newtext=document.

        createTextNode("a. Is a natural and inevitable outcome of society.");                   

    newdiv.appendChild(newtext);    

    newdiv.onmousemove=new Event(newdiv.id).ms_hover;

    newdiv.onmouseleave=new Event(newdiv.id).ms_leave; 

    newdiv.onclick=question1_answer_a;   

    document.body.appendChild(newdiv);

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="answer_b"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=245;

    newdiv.style.width=400;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

        newdiv.style.cursor="hand";    

    var newtext=document.

        createTextNode("b. Can, at times, be justified by local culture and traditions.");                   

    newdiv.appendChild(newtext);    

    newdiv.onmousemove=new Event(newdiv.id).ms_hover;

    newdiv.onmouseleave=new Event(newdiv.id).ms_leave;    

    newdiv.onclick=question1_answer_b; 

    document.body.appendChild(newdiv);

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="answer_c"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=265;

    newdiv.style.width=400;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

        newdiv.style.cursor="hand";    

    var newtext=document.

        createTextNode("c. Is a global phenomenon.");                   

    newdiv.appendChild(newtext);    

    newdiv.onmousemove=new Event(newdiv.id).ms_hover;

    newdiv.onmouseleave=new Event(newdiv.id).ms_leave;  

    newdiv.onclick=question1_answer_c;   

    document.body.appendChild(newdiv);

    

    /*

    var newdiv=document.createElement("div");  

    newdiv.id="donate_now"; 

    newdiv.style.position="absolute";

    newdiv.style.left=40;

    newdiv.style.top=475;

    newdiv.style.width=390;

    newdiv.style.height=20;    

    newdiv.style.backgroundRepeat="no-repeat";

    //background-repeat: no-repeat

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(donate_now.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=donate_now;

    document.body.appendChild(newdiv);

	 */

	 

	 var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=40;

	newdiv.style.top=475;

	newdiv.style.width=100;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_a.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick=donate_now;

	document.body.appendChild(newdiv);

	

	

	var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=169;

	newdiv.style.top=475;

	newdiv.style.width=290;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_b.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick= e_postcard;

	document.body.appendChild(newdiv);

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="subscribe"; 

    newdiv.style.position="absolute";

    newdiv.style.left=35;

    newdiv.style.top=505;

    newdiv.style.width=450;

    newdiv.style.height=20;    

    newdiv.style.backgroundRepeat="no-repeat";

    //background-repeat: no-repeat

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(subscribe.jpg)";

    //newdiv.style.cursor="hand";

    //newdiv.onclick=donate_now;

    document.body.appendChild(newdiv);

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="subscribe"; 

    newdiv.style.position="absolute";

    newdiv.style.left=460;

    newdiv.style.top=507;

    newdiv.style.width=75;

    newdiv.style.height=20;    

    newdiv.style.backgroundRepeat="no-repeat";

    //background-repeat: no-repeat

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(SampleBtn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=navigate_sample;

    document.body.appendChild(newdiv);

	 

	 

	 

	 var go_frm = document.createElement("form");

  go_frm.id="go_form";

  go_frm.action="db_access5.php";

  go_frm.method="get";

  

  var newdiv=document.createElement("input");  

  newdiv.id="go_email";

  newdiv.name="go_email";

  newdiv.style.position="Absolute";

  newdiv.style.left=550;

  newdiv.style.top=505;

  newdiv.style.width=90;

  newdiv.style.height=11; 

  newdiv.style.fontSize="9";   

  newdiv.type="text";        

  go_frm.appendChild(newdiv);

  

  document.body.appendChild(go_frm); 

  

  var newdiv=document.createElement("div");  

  newdiv.id="go"; 

  newdiv.style.position="absolute";

  newdiv.style.left=650;

  newdiv.style.top=505;

  newdiv.style.width=75;

  newdiv.style.height=22;    

  newdiv.style.backgroundRepeat="no-repeat";

  //newdiv.style.backgroundAttachment="fixed";

  newdiv.style.backgroundImage="url(go_btn.jpg)";

  newdiv.style.cursor="hand";

  newdiv.onclick=navigate_go;

  document.body.appendChild(newdiv);

}







function question1_answer_a()

{

//    pic = new Image();

  //  pic.src="amnesty_background_question1.jpg";



/*

    if (document.getElementById('donate_now'))

        document.body.removeChild(document.getElementById('donate_now'));



    if (document.getElementById('subscribe'))

        document.body.removeChild(document.getElementById('subscribe'));

*/



//    if (document.getElementById('pic'))

  //      document.body.removeChild(document.getElementById('pic'));

	

	

	 if (!document.getElementById('pic'))

    {

        var img=document.createElement("img");   

        img.id="pic";

        img.src="amnesty_background_incorrect1.jpg";            

        document.body.appendChild(img);  

    }

    

    else

    {    

        document.getElementById('pic').src="amnesty_background_incorrect1.jpg";

    }      

	 

	 document.getElementById('pic').onLoad = answer_a_loaded();

}





function answer_a_loaded()

{

	 if (document.getElementById('try_again'))

        document.body.removeChild(document.getElementById('try_again'));



    if (document.getElementById('question'))

        document.body.removeChild(document.getElementById('question'));



    if (document.getElementById('answer_a'))

        document.body.removeChild(document.getElementById('answer_a'));



    if (document.getElementById('answer_b'))

        document.body.removeChild(document.getElementById('answer_b'));



    if (document.getElementById('answer_c'))

        document.body.removeChild(document.getElementById('answer_c'));

        

    if (document.getElementById('conclusion'))

        document.body.removeChild(document.getElementById('conclusion'));

        

    

  //  pic = new Image();

//    pic.src="amnesty_background_question1.jpg";



    

   

    

    

    if (document.getElementById('page1'))

        document.body.removeChild(document.getElementById('page1'));

        

    var newdiv=document.createElement("div");  

    newdiv.id="page1";

    newdiv.style.position="Absolute";

    newdiv.style.left=450;

    newdiv.style.top=120;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("1 of 12");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv);

    

    var newdiv=document.createElement("div");  

    newdiv.id="response"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=143;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("Sorry, this is incorrect. Violence against women is universal, but it is not inevitable. Please try again.");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv); 

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="try_again"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=370;

    newdiv.style.width=87;

    newdiv.style.height=28;    

    //newdiv.style.backgroundPosition="57 370";

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(try_again_btn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=question1;

    document.body.appendChild(newdiv);

	 

	 var newdiv=document.createElement("div");  

    newdiv.id="next_question"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=411;

    newdiv.style.top=370;

    newdiv.style.width=106;

    newdiv.style.height=26;    

    //newdiv.style.backgroundPosition="57 370";

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(next_question_btn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=question2;

    document.body.appendChild(newdiv);

    

    

    var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=40;

	newdiv.style.top=475;

	newdiv.style.width=100;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_a.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick=donate_now;

	document.body.appendChild(newdiv);

	

	

	var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=169;

	newdiv.style.top=475;

	newdiv.style.width=290;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_b.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick= e_postcard;

	document.body.appendChild(newdiv);

	 

	 /*

	 var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=169;

	newdiv.style.top=475;

	newdiv.style.width=290;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_b.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick= e_postcard;

	document.body.appendChild(newdiv);*/

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="subscribe"; 

    newdiv.style.position="absolute";

    newdiv.style.left=35;

    newdiv.style.top=505;

    newdiv.style.width=450;

    newdiv.style.height=20;    

    newdiv.style.backgroundRepeat="no-repeat";

    //background-repeat: no-repeat

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(subscribe.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=donate_now;

    document.body.appendChild(newdiv);

}



function question1_answer_b()

{



/*

    if (document.getElementById('donate_now'))

        document.body.removeChild(document.getElementById('donate_now'));



    if (document.getElementById('subscribe'))

        document.body.removeChild(document.getElementById('subscribe'));

*/

	if (!document.getElementById('pic'))

    {

        var img=document.createElement("img");   

        img.id="pic";

        img.src="amnesty_background_incorrect1.jpg";            

        document.body.appendChild(img);  

    }

    else

    {    

        document.getElementById('pic').src="amnesty_background_incorrect1.jpg";

    }     

	 

	  document.getElementById('pic').onLoad = answer_b_loaded();

}



function answer_b_loaded()

{

	 if (document.getElementById('try_again'))

        document.body.removeChild(document.getElementById('try_again'));



    if (document.getElementById('question'))

        document.body.removeChild(document.getElementById('question'));



    if (document.getElementById('answer_a'))

        document.body.removeChild(document.getElementById('answer_a'));



    if (document.getElementById('answer_b'))

        document.body.removeChild(document.getElementById('answer_b'));



    if (document.getElementById('answer_c'))

        document.body.removeChild(document.getElementById('answer_c'));

        

    if (document.getElementById('conclusion'))

        document.body.removeChild(document.getElementById('conclusion'));

        

    

    

    

    if (document.getElementById('page1'))

        document.body.removeChild(document.getElementById('page1'));

        

    var newdiv=document.createElement("div"); 

    newdiv.id="page1"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=450;

    newdiv.style.top=120;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("1 of 12");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv);

    

    var newdiv=document.createElement("div");  

    newdiv.id="response"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=143;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("Sorry, this is incorrect. Despite what some governments may assert, violence against women is never acceptable, whatever justification offered.");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv); 

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="try_again"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=370;

    newdiv.style.width=87;

    newdiv.style.height=28;    

    //newdiv.style.backgroundPosition="57 370";

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(try_again_btn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=question1;

    document.body.appendChild(newdiv);

	 

	 var newdiv=document.createElement("div");  

    newdiv.id="next_question"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=411;

    newdiv.style.top=370;

    newdiv.style.width=106;

    newdiv.style.height=26;    

    //newdiv.style.backgroundPosition="57 370";

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(next_question_btn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=question2;

    document.body.appendChild(newdiv);

	 

	 

    

    var newdiv=document.createElement("div");  

    newdiv.id="donate_now"; 

    newdiv.style.position="absolute";

    newdiv.style.left=40;

    newdiv.style.top=475;

    newdiv.style.width=390;

    newdiv.style.height=20;    

    newdiv.style.backgroundRepeat="no-repeat";

    //background-repeat: no-repeat

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(donate_now.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=donate_now;

    document.body.appendChild(newdiv);

	 

	 var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=169;

	newdiv.style.top=475;

	newdiv.style.width=290;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_b.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick= e_postcard;

	document.body.appendChild(newdiv);

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="subscribe"; 

    newdiv.style.position="absolute";

    newdiv.style.left=35;

    newdiv.style.top=505;

    newdiv.style.width=450;

    newdiv.style.height=20;    

    newdiv.style.backgroundRepeat="no-repeat";

    //background-repeat: no-repeat

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(subscribe.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=donate_now;

    document.body.appendChild(newdiv);

}





function question1_answer_c()

{



/*

    if (document.getElementById('donate_now'))

        document.body.removeChild(document.getElementById('donate_now'));



    if (document.getElementById('subscribe'))

        document.body.removeChild(document.getElementById('subscribe'));

*/

	if (!document.getElementById('pic'))

    {

        var img=document.createElement("img");   

        img.id="pic";

        img.src="amnesty_background_correct1.jpg";            

        document.body.appendChild(img);  

    }

    else

    {    

        document.getElementById('pic').src="amnesty_background_correct1.jpg";

    }

	 

	 document.getElementById('pic').onLoad = answer_c_loaded();

}



function answer_c_loaded()

{

	if (document.getElementById('try_again'))

        document.body.removeChild(document.getElementById('try_again'));



    if (document.getElementById('question'))

        document.body.removeChild(document.getElementById('question'));



    if (document.getElementById('answer_a'))

        document.body.removeChild(document.getElementById('answer_a'));



    if (document.getElementById('answer_b'))

        document.body.removeChild(document.getElementById('answer_b'));



    if (document.getElementById('answer_c'))

        document.body.removeChild(document.getElementById('answer_c'));



    if (document.getElementById('conclusion'))

        document.body.removeChild(document.getElementById('conclusion'));

        

        

    

    

    

    if (document.getElementById('page1'))

        document.body.removeChild(document.getElementById('page1'));

        

    var newdiv=document.createElement("div"); 

    newdiv.id="page1"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=450;

    newdiv.style.top=120;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("1 of 12");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv);

    

    var newdiv=document.createElement("div");  

    newdiv.id="response"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=143;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("Correct, this is the right answer!");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv); 

    

    var newdiv=document.createElement("div");  

    newdiv.id="conclusion"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=57;

    newdiv.style.top=175;

    newdiv.style.width=300;

    newdiv.style.height=20;    

    newdiv.style.color='#002233';

    newdiv.style.fontSize="11pt";    

    var newtext=document.

        createTextNode("Violence against women is prevalent in every society in the world and cuts across boundaries of wealth, race and culture. The experience or threat of violence inhibits women everywhere from fully exercising and enjoying their human rights. For that reason, Amnesty International is joining women throughout the world to expose and counter violence against women.");        

    newdiv.appendChild(newtext);

    document.body.appendChild(newdiv); 

    

    

    var newdiv=document.createElement("div");  

    newdiv.id="try_again"; 

    newdiv.style.position="Absolute";

    newdiv.style.left=411;

    newdiv.style.top=370;

    newdiv.style.width=106;

    newdiv.style.height=26;    

    //newdiv.style.backgroundPosition="57 370";

    newdiv.style.backgroundAttachment="fixed";

    newdiv.style.backgroundImage="url(next_question_btn.jpg)";

    newdiv.style.cursor="hand";

    newdiv.onclick=question2;

    document.body.appendChild(newdiv);

    

    if (!document.getElementById('donate_now'))

    {    

        var newdiv=document.createElement("div");  

        newdiv.id="donate_now"; 

        newdiv.style.position="absolute";

        newdiv.style.left=40;

        newdiv.style.top=475;

        newdiv.style.width=390;

        newdiv.style.height=20;    

        newdiv.style.backgroundRepeat="no-repeat";

        //background-repeat: no-repeat

        newdiv.style.backgroundAttachment="fixed";

        newdiv.style.backgroundImage="url(donate_now.jpg)";

        newdiv.style.cursor="hand";

        newdiv.onclick=donate_now;

        document.body.appendChild(newdiv);

		  

		  var newdiv=document.createElement("div");  

	newdiv.id="donate_now"; 

	newdiv.style.position="absolute";

	newdiv.style.left=169;

	newdiv.style.top=475;

	newdiv.style.width=290;

	newdiv.style.height=20;    

	newdiv.style.backgroundRepeat="no-repeat";

	newdiv.style.backgroundAttachment="fixed";

	newdiv.style.backgroundImage="url(donate_now_b.jpg)";

	newdiv.style.cursor="hand";

	newdiv.onclick= e_postcard;

	document.body.appendChild(newdiv);

    }

    

    if (!document.getElementById('subscribe'))

    {

        var newdiv=document.createElement("div");  

        newdiv.id="subscribe"; 

        newdiv.style.position="absolute";

        newdiv.style.left=35;

        newdiv.style.top=505;

        newdiv.style.width=450;

        newdiv.style.height=20;    

        newdiv.style.backgroundRepeat="no-repeat";

        //background-repeat: no-repeat

        newdiv.style.backgroundAttachment="fixed";

        newdiv.style.backgroundImage="url(subscribe.jpg)";

        newdiv.style.cursor="hand";

        newdiv.onclick=donate_now;

        document.body.appendChild(newdiv);

    }

}


