// JavaScript Document

function jf_popup(winname, url, pname, pwidth, pheight) {

//For center window
// var left   = (screen.width  - width)/2;
// var top    = (screen.height - height)/2;
// params += ', top='+top+', left='+left;

// params  = 'width=' + screen.width;
 params  = 'width=' + pwidth;
 if (pheight == 0) {
//Corrections in width and heigh are because different browsers show different
 		params += ', height=' + (screen.height - 120);
 	} else {
 		params += ', height=' + pheight;
 }
 params += ', scrollbars=yes';
 params += ', resizable=yes';
 params += ', toolbar=no';
 params += ', directories=no';
 params += ', top=0, left=0';
 params += ', fullscreen=yes';

 winname = window.open(url, pname, params);
 if (window.focus) {winname.focus()};
 return false;

}

