		<!--
		var TempHeight = 0;
		var FinalHeight = 0;
		var Punct = 0;
	    
		function HeightSet()
		{
		try
			{
			var ScreenHeight = document.body.clientHeight;
			var TopHeight = document.getElementById("top").height;
			var DefaultHeight = ScreenHeight - TopHeight-10;
			var LeftHeight = document.getElementById("left").contentWindow.document.body.scrollHeight;
			var PagesHeight = document.getElementById("pages").contentWindow.document.body.scrollHeight;

 			if (LeftHeight > PagesHeight)
				{
				TempHeight = LeftHeight;
				}
			else
				{
				TempHeight = PagesHeight;
				}

			if (TempHeight > DefaultHeight)
				{
				FinalHeight = TempHeight;
				}
			else
				{
				FinalHeight = DefaultHeight;
				}

			var h=document.getElementById('right').contentWindow.document.body.scrollHeight;
			if (h>FinalHeight) FinalHeight=h;
			document.getElementById("CellLeft").height = FinalHeight;
			document.getElementById("CellPages").height = FinalHeight;
			document.getElementById("left").height = FinalHeight;
			document.getElementById("pages").height = FinalHeight;
			}
		catch (ex)
			{
				//alert(ex.description);
			}
		};
	    
	    
/*
		function LeftCheck()
		{
		try
			{
			var LeftState = document.getElementById("left").contentWindow.document.readyState;
			if (LeftState == "complete")
				{
				HeightSet()
				}
			else
				{
				reCall = setTimeout("LeftCheck()", 50);
				}
			}
		catch (ex)
			{
				alert(ex.description);
			}
		}
*/


	function LeftCheck() 
		{
			try
			{
			if (document.getElementById("left").contentWindow.document.readyState)
				{
					var LeftState = document.getElementById("left").contentWindow.document.readyState;
					if (LeftState == "complete")
						{
						HeightSet()
						}
					else
						{
						reCall = setTimeout("LeftCheck()", 50);
						}
				}
			else
				{
					HeightSet()		
				}
			}
			catch(ex)
			{
				alert(ex.description);
			}
		}

	
		/* for Mozilla */
/*	if (document.addEventListener) {
		document.addEventListener("DOMContentLoaded", LeftCheck, false);
	}
*/	
		

		
		
		
		
		
		//urmeaza functiile care vor fi accesate din left_page.aspx
		function SelfCheck()
		{	
			try
			{
			var SelfState = document.readyState;
		    
			if (SelfState == "complete")
				{
				HeightSet_v2()
				}
			else
				{
				reCall = setTimeout("SelfCheck()", 50);
				}
			}
			catch (ex)
				{
					alert(ex.description);
				}
		}

		
		function HeightSet_v2()
		{
			try
			{
			var ScreenHeight = parent.document.body.clientHeight;
			var TopHeight = 90;
			var DefaultHeight = ScreenHeight - TopHeight;
			var LeftHeight = parent.document.getElementById("left").contentWindow.document.body.scrollHeight;
			var PagesHeight = parent.document.getElementById("pages").contentWindow.document.body.scrollHeight;
		    
			if (LeftHeight > PagesHeight)
				{
				TempHeight = LeftHeight;
				}
			else
				{
				TempHeight = PagesHeight;
				}
			
			if (TempHeight > DefaultHeight)
				{
				FinalHeight = TempHeight;
				}
			else
				{
				FinalHeight = DefaultHeight;
				}
		    
			var h=parent.frames("right").document.body.scrollHeight+10;
			if (h>FinalHeight) FinalHeight=h;
			parent.document.getElementById("left").height = FinalHeight;
			parent.document.getElementById("pages").height = FinalHeight
			Punct = FinalHeight;
			}
			catch (ex)
				{
					alert(ex.description);
				}
			}
		
		
		function test()
		{
			try
			{
			var ScreenHeight = parent.document.body.clientHeight;
			var TopHeight = 90;
			var DefaultHeight = ScreenHeight - TopHeight;
		    
			var LeftHeight = parent.document.getElementById("FrameLeft").contentWindow.document.body.scrollHeight;
			var PagesHeight = parent.document.getElementById("FrameRight").contentWindow.document.body.scrollHeight;
		    
			if (LeftHeight > PagesHeight)
				{
				TempHeight = LeftHeight;
				}
			else
				{
				TempHeight = PagesHeight;
				}
			
			if (TempHeight > DefaultHeight)
				{
				FinalHeight = TempHeight;
				}
			else
				{
				FinalHeight = DefaultHeight;
				}
			}
			catch (ex)
				{
					alert(ex.description);
				}
			}
		//-->
		
				//--------------------------------------
		function RandomGet(Number)
		{
		try
			{
			return Math.floor(Math.random() * Number);
			}
		catch (ex)
			{
				alert(ex.description);
			}
		}
		
		function ImagesReloadSrc()
		{
		try
			{
			var theMainImg = document.getElementById('MainImage');
			var theMapaImg = document.getElementById('Mapa');
			var MainSrc = theMainImg.src;
			var MapaSrc = theMapaImg.src;
			theMainImg.src = MainSrc + "?" + RandomGet(200);
			theMapaImg.src = MapaSrc + "?" + RandomGet(200);
			}
		catch (ex)
			{
				alert(ex.description);
			}
		}
		
		function ReloadImgSrc(ImageId)
		{
		try
			{
			var ImageSrc = document.getElementById(ImageId).src;
			document.getElementById(ImageId).src = ImageSrc + "?" + RandomGet(200);
			}
		catch (ex)
			{
				alert(ex.description);
			}
		}
		
		function RefreshSrc()
		{
		try
			{
				for (i=0;i<document.images.length;i++)
				{
					var ImageName=document.images(i).src;
					if (ImageName.indexOf('Mapa') || ImageName.indexOf('Main'))
						{
							var theMainImg = document.getElementById('MainImage' + i);
							var theMapaImg = document.getElementById('Mapa' + i);
							var MainSrc = theMainImg.src;
							var MapaSrc = theMapaImg.src;
							theMainImg.src = MainSrc + "?" + RandomGet(200);
							theMapaImg.src = MapaSrc + "?" + RandomGet(200);
						}
					
				}
				
			}
		catch (ex)
			{
				alert(ex.description);
			}
		}
		
//------------------------------
function HomePrivadaChangeHeight(OtherFrame)
{
try
	{
	var SelfHeight = document.body.scrollHeight;
	var OtherHeight = parent.getElementById(OtherFrame).contentWindow.document.body.scrollHeight;
	var FinalHeight;
	
	if (SelfHeight >= OtherHeight)
		{
		FinalHeight = SelfHeight;
		}
	else
		{
		FinalHeight = OtherHeight;
		}
	
	//FinalHeight += 100;
	
	parent.document.getElementById('LeftPrivada').height = FinalHeight;
	parent.document.getElementById('RightPrivada').height = FinalHeight;
	top.document.getElementById('FrameRight').height = parseInt(FinalHeight + 100);
	}
catch (ex)
	{
		alert(ex.description);
	}
}
		//-->
		
		