function opensolv_r(id,x0,y0,p,x,y) {
window.open('solv.php?id='+id,'the_solver',
'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='
+Math.max(580,x0+p*x+10)+',height='+Math.max(300,y0+p*y+85));
}
function prnt() {
window.print();
}

function dget(id) {
 return document.getElementById(id);
}

function xml_get(eq,p) {
 x=new XMLHttpRequest();
 x.open("GET",p,true);
 if (eq!= null) {
  x.onreadystatechange=function() {
   if (x.readyState==4) eq.innerHTML=x.responseText;
  }
 }
 x.send(null);
 return x;
}

function rnd_reload() {
 var e=dget("rndh");
 xml_get(e,"rnd.php");
}

