
function newWin(bookURL,j_width,j_height,j_scroll, j_name){
    var winTop,winLeft;
    if (j_name=="" || j_name==null){
        j_name='b';
    }
	if(j_scroll=="" || j_scroll==null){
		j_scroll="yes";
	}
	if(j_width>screen.width){
		winLeft=0;
	}else{
		winLeft=(screen.width-j_width)/2;
	}
	if(j_height>screen.height){
		winTop=0;
	}else{
		winTop=(screen.height-j_height)/2;
	}
	var winFeat = "menubar=no,scrollbars="+j_scroll+",status=no,toolbar=no,height="+j_height+",width="+j_width;
	winFeat = winFeat+",top="+winTop+",left="+winLeft;
	var newWin = window.open(bookURL,j_name,winFeat);
	newWin.focus()
}
