function popUp(url, winName, width, height,scr,res)
{
    var features;
  
    (scr) ? scr=1:scr=0;
    (res) ? res=1:res=0; 

    features = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=' + scr + ',resizable=' + res + ',width=' + width + ',height=' + height;

     window.open(url, winName, features);
}

function popUpPlus (url, width, height)
{
   var features;

   if (width < 150)
     width=800;
   if (height < 150)
     height=700;

   features = 'toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1,width=' + width + ',height=' + height;

   window.open(url,'_blank',features);
 }
