	function funDeleteFavorite(what){
		var ynRemove = confirm("Are you sure you want to remove selected content type from your favorites?");
		//alert(ynRemove + " " + what);
		if(ynRemove==true){
			document.location = "Index.cfm?fuseaction=action&txtfuse=actRemoveFavorite&numContentTypeID="+what+"&returnFuse=dspShellContentList&returnFuseAction=shell&returnKeys=numContentTypeID,returnFuse,returnFuseAction,returnKeys";
		}
	}

	//FUNCTION CHANGES THE CURSOR OF PASSED OBJECT
	function funChageCursor(what,change){
		what.style.cursor = change;
	}
	
	//CANCELS BUBBLE
	function funCancelBubble(){
		window.event.cancelBubble = true;
	}
	
	//FUNCTION HIDES ALL ENTRIES IN PASSED ARRAY
	function funArrayHideAll(arrayName){
		var tarray = eval(arrayName);
		var arrayLength = tarray.length;

		//alert(arrayLength);
		//loop through array and make each div in array hidden
		for (var i=0; i<arrayLength; i++){
			if (tarray[i] != null){
				//alert(tarray[i]);
				document.all[tarray[i]].style.display = "none";
			}
		}
	}
	
	//FUNCTION CHANGES THE STYLE FOR ALL ELEMENTS
	function funArrayChangeStyleAll(arrayName,styleName){
		var tarray = eval(arrayName);
		var arrayLength = tarray.length;

		//alert(arrayLength);
		//loop through array and make each div in array hidden
		for (var i=0; i<arrayLength; i++){
			if (tarray[i] != null){
				//alert(tarray[i]);
				document.all[tarray[i]].className = styleName;
			}
		}
	}	
	//FUNCTION SETS THE STYLE FOR AN ELEMENT WITHIN AN ARRAY
	function funArrayChangeStyleArrayItem(arrayName,arrayItem,styleName){
		var tarray = eval(arrayName);
		var arrayLength = tarray.length;

		//alert(arrayLength);
		//loop through array and make each div in array hidden
		for (var i=0; i<arrayLength; i++){
			if ((tarray[i] != null)&&(tarray[i]==arrayItem)){
				document.all[tarray[i]].className = styleName;
			}
		}
	}	
	
	//FUNCTION FOR DETERMINING XY COORDINATES OF MOUSE
	function xy(){
		h=document.body.offsetHeight;
		w=document.body.offsetWidth;
		x=event.x;
		y=event.y;
	}
	
	//FUNCTION FOR DISPLAYING A MENU AT X,Y COORDINATES
	function showMenu (menu,x,y) { 
		with(document.all[menu]){
			//alert(TheBody.scrollLeft + " " + TheBody.scrollTop);
			var d = style.display;
			//alert(d);
		    style.pixelLeft = ((x-10)+TheBody.scrollLeft); 
		    style.pixelTop = ((y-2)+TheBody.scrollTop); 
			style.zIndex = 10000;
			//style.display = (d == 'block') ? 'none' : 'block';
			style.display = 'block';
			//alert(style.zIndex + " " + x + " " + y + " | " + style.pixelLeft + " " + style.pixelTop);
		}
	}
	
	//FUNCTIONS FOR INVOKING OBJECT METHODS:
	/*
	form,fuseaction,fuse,returnfuseaction,returnfuse,returnfields,target
	*/
	
	function funInvokeMethod(frm,fa,f,rfa,rf,rflds,trgt){
		with(document.all[frm]){
			//fuse
			txtFuse.value = f;
			//fuseaction
			if(fa.length > 0){fuseaction.value=fa;}
			//returnfuseaction
			if(rfa.length > 0){returnFuseAction.value=rfa;}
			//returnfuse
			if(rf.length > 0){returnFuse.value=rf;}
			//returnfields
			if(rflds.length > 0){returnKeys.value=rflds+',returnFuse,returnFuseAction,ReturnKeys';}
			//target
			if(trgt.length > 0){target=trgt;}
			submit();
		}		
	}
		/*
		if(rf.length > 0){
			var comma=",";
			var errorStr = "";
			arFields = rf.split(comma);		
			
			for(i=0;i<arFields.length;i++){
				tmpField = arFields[i];
				tmpValue = document.all[frm][tmpField].value;
				if((tmpValue==0)||(tmpValue.length==0)){
					//first time error occurs, seed the error message:
					if(errorStr.length==0){
						errorStr = "The following errors occured:\n";
					}
					//create error message
					errorStr = errorStr + "  * " + tmpField + " is required, has a value of " + tmpValue + "\n";
					//alert(frm + " " + arFields[i] + " " + tmpValue);
				}
			}			
			//an error has occured.  Append type on how to fix the error
			if(errorStr.length!=0){
				errorStr = errorStr + "\n\n Possible cause(s) to the above error(s):\n";
				errorStr = errorStr + "  * You may be on a page where the values of the fields above are not known.\n";
				errorStr = errorStr + "  * An unknown, undocumented feature has occured.  It worked for me when I developed it!\n";
			}
			
			//if there's an error message, then abort
			if(errorStr.length!=0){
				alert(errorStr);
				return;
			}
		}
		*/
		
		
		
	function funUDFGetFuse(indexpath,txtFuseAction,fuse,pName,pValue){
			var strFuseAction = txtFuseAction.toLowerCase();
			//alert(strFuseAction);
			with(document.frmGetFuse){
				if (fuse.length != 0){
					fuseaction.value=txtFuseAction;
				}
						
				if (fuse.length == 0){
					txtFuse.name="";
				}
				else{
					txtFuse.value=fuse;
				}
				
				if (arguments.length > 3){
					if (pName.length != ""){
						idHolderVarNames.value=pName;
						idHolderVarValues.value=pValue;
					}
				}
				
				if ((arguments.length > 5)&&(strFuseAction=='action')){
					returnFuseAction.value=arguments[5];
					returnFuse.value=arguments[6];
					
					var stReturnKeys = arguments[7] + ',returnFuse,returnFuseAction,ReturnKeys,ReturnRoot';
					if(arguments.length > 8){
						ReturnRoot.value= arguments[8];
					}
					else{
						ReturnRoot.value="";
					}
					//alert(stReturnKeys);
					ReturnKeys.value=stReturnKeys;
				}		
				else{
					returnFuseAction.value="";
					returnFuse.value="";
					ReturnKeys.value="";
					ReturnRoot.value="";
				}	
				submit();
			}	
		}		
		
	function funHideShow(divToShow,arrayName){
		//alert(divToShow);
		var tarray = eval(arrayName);
		var arrayLength = tarray.length;
		var x = 0;
		
		//alert(arrayLength);
		//loop through array and make each div in array hidden
		for (var i=0; i<arrayLength; i++){
			if (tarray[i] != null){
				//alert(tarray[i]);
				document.all[tarray[i]].style.display = "none";
			}
		}
		//then go back and make div passed to this function visible
		with (document.all[divToShow].style){
			if (x!=0){top = x;}
			display = "block";
		}
	}		
	
	function funHideShowSpan(spn,arrayName,css1,css2){
		var tarray = eval(arrayName);
		var arrayLength = tarray.length;
		var x = 0;
		
		//alert(arrayLength);
		//loop through array and set className of each span to css1
		for (var i=0; i<arrayLength; i++){
			if (tarray[i] != null){
				//alert(tarray[i]);
				document.all[tarray[i]].className = css1;
			}
		}
		//then go back and make passed span className = css2
		document.all[spn].className = css2
	}
		
	function splitString (stringToSplit,separator) {  
		arrayOfStrings = stringToSplit.split(separator)
		return arrayOfStrings;
	}			