// cboScripts.js
function getCopyrightString()
{
// Construct the copyright statement
origDate = "2007"
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 function is needed to show and hide text.
function showhide(idexample, plusminus, idcaption)
{ 
	if (document.getElementById)
	{ 
		objexample = document.getElementById(idexample); 
		objcaption = document.getElementById(idcaption);
		if (objexample.style.display == "none")
	
		{ 
			objexample.style.display = "";
			objcaption.innerHTML="&nbsp;Click here to hide these examples";
			document.images[plusminus].src="scripts/minus.jpg";
		}
		else
		{ 
			objexample.style.display = "none"; 
			objcaption.innerHTML="&nbsp;Click here for some real-world examples of how we have saved money for our clients.";
			document.images[plusminus].src="scripts/plus.jpg";
		} 
	} 
} 


// The following function is needed to show and hide intro text.
function showintro(id1, id2)
{ 
	if (document.getElementById)
	{ 
		obj = document.getElementById(id1); 
		if (obj.style.display == "none")
	
		{ 
			obj.style.display = "";
			document.getElementById(id2).style.display = "none"
		}
		else
		{ 
			obj.style.display = "none"; 
			document.getElementById(id2).style.display = ""
		} 
	} 
} 
