globalJSErrorHandler = function (obj){

}

toggleControls = function (linkA,linkB,img){

	var visibleObj = document.getElementById(linkA);
	var hiddenObj =  document.getElementById(linkB);
	var imgObj =  document.getElementById(img);
	
	visibleObj.style.display = 'none';
	hiddenObj.style.display = '';
	
	<!--- Mark slide as added by setting the image transparency. --->
	if(visibleObj.id.indexOf('add') > -1)
		imgObj.className = 'outline transparent';
	else
		imgObj.className = 'outline';						
}

hideDiv = function (id){
	document.getElementById(id).style.display ='none';
}

clearAll = function(){

	if(confirm("Please Note: This will remove all the slides from the current slite kit.\n\n Click 'Ok' to continue."))
		window.location.href='http:\/\/www.caringfordiabetes.com/slidelibrary/presentation/clearslidekit';		
}

duelingSelect = function(formName,source,destination) {
	if (document.forms[formName].elements[source].selectedIndex != -1){
		var sourceSelectLength = document.forms[formName].elements[source].options.length;		
		var destinationSelectLength = document.forms[formName].elements[destination].options.length;		
		
		for (var i = sourceSelectLength - 1; i >= 0; i--)
		{			
			if (document.forms[formName].elements[source].options[i].selected)
			{								
				document.forms[formName].elements[destination].options[destinationSelectLength] = new Option(document.forms[formName].elements[source].options[i].text,document.forms[formName].elements[source].options[i].value);
				document.forms[formName].elements[source].options[i] = null;
				destinationSelectLength += 1;
			}
		}	
	}
}

multiSelectAll = function(formName,obj){
		for (var i = document.forms[formName].elements[obj].options.length - 1; i >= 0; i--)
		{
			document.forms[formName].elements[obj].options[i].selected = true;			
		}	
	}
	
ColdFusion.setGlobalErrorHandler(globalJSErrorHandler);
