function PrintPage(ObjName)
{
  var Obj = document.getElementById(ObjName);
	document.body.style.marginTop = "0px";
	document.body.style.marginLeft = "0px";
	//alert(Obj.outerHTML);
	document.body.innerHTML = Obj.outerHTML;
	var table_all = document.body.getElementsByTagName("TABLE");
	for (var i = 0; i < table_all.length; i++)
	{
		var t = table_all[i];		
		t.style.borderColor = "#ffffff";
		t.className = "print_text_table";
	}

	
	var td_all = document.body.getElementsByTagName("TD");
	for (var i = 0; i < td_all.length/2; i++)
	{
		//var t_bg = td_all[i*2];
		var t_bg = td_all[i*2 + 1];
		//t_bg.style.backgroundColor = "#e9e9ec"; // e9e9ec
		t_bg.className = "print_text_td";
	}
	window.print();
	location.reload();	
}


function check_window(link)
{
	return true;
}
function hideAll() 
{
	for(i=0; i<=21; i++)
	{
		var objForm = document.getElementById(i);
		objForm.style.display="none";
	}
	
}

var timerId = 0;
function show_options(menu_id)
{
   hideAll();
   var objForm = document.getElementById(menu_id); 
   if(objForm.style.display=="block") 
   { 
   		objForm.style.display="none"; 
   } 
   else 
   { 
   		objForm.style.display="block"; 
   } 
   if (timerId != 0)
   {
   		window.clearTimeout(timerId);
   }
}
function menuOver ()
{
	if (timerId != 0)
	{
		window.clearTimeout(timerId);
	}
}

function menuOut()
{
	timerId = window.setTimeout("hideAll()", 500);
}