//  This script and next are Copyright(C)1998-2001 Hapu Estudio Creativo - http://www.hapu.com
//  feel free to edit/use this script so long as you keep this copyright in the script

    function barra() {
        window.status='Turcko Mundo';
        return true;
    }

    function abrir(pag, nomb, carac) {
            var vent = open(pag, nomb, carac);
            if (!vent.closed) { vent.focus(); }
            if (vent.opener == null) vent.opener = window;
        vent.opener.name = "main";
        return vent;
    }

    function ventana(url,width,height,scr,nomb) {
        var wintop = (screen.height - height) / 3;
        if (nomb=='popup2') wintop = wintop + 30;
        var winleft = (screen.width - width -25) / 2;
        popup = abrir(url,nomb,'toolbar=no,location=no,status=no,scrollbars='+scr+',directories=no,menubar=no,resizable=yes,width='+width+',height='+height+',top='+wintop+',left='+winleft);
    }

	function FocusField(field) {
		document.forms[0][field].focus();
		return true;
	}

    function printpage() {
        if (window.print) {
            window.print();
        } else {
            alert('To print this page, select Print Frame from the file menu.');
        }
    }

    // Function getKey from The JavaScript Source!! http://javascript.internet.com
    function getKey(keyStroke) {
        isNetscape=(document.layers);
        // Cross-browser key capture routine couresty
        // of Randy Bennett (rbennett@thezone.net)
        eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
        which = String.fromCharCode(eventChooser).toLowerCase();
        for (var i in key) if (which == i) window.location = key[i];
    }

    // Function keyAct by Hapu Estudio Creativo - hapu@correo.com.ar
    // Modify function getKey to page with forms aplication.
    function keyAct(swich) {
        if (swich=="on") {
            document.onkeypress = getKey;
        } else {
            document.onkeypress = "";
        }
    }

