document.writeln("
Comments Loading...<\/div>"); document.writeln(" "); document.writeln(" var divc = document.getElementById(\'commentContainer\');"); //document.writeln(" document.getElementById(\"CommentOther\").innerHTML='Comment';"); document.writeln(" var url = document.URL;var param=\"\";"); document.writeln("if (url.indexOf(\"?\")>0)"); document.writeln("{"); document.writeln(" param = url.substring(url.indexOf(\"?\"));"); document.writeln(" if(param.indexOf(\"=\")>0){"); document.writeln(" param = param.substring(param.indexOf(\"=\")+1);"); document.writeln(" }"); document.writeln("}") document.writeln(" var handleSuccessc = function(oc){"); document.writeln(" if(oc.responseText !== undefined){"); document.writeln(" var comments = oc.responseText; var rc = comments.substr(0,comments.indexOf('<')); comments = comments.substr(comments.indexOf('<'),comments.length);"); document.writeln(" if(rc=='') rc=0;document.getElementById(\"CommentCount\").innerHTML=rc+' Total';"); document.writeln(" divc.innerHTML = comments;"); document.writeln(" }"); document.writeln(" }"); document.writeln(""); document.writeln(" var handleFailurec = function(oc){"); document.writeln(" if(oc.responseText !== undefined){"); document.writeln(" divc.innerHTML = \'[Comment on this title]\';"); document.writeln(" }"); document.writeln(" }"); document.writeln(""); document.writeln(" var callbackc ="); document.writeln(" {"); document.writeln(" success:handleSuccessc,"); document.writeln(" failure:handleFailurec,"); document.writeln(" argument: { id2:490964 }"); document.writeln(" };"); document.writeln(""); //document.writeln(" var sUrlc = \"/comment.asp?t=1&s=490964&action=page2&ps=&rndid=\"+param;"); //document.writeln(" var sUrlc = \"/cmd/getcomments.aspx?t=1&s=490964&action=page2&ps=&rndid=\"+param;"); document.writeln(" var sUrlc = \"/bar/writexml/getcomment.aspx?t=1&s=490964&action=page2&ps=&rndid=\"+param;"); document.writeln(""); document.writeln(" function makeRequestc(){"); document.writeln(" var requestc = YAHOO.util.Connect.asyncRequest(\'GET\', sUrlc, callbackc);"); document.writeln(" }"); document.writeln("setTimeout(\"makeRequestc()\",2000);"); document.writeln(" <\/script>") document.writeln(""); document.writeln("function changeOrderBy(mtype){"); document.writeln("switch(mtype){"); document.writeln("case 'corderbyDate':"); document.writeln("document.getElementById('corderbyCpoint').style.display = 'none';"); document.writeln("document.getElementById('corderbyRecount').style.display = 'none';"); document.writeln("document.getElementById('corderbyData').style.display = '';"); document.writeln("break;"); document.writeln("case 'corderbyCpoint':"); document.writeln("document.getElementById('corderbyCpoint').style.display = '';"); document.writeln("document.getElementById('corderbyRecount').style.display = 'none';"); document.writeln("document.getElementById('corderbyData').style.display = 'none';"); document.writeln("break;"); document.writeln("case 'corderbyRecount':"); document.writeln("document.getElementById('corderbyCpoint').style.display = 'none';"); document.writeln("document.getElementById('corderbyRecount').style.display = '';"); document.writeln("document.getElementById('corderbyData').style.display = 'none';"); document.writeln("break;"); document.writeln("}"); document.writeln("}"); document.writeln("<\/script>");