// Funciones relacionadas con la navegacion de las paginas de Barceloviajes.com
// Ultima modificacion: 14/08/2007. Barceloviajes.com
// Copyright barceloviajes.com 2007
function openHelp(theURL) {
  //window.open(theURL,'ayuda','scrollbars=yes,width=568,height=600');
  winBRopen(theURL, 'ayuda', '568', '600', 'yes', '');
}

function openFriend(theURL) {
  //window.open(theURL,'enviaramigo','scrollbars=yes,width=395,height=410');
  winBRopen(theURL, 'enviaramigo', '395', '410', 'yes', '');
}

function openMain(theURL, name) {
  winBRopen(theURL, name, '800', '600', 'yes', 'resizable=yes,toolbar=yes,menubar=yes,status=yes,location=yes,directories=yes');
}

function winBRopen(theURL, Name, popW, popH, scroll, opt) {
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll;
	if (opt != '') {
		winProp = winProp + ',' + opt;
	}
	Win = window.open(theURL, Name, winProp);
	if (parseInt(navigator.appVersion) >= 4) {
		Win.window.focus();
	}
}

