prev_id = '';
function toggleVisibility(id){
	text = document.getElementById(id);
	if(text.style.display == 'none'){
		text.style.display = ''
		if(prev_id != ''){
			prew_text = document.getElementById(prev_id);
			prew_text.style.display = 'none'
		}
		prev_id = id;
	}else{
		text.style.display = 'none'
		prev_id = '';
	}
}

function get(n){
  a=window.location.toString();
  a="&"+a.substring(a.indexOf("?")+1);
  p=a.indexOf("&"+n+"=");
  a=p==-1?'':a.substring(p+n.length+2);
  return a.indexOf("&")>=0?a.substring(0,a.indexOf("&")):a;
}
