//function to open new window with javascript
function newWindow(url,name,width,height){
  l = Math.round((screen.width-width)/2);
  t = Math.round((screen.height-height)/2);
  
  window.open(url,name,'width='+ width +',height='+ height +',left='+ l +',top='+ t +',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes');
  return false;
};
