			var flag = false;
			function closeIt(closeID){
			new Effect.SlideUp('answers',{duration:0.5});
			document.getElementById('summary_report_link2').innerHTML = 'Your previous answers';
			flag = false;
							
			}

function switcher(linkID,openID){
			//this function is baffering value of visible block and closes any visibe block at the moment of 
			// a setting the new one to be visibe 
				 		 
				 if (flag == false){
					 document.getElementById(linkID).style.backgroundImage = 'url("images/up.gif")';
					 Effect.SlideDown(openID,{duration:0.5});
					 new Effect.Opacity('results', { from: 1, to: 0.1 });
					document.getElementById('results').style.zIndex = 0;
					 document.getElementById('linkID').innerHTML = 'Hide Summary Report';
					 flag = true;
					 return;
				}
				
				if (flag == true){
					 document.getElementById(linkID).style.backgroundImage = 'url("images/down.gif")';
					 new Effect.Opacity('results', { from: 0.1, to: 1 }); 
					 document.getElementById('results').style.zIndex = 999;
					 document.getElementById(linkID).innerHTML = 'Summary Report';
					 flag = false;
					 return;
				}

			}
function switcherReport(ID){
			//this function is baffering value of visible block and closes any visibe block at the moment of 
			// a setting the new one to be visibe 
				 		 
				 if (flag == false){
					 
					 new Effect.SlideDown('answers',{duration:0.5}); 
					 document.getElementById('summary_report_link2').innerHTML = '<img src="/Bin/CMS/Bin/Envelopes/uab/hide.gif" border=0 />';
					 new Effect.Opacity('results', { from: 1, to: 0.1 });
					 
					 flag = true;
					 return;
				}
				
				if (flag == true){
					 
					 new Effect.SlideUp('answers',{duration:0.5});
					 document.getElementById('summary_report_link2').innerHTML = '<img src="/Bin/CMS/Bin/Envelopes/uab/view.gif" border=0 />';
					 new Effect.Opacity('results', { from: 0.1, to: 1 });
					 flag = false;
					 return;
				}

}

			
			function remove_flag(){
			// this function resets value of flag.
			flag = false;
			return true;
			}
			function printThisPage() {
				document.getElementById('summary_report_link').innerHTML = 'Your previous answers';
			window.print();  
			}
