function popup(mypage, myname, w, h, scroll, resizable, menubar) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+',menubar='+menubar+''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function showe(img, w, h) {
     p_img = "images/multimedia/" + img;
     if (vwd) vwd.close();
     var vwd = window.open("imgpop.php","vwnd",'toolbar=no,menubar=no,scrollbars=no,resizable=yes,height='+h+',width='+w)          
     vwd.focus();
}

function showef(img, w, h) {
     p_img = "images/multimedia/1/" + img;
     if (vwd) vwd.close();
     var vwd = window.open("imgpop.php","vwnd",'toolbar=no,menubar=no,scrollbars=no,resizable=yes,height='+h+',width='+w)          
     vwd.focus();
}
function showeg(img, w, h) {
     p_img = "images/multimedia/veludo/" + img;
     if (vwd) vwd.close();
     var vwd = window.open("imgpop.php","vwnd",'toolbar=no,menubar=no,scrollbars=no,resizable=yes,height='+h+',width='+w)          
     vwd.focus();
}

function popt() {
	 newwindow=window.open('banner','banner','toolbar=no,menubar=no,scrollbars=no,resizable=no,height=279,width=350'); 
  newwindow.focus()
}

/*
function NewWindow(mypage,myname,w,h,scroll){
    var win= null;
    var winl = (screen.width-w)/2;
    var wint = (screen.height-h)/2;
    var settings  = 'height='+h+',';
    settings += 'width='+w+',';
    settings += 'top='+wint+',';
    settings += 'left='+winl+',';
    settings += 'scrollbars='+scroll+',';
    settings += 'resizable=yes';
    window.open(mypage,myname,settings);
}

NewWindow('popup_jovens.htm','Concurso','300','250','no');
*/