function OnPrintPage()
{
	var sURL = document.location.href + "&print=true";
	window.open( "Print.aspx?url=" + sURL );
	
	//WinPopup( "Print.aspx?url=" + sURL, "winPrint", 400, 400, null );
}

function OnReferPage()
{
	var url = new String(document.location.href);
	if(url.indexOf("ReferThisSite.aspx") == -1)
	{
		document.location.href = "ReferThisSite.aspx?ReferalPage=" + document.location.href;
	}
}

function OnClientLogin()
{
	alert("Client login details to be supplied!");
}

function OnSearch()
{
	var oKeyword = document.getElementById("txtKeyword");
	document.location.href = "SearchResults.aspx?Search=" + escape( oKeyword.value );
}

function OnBookmark()
{
	window.external.AddFavorite('http://www.intelara.com','Intelara');			
}	

function OnPhoto(nEntityId)
{
	WinPopup( "SlideShow.swf?FilePath=_upload\\SlideShow.xml&entityId=" + nEntityId, "winPhoto", 500, 350, null );
}

function OnWinLoad()
{											
	if(typeof(OnWindowLoad) != "undefined")
	{
		OnWindowLoad();				
	}								
}	
