function cambiamail (buzon) {
	var res = "";
	for (var n = 0; n < buzon.length; n++) res += String.fromCharCode(buzon.charCodeAt(n));
	if (res.indexOf('@') < 0) res = res + '@' + 'motostar.net';
	location = "mail" + "to:" + res;
}

function cambiamailmaster (buzon) {
	var res = "";
	for (var n = 0; n < buzon.length; n++) res += String.fromCharCode(buzon.charCodeAt(n));
	if (res.indexOf('@') < 0) res = res + '@' + 'izeki.com';
	location = "mail" + "to:" + res;
}

function openWndGeneral (paginaweb, nombrewnd, propiewnd) {
    remote = window.open(paginaweb, nombrewnd, propiewnd);
    if (remote != null) {
        if (remote.opener == null) remote.opener=self;
        remote.focus();
    }
}

function abrirPDF (pag)
{	
	remote = window.open('/images/'+pag, 'DocumentoPDF', 'width=500,height=500,resizable=0,status=0,menubar=0,scrollbars=0');
	if (remote!=null) {
		if(remote.opener == null) remote.opener=self;
		remote.focus();
	} 
}

function openPlano (consulta)
{
	remote = window.open('/zoomplano.jsp?c='+consulta, consulta, 'width=550,height=530,resizable=1,status=0,menubar=0,scrollbars=0');
	if (remote!=null) {
		if(remote.opener == null) remote.opener=self;
		remote.focus();
	} 
}

function openZoom (titulo, foto)
{
	remote = window.open('/zoomfoto.jsp?t='+titulo+'&f='+foto, "zoom_foto", 'width=600,height=600,resizable=1,status=0,menubar=0,scrollbars=1');
	if (remote!=null) {
		if(remote.opener == null) remote.opener=self;
		remote.focus();
	} 
}

