/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequest();
}
return request_type;
}

var http = createObject();






/* -------------------------- */
/* MARK READ */
/* -------------------------- */
/* Required: var nocache is a random number to add to request. This value solve an Internet Explorer cache issue */
var nocache = 0;
function markread(intUserForumReplyId) {
// Optional: Show a waiting message in the layer with ID ajax_response
document.getElementById('markread_response'+intUserForumReplyId).innerHTML = ""
// Set te random number to add to URL request
nocache = Math.random();
// Pass the login variables like URL variable
http.open('get', '/ajax/markread.cfm?intUserForumReplyId='+intUserForumReplyId+'&nocache = '+nocache);
http.onreadystatechange = function() {
    markreadReply(intUserForumReplyId);
};
http.send(null);
}

function markreadReply(intUserForumReplyId) {
if(http.readyState == 4){ 
var response = '<input type=checkbox checked disabled>';


{
document.getElementById('markread_response'+intUserForumReplyId).innerHTML = response;
}
}
}

