// cboScripts.js
function getCopyrightString()
{
// Construct the copyright statement
origDate = "2010"
today=new Date();
	y1=today.getFullYear();
	var copyrightstr ="Copyright &copy; Carruthers Back Office Solutions Limited " + origDate;                                
	if (y1 != origDate)
	{
		copyrightstr = copyrightstr + " - " + y1;                    
	};
	return copyrightstr + '. All rights reserved.';
}

// The following function is needed to allow links to external sites to be opened in a new window and still meet
// XHTML strict rules (since target="_blank" is deprecated in a href links).
function externalLinks()
{ 
  if (!document.getElementsByTagName) return;
  var anchors = document.getElementsByTagName("a");
  for (var i=0; i<anchors.length; i++)
  	{ 
    var anchor = anchors[i]; 
    if (anchor.getAttribute("href")&& anchor.getAttribute("rel") == "external") 
      	anchor.target = "_blank"; 
	}
} 
window.onload = externalLinks;

//The following is required for the Google Analytics page tracker (was in a separate file, moved here to speed up access)

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-6347370-1");
pageTracker._trackPageview();
} catch(err) {}
      
function detectChromeBrowser()
    {
    if(navigator && (navigator.userAgent.toLowerCase()).indexOf("chrome") > -1)
        {

        if (document.getElementById)
         	{ 
              	obj = document.getElementById("chromeinstructions"); 
                obj.style.display ="";

     		}
    	else
			{
				/// Browser is NOT chrome, so hide the warning div
				/// this is done by default
			}
    	}
	}

