/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:*/
// +-------------------------------------------------------------------------------+
// |                                                                               |
// |       EasyWeb Számítástechnikai Szolgáltató Kereskedelmi és Oktató Bt.        |
// |                                                                               |
// +-------------------------------------------------------------------------------+
// |                                                                               |
// | Web: http://www.easyweb.hu                                                    |
// | E-mail: info@easyweb.hu                                                       |
// | Statikus és aktív honlapok fejlesztése, tárhely, domain, mail szolgáltatások. |
// | Linuxos megoldások.                                                           |
// |                                                                               |
// +-------------------------------------------------------------------------------+
/**
 *
 * @author EasyWeb <info@easyweb.hu>
 * @copyright Copyright &copy; 2004, EasyWeb
 *
 */

function my_confirm() { return confirm("Biztos benne?"); }
function l(url) { window.location = url; }
function wopen(url) { win = window.open(url, 'newwin'); }
function myPopUp(url,width,height,name){
    var open_args="toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0, resizable=1,width="+width+",height="+height;
    var ablak = window.open(url,name,open_args);
    ablak.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);
    ablak.focus();
    return false;

}
function myPopUp2(url,width,height,name){
    var open_args="toolbar=0,location=0,directories=0,status=0,scrollbars=1,menubar=0, resizable=1,width="+width+",height="+height;
    var ablak = window.open(url,name,open_args);
    ablak.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);
    ablak.focus();

}

function copyclipboard(value) { window.clipboardData.setData('Text', value); }
function toggle_all(frm, _name)
{

    with (frm) {
        for (var i=0; i < elements.length; i++) {
            if (elements[i].name == _name)
                elements[i].checked = !elements[i].checked;
        }
    }


}
function setPointer(obj, txt, action, bg)
{

    if (obj.style != 'undefined') {
        obj.style.background = bg;
    }

}
