var softinfo = {Softname:null,SoftID:0,Collections:0,Subscribes:0,AuthorUserID:0,Author:{}}; document.getElementById("wen_collections").innerHTML="("+softinfo.Collections +")"; //_get("wen_subscribes").innerHTML="("+softinfo.Subscribes +")"; var isLogin = 0; if(!isLogin){ var r1 = document.getElementById("rate1"); var r2 = document.getElementById("rate2"); r1.onclick = function(){ openDialog("/max-dialogs/login.aspx",function(){dprate('soft','1','0');}); }; r2.onclick = function(){ openDialog("/max-dialogs/login.aspx",function(){dprate('soft','2','0');}); }; var submitlink =document.getElementById("wen_submit"); if(submitlink){ submitlink.onclick=function(e){ e=e||window.event; var tag = e.srcElement || e.target; openDialog("/max-dialogs/login.aspx",function(r){ location.replace(tag.href);}); return false; }; } } else { //var uid=q; }