﻿function NoHorizontalScrollbarIE()
{
	if (UserBrowser() == "ie")
	{
	    document.all[1].style.overflowX = "hidden";
	}
}

//Returns client browser: ie or firefox for all others
function UserBrowser()
{
    if (window.navigator.userAgent.toLowerCase().indexOf("msie")!=-1)
    {
        return "ie";
    }
    else
    {
        return "firefox";
    }
}

function GoTo(url)
{
    document.location = SiteUrl + url;
}

//Trim like in VB	
function Trim(str)
{
if (str=="")
	{return str;}

while (str.indexOf(" ")==0 && str!="")
	{str = str.slice(1,str.length);}
while (str.lastIndexOf(" ")==(str.length-1) && str!="")
	{str = str.slice(0,str.length-1);}	
return str;		
}

