function handleDisplay( intId ) {
    var objEvent    = document.getElementById( 'event_' + intId );
    //var strHtml     = '&lt;img src="/images/preloader.gif" alt="Processing" title="Processing" /&gt;';
    var strHtml     = 'Processing';
    var strUrl      = '/event/editDo.php?JS=Y&PAGE=EVENT&T=AJAXVD&id=' + intId + '&rand=' + Math.random();
    
    if( '' == objEvent.innerHTML ) {
        objEvent.innerHTML = strHtml;
        
        strHtml = fetchAjaxEvent( strUrl, intId );
        
        //fetch from database
        objEvent.innerHTML = strHtml;
    } 
    
    if( 'none' == objEvent.style.display ) {
        objEvent.style.display = "block";
    } else {
        objEvent.style.display = "none";
    }
}

function fetchAjaxEvent( strUrl, intId ) {
    var xmlHTTP = getXMLHttpObject();    //FOR XMLHttpRequest Object
    
    if( xmlHTTP != false ) {
        xmlHTTP.onreadystatechange = function() {
            if ( xmlHTTP.readyState == 4 || xmlHTTP.readyState == 'complete' ) {
                if( xmlHTTP.status == 200 ) {
                    return( xmlHTTP.responseText );
                } else if( xmlHTTP.status == 404 ) {
                    return( 'AJAX Error 404: Page not found' );
                } else {
                    return( 'AJAX: Something wierd happend: Try agin later' );
                }
            }
        }
        
        xmlHTTP.open( 'GET', strUrl , true );
        xmlHTTP.send( null );
    } else {
        alert( 'Oops AJAX not working, Either you are using Mobile or Browser seems to be quite old. Upgrade it.' );
        return false;
    }
    
}
