	function replace(string,text,by) {
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;
    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;
    var newstr = string.substring(0,i) + by;
    if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);
    return newstr;
	}		
		
	function tabSwitch(n,l){
	
	if (document.getElementById){
			for (o=1;o<TabNum+1;o++){
				var filter = '_on';
				document.getElementById('tContent'+o).style.display='none';
				imagePath = document.getElementById('tab'+o).src;
				imagePath = replace(imagePath,'_on','');
				imagePath = imagePath.substring(0,imagePath.lastIndexOf(".")) + '.gif';
				document.getElementById('tab'+o).src = imagePath;
			}
			
			document.getElementById('tContent'+n).style.display='block';

			
		}
	}

	function getPath(thisString)
	 { 
	 	return thisString.substring(0,thisString.lastIndexOf(".")); 
	 }
	 
	function clearStatus(){
	
	 	window.status=''; return true;
	 
	 }
