function winOpen2(url, name, w, h) {

if (navigator.appVersion.indexOf('4') != -1) {

var H = screen.width/2 -(w/2);
var V = screen.height/2 -(h/2)-10;

window.open(url,name,'width='+w+',height='+h+',scrollbars=yes,resizable=1,menubar=1,toolbar=1,status=1,location=1,directories=0,left='+H+',top='+V+'').focus();
} else {
window.open(url,name,'width=+w+,height=+h+,scrollbars=yes,resizable=1,menubar=1,toolbar=1,status=1,location=1,directories=0,left=100,top=100').focus();
}
}

function winOpen(url, name, w, h) {

if (navigator.appVersion.indexOf('4') != -1) {

var H = screen.width/2 -(w/2);
var V = screen.height/2 -(h/2)-10;

window.open(url,name,'width='+w+',height='+h+',scrollbars=yes,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left='+H+',top='+V+'').focus();
} else {
window.open(url,name,'width=+w+,height=+h+,scrollbars=yes,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=100,top=100').focus();
}
}

function openSuv(url, name, w, h) {

if (navigator.appVersion.indexOf('4') != -1) {

var H = screen.width/2 -(w/2);
var V = screen.height/2 -(h/2)-60;

window.open(url,name,'width='+w+',height='+h+',scrollbars=yes,resizable=1,menubar=0,toolbar=1,status=1,location=1,directories=0,left='+H+',top='+V+'').focus();
} else {
window.open(url,name,'width=+w+,height=+h+,scrollbars=yes,resizable=1,menubar=0,toolbar=1,status=1,location=1,directories=0,left=100,top=100').focus();
}
}

function openNews(url, name, w, h) {

var H = screen.width/2 -(w/2);
var V = screen.height/2 -(h/2)-40;

window.open(url,name,'width='+w+',height='+h+',scrollbars=yes,resizable=1,menubar=0,toolbar=0,status=1,location=0,directories=0,left=0,top=0').focus();

}

function openDisco(url, name, w, h) {

var H = screen.width/2 -(w/2);
var V = screen.height/2 -(h/2)-40;

window.open(url,name,'width='+w+',height='+h+',scrollbars=no,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left='+H+',top='+V+'').focus();

}
