function blockLink(e, obj, action, classOver, classOut){
	if (document.savecontent && document.savecontent.ccMode){
		var mode=document.savecontent.ccMode.value;
	}
	
	if (mode!=="edit"){
		var links=obj.getElementsByTagName("a");
		if (links[0]){
			var firstLink=links[0];
			var elem;
			if (!e) e=window.event;
			if (e.srcElement){
				elem = e.srcElement; 
			}else if(e.target){
				elem = e.target;
			}
			
			//if (firstLink && firstLink.href && elem.tagName!="A"){  // this causes no highlight when over the actual link in ie
				switch(action){
					case "over":
						//obj.style.backgroundColor=bgColourOver;
						obj.className=classOver;
						//document.body.style.cursor="hand";
					break;
					
					case "out":
						//obj.style.backgroundColor=bgColourOut;
						obj.className=classOut;
						//document.body.style.cursor="default";
					break;
					
					case "click":
						//alert(elem.tagName);
						if (firstLink.click){  // if click() method exists, use it
							//alert("using click method");
							firstLink.click();
						}else{ 					// otherwise, do it the hard way
							var target=firstLink.target;
							if (target=="_blank"){
								window.open(firstLink.href);
							}else{
								window.location.href=firstLink.href;
							}
						}
					break;	
				}
			//}
		}
	}
	return false;
}
