function AssignLinks ()
{
	try
	{
		var LinkTag = document.getElementsByTagName("A");
		for (var i = 0; i < LinkTag.length; i++)
		{
			if (LinkTag[i].rel=="external")
			{
       LinkTag[i].onclick=function()
       {
        this.target="_blank";
       }
      }
		}
		
	}
	catch (ExceptionObject)
	{
		alert(ExceptionObject.description);
	}
}


var Timer;
function ScrollToLeft(ScrollObject)
{
	try
	{  
        
  	Timer = setInterval("document.getElementById('" + ScrollObject + "').scrollLeft -= 2", 15);
  }
	catch (ExceptionObject)
	{
	}
}

function ScrollToRight(ScrollObject)
{
	try
	{
		Timer = setInterval("document.getElementById('"+ ScrollObject + "').scrollLeft += 2", 15);
  }
	catch (ExceptionObject)
	{
	}
}

function ScrollToTop(ScrollObject)
{
	try
	{                      
  	Timer = setInterval("document.getElementById('" + ScrollObject + "').scrollTop += 2", 15);
  }
	catch (ExceptionObject)
	{
	}
}

function ScrollToBottom(ScrollObject)
{
	try
	{                      
  	Timer = setInterval("document.getElementById('" + ScrollObject + "').scrollTop -= 2", 15);
  }
	catch (ExceptionObject)
	{
	}
}

function Popup (URL, Width, Height, Scrollable, Resizable)
{
	try
	{
		var Popup;
		Popup = window.open(URL, "Popup", "width = " + Width + ", height = " + Height + ", top = " + ((screen.height - Height) / 2) + ", left = " + ((screen.width - Width) / 2) + ", resizable = " + (Resizable ? "yes" : "no") + ", scrollbars = " + (Scrollable ? "yes" : "no") + ", status = no");
		if(parseInt(navigator.appVersion)>=4)
		 {	
		  Popup.window.focus();
		 }
	}
	catch (ExceptionObject)
	{
		alert("Your browser or a piece of software installed on your\ncomputer appears to be blocking popups on this page.\n\nPlease enable popups and refresh this page to continue.");
	}
}