function chng(pic_location,pic)
{
alert(pic_location)	
document[pic_location].src=pic
}


function chng_div_Home(new_one)
{		
	document.getElementById(last_div).style.display = "none";
	document.getElementById(new_one).style.display = "block";	
	last_div=new_one
}

function hide_div(ans,qst)
{		
	document.getElementById(ans).style.display = "none";
	document.getElementById(qst).style.display = "block";		
}

var last_div='homei'
var last_question='homei'

function chng_div(new_one, Question)
{		
	document.getElementById(last_div).style.display = "none";
	document.getElementById(Question).style.display = "none";
	document.getElementById(new_one).style.display = "block";	
	document.getElementById(last_question).style.display = "block";		
	last_div=new_one
	last_question=Question
}



 function hideDivs()
  {
    var divs = document.getElementsByTagName("div");
    for(var i=0; i < divs.length; i++)
    {
		
      var div = divs[i];
      var id = div.id;
	  str=id.indexOf("answer");
	 // alert(str)
      if ((str == 0))
      {
        div.style.display = "none";	
      }
	   if ((str == -1))
      {
        div.style.display = "block";	
      }
    }
	ShowAll.style.display = "block";
	  HideAll.style.display = "none";
  }


function showDivs()
  {
    var divs = document.getElementsByTagName("div");
    for(var i=0; i < divs.length; i++)
    {
      var div = divs[i];
      var id = div.id;
	  str=id.indexOf("question");
      if ((str == -1))
      {
        div.style.display = "block";
      }
	  if ((str == 0))
      {
        div.style.display = "none";
      }
    }
	 ShowAll.style.display = "none";
	  HideAll.style.display = "block";
  }
  
function color_link(color)
{
main2.style.color=color
}

