function ShowOrHide(thisone, color_when_link, color_when_showing) {

if(document.getElementById(thisone).style.display =='none'){
 // show
document.getElementById(thisone).style.display = '';
document.getElementById(thisone+"_link").style.textDecoration='none';
document.getElementById(thisone+"_link").style.color= color_when_showing;
}else{
// hide
document.getElementById(thisone).style.display = 'none';
document.getElementById(thisone+"_link").style.textDecoration='underline';
document.getElementById(thisone+"_link").style.color=color_when_link;
}
  }
  
  
 function ShowOrHideQuestion(thisone, question_id, color_when_link, color_when_showing) {

if(document.getElementById(thisone+question_id).style.display =='none'){
	 // show
	document.getElementById(thisone+question_id).style.display = '';
//	document.getElementById(thisone+"_link"+question_id).style.textDecoration='none';
	document.getElementById(thisone+"_link"+question_id).style.textDecoration='underline';

	document.getElementById(thisone+"_link"+question_id).style.color= color_when_showing;
	
	document.getElementById(thisone+"_link"+question_id).innerHTML="hide more";   
	
	//change text to hide more again

}else{
	// hide
	document.getElementById(thisone+question_id).style.display = 'none';
	document.getElementById(thisone+"_link"+question_id).style.textDecoration='underline';
	document.getElementById(thisone+"_link"+question_id).style.color=color_when_link;
	
	document.getElementById(thisone+"_link"+question_id).innerHTML="show more";   

	//change text to more again
}
  }
  
  
  
  function ShowOrHideString(thisone, color_when_link, color_when_showing, hide_string, show_string) {

if(document.getElementById(thisone).style.display =='none'){
 // show
document.getElementById(thisone).style.display = '';
document.getElementById(thisone+"_link").style.textDecoration='underline';
document.getElementById(thisone+"_link").style.color= color_when_showing;
document.getElementById(thisone+"_link").innerHTML=hide_string;
}else{
// hide
document.getElementById(thisone).style.display = 'none';
document.getElementById(thisone+"_link").style.textDecoration='underline';
document.getElementById(thisone+"_link").style.color=color_when_link;
document.getElementById(thisone+"_link").innerHTML=show_string;
}
  }
  
function ShowOrHideNoTextLink(thisone, link_num) {
	//alert('the num'+link_num);
if(document.getElementById(thisone+link_num).style.display =='none'){
 // show
document.getElementById(thisone+link_num).style.display = '';
}else{
// hide
document.getElementById(thisone+link_num).style.display = 'none';
}
  }
  
  
  
function ShowOrHideNoTextLinkSetAnswerID(thisone, link_num, answer_id) {
	//shows or hides the fields for birthday and gender in before voting
	//alert('the num'+link_num)

document.getElementById('answer_num'+link_num).value=answer_id;

if(document.getElementById(thisone+link_num).style.display =='none'){
 // show
document.getElementById(thisone+link_num).style.display = '';
document.getElementById('vote_answers_div'+link_num).style.display = 'none';
}
/*else{
// hide
document.getElementById(thisone+link_num).style.display = 'none';
}*/
}