function JsMod(htmlurl,tmpWidth,tmpHeight){
htmlurl=getRandomUrl(htmlurl); var winObj = window.open(htmlurl, "newwindow", "height="+tmpHeight+",width="+tmpWidth); var loop = setInterval(function() { if(winObj.closed) { clearInterval(loop); parent.location.reload(); } }, 1); }