function fnInit(){
    <!-- Ensure the display interface is not selectable, by making all     -->
    <!-- elements UNSELECTABLE                                      -->
    
    for (i=0; i<document.all.length; i++)
            document.all(i).unselectable = "on";       

    
    //set style and behaviour off all divs for which easyedit = true
    var oDivs = document.all.tags("DIV");
    for (i=0; i<oDivs.length; i++){	    
	if (oDivs(i).easyedit == "true") {
		
		oDivs(i).id=document.uniqueID;
        	oDivs(i).contentEditable = true;
        	oDivs(i).style.border='1';
        	oDivs(i).style.borderStyle='solid';
        	oDivs(i).style.borderColor='#000000';
        	oDivs(i).style.height='auto';
        	oDivs(i).style.paddingLeft='5';
        	oDivs(i).style.paddingRight='5';
        	oDivs(i).style.paddingTop='5';
        	oDivs(i).style.paddingBottom='5';
        	oDivs(i).style.overflowX='visible';
        	oDivs(i).style.overflowY='visible';
        	if (oDivs(i).style.width=='') 
        		oDivs(i).style.width='520';
        	
        	//oDivs(i).style.backgroundColor='#E6E6E6';
        	oDivs(i).style.padding='3';
        	oDivs(i).style.overflow='auto';
        	oDivs(i).onclick=getdivID;
        	oDivs(i).onmouseover=DivBlink;
        	oDivs(i).onmouseout=DivUnblink;
        	oDivs(i).unselectable = "off";
        	oDivs(i).zindex="900";
        	//make all childNodes of current div selectable
        	//var oChilds = oDivs(i).childNodes;
        	//for(x=0;x<oChilds.length;x++) {
        	//	oDivs(i).childNodes.item(x).unselectable="off";
        	//}
        	//make img tags selectable because imgtags are not part of childNodes collection
        	//var oImgtags = oDivs(i).all.tags("IMG");
        	//for (x=0;x<oImgtags.length;x++) {
        	//	oImgtags(x).unselectable = "off";
        	//}
        	for (y=0; y<oDivs(i).all.length; y++)
            		oDivs(i).all(y).unselectable = "off";       
        	
        }
    }
    
    <!-- Prepare the editable regions                                      -->
    
}

<!-- The fnToggleEdits function turns editing on or off in the editable -->
<!-- regions of the document                                            -->     
function fnToggleEdits(oObj) {
    currentState = oObj.isContentEditable;
    newState = !currentState;
    oObj.contentEditable = newState;
}

function DivBlink() {
	this.style.border='1';
	this.style.borderStyle='dashed';
	this.style.borderColor='#000000';
}

function DivUnblink() {
	this.style.border='1';
	this.style.borderStyle='solid';
	this.style.borderColor='#000000';
}



<!--init function to remove border from easyeditblocks-->
function fnInit_show(){
    <!-- Ensure the display interface is not selectable, by making all     -->
    <!-- elements UNSELECTABLE                                      -->
    
    //for (i=0; i<document.all.length; i++)
    //        document.all(i).unselectable = "on";       

    
    //set style and behaviour off all divs for which easyedit = true
    var oDivs = document.all.tags("DIV");
    for (i=0; i<oDivs.length; i++){	    
	if (oDivs(i).easyedit == "true") {
		
        	oDivs(i).style.border='1';
        	oDivs(i).style.borderStyle='none';
        	oDivs(i).style.borderColor='#000000';
        }
    }
    
    <!-- Prepare the editable regions                                      -->
    
}

