
function onMouseOver(obj)
{
	 obj.style.cursor="hand"
	 obj.style.textDecoration="underline"
}


function onMouseOut(obj)
{
	obj.style.cursor="auto"
	obj.style.textDecoration="none"
}


function onMouseOverPic(obj,sPath)
{
	 obj.style.cursor="hand"
	 obj.style.backgroundImage="url"+sPath;
}


function onMouseOutPic(obj,sPath)
{
	obj.style.cursor="auto"
	obj.style.textDecoration="none"
}

function displayDiv(sDiv)
{
	document.getElementById(sDiv).style.visibility="visible"
}


function onMouseOverCursor(obj)
{
	 obj.style.cursor="hand"
	 
}


function onMouseOutCursor(obj)
{
	obj.style.cursor="auto"
	
}

function hideDiv(sDiv)
{
	document.getElementById(sDiv).style.visibility="hidden"
	//window.alert("OUT!")
}

function goTo(sURL)
{
	document.location.href = sURL;
}

function goToNew(sURL)
{
	window.open(sURL,"","")
}

function addBookMark(title)
{



if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {

var url=document.location.href;


window.external.AddFavorite(url,title);

}
else {
var msg = "Don't forget to bookmark us!";
if(navigator.appName == "Netscape") msg += " (CTRL-D)";
document.write(msg);
}

}


function countAndDisplay(sURL,bNewWindow,id)
{
doOpen(sURL,bNewWindow,id)

}

function ForwardLink(sTitle,sURL)
{
	
	window.open("ForwardLink.aspx?sTitle="+sTitle+"&sURL="+location.href,"","toolbar=0,status=0,menubar=0,resizable=0,scrollbars=0,location=0,titlebar=0,copyhistory=0,width=498,height=380,top=300,left=250")
}

function Feedback(id)
{
	
	window.open("Feedback.aspx?id="+id,"","toolbar=0,status=0,menubar=0,resizable=0,scrollbars=0,location=0,titlebar=0,copyhistory=0,width=498,height=415,top=250,left=250")
}

 function checkEmail(myEmail,msg) 
	{
		if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myEmail.value)) || (myEmail.value=="")){
			return (true)
		}
		alert(msg)
		myEmail.focus();
		myEmail.select();
		return (false)
	}
	
	
function changeLanguage(sURL,languageID)
{
createCookie('StewartCALanguage',languageID,50)
document.location = sURL;		

}

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}