var winW; var winH; if (document.documentElement && document.documentElement.clientWidth) { winW = document.documentElement.clientWidth; winH = document.documentElement.clientHeight; } else if (document.body && document.body.clientWidth) { winW = document.body.clientWidth; winH = document.body.clientHeight; } else { winW = window.innerWidth; winH = window.innerHeight; } //alert( navigator.appName + " window size is " + winW +" x "+ winH ); var ajax; var isIE = false; if (window.XMLHttpRequest) { // branch for native XMLHttpRequest object ajax = new XMLHttpRequest(); } else if (window.ActiveXObject) { // branch for IE/Windows ActiveX version isIE = true; ajax = new ActiveXObject('MSXML2.XMLHTTP.3.0'); // this is what Microsoft recommends for IE5/IE6 (abort() method is not available) } if (!ajax) { alert("Error initializing XMLHttpRequest!"); } function getObjectByID(objectId) { // get an object by it's tag ID value if (document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId); } else if (document.all && document.all(objectId)) { return document.all(objectId); } else { return false; } } function addslashes(str) { str=str.replace(/\'/g,'\\\''); return str; } function stripslashes(str) { str=str.replace(/\\'/g,'\''); return str; } function trim(myString) { return myString.replace(/^\s*|\s*$/g,""); } function editComment(comment_div, ctrl_div, filepath) { var comment_obj = getObjectByID(comment_div); var currentText = comment_obj.innerHTML; if (currentText == '' ) currentText = 'put your description here'; comment_obj.innerHTML = '