<!--
function confirmLogout(){
    if(confirm("Are you sure you wish to log out?")){
        window.location = ("./login/processlogout.php");
		}
}

function editComment(id, comment, hash, type){
    var div = 'comment_' + id;
		comment = comment.replace(/__DQOUTE__/g, '"');
		comment = comment.replace(/__SQOUTE__/g, '\'');
    var regExp = new RegExp("<br />","g");
    var comment = comment.replace(regExp,"\n");
		document.getElementById(div).innerHTML = '<form id="editForm" action="./data/addcomment.php" method="POST"><input type="hidden" name="hash" id="hash" value="' + hash + '" /><input type="hidden" name="type" id="type" value="' + type + '" /><input type="hidden" name="id" id="id" value="' + id + '" /><input type="hidden" name="edit" id="edit" value="1" /><br /><textarea rows="7" cols="35" name="comment">' + comment + '</textarea><br /><br /><input type="submit" value="edit" /> <input type="button" value="cancel" onClick="window.location.reload();" /></form><br />';
}

function popUp(url) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=160,left = 322,top = 183');");
}
-->
