/*Daniel San Functions*/
function danielOpn(s, w, h){ // Version 1.1
	//Function made by Daniel Santana
	dats_str = 'imgs/viewer.php?src=' + s + '&w=' + w + '&h=' + h;
	dats_wnm = document.href;
	dats_cfg = 'width=' + w + ', height=' + h;

	dats_win = window.open(dats_str, dats_wnm, dats_cfg);
	dats_win.focus();

    sw = screen.width;
    sh = screen.height;

    tp = ((sw - w)/2);
    lf = ((sh - h)/2);

    dats_win.moveTo(tp, lf);

}

function centralizar(ww, wh){
    sw = screen.width;
    sh = screen.height;

    tp = ((sw - ww)/2);
    lf = ((sh - wh)/2);

    moveTo(tp, lf);
}
