/* 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; 2006, EasyWeb
 *
 */

function changeStyleClass(obj, newClass)
{

    if (typeof obj.className != 'undefined') {
        obj.className = newClass;
        return true;
    } else {
        return false;
    }

}

function my_confirm() { return confirm("Are you sure?"); }
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 CheckEmpty(val) {

      len=val.length;

      i=0;

      for(position=0;position<len;position++) {

         if(val.charAt(position)!=' ' && val.charAt(position)!='\t' && val.charAt(position)!='\n') { i++; } }

      return i;

}

function onOver(sender){
  s = document.getElementById(sender);
  s.className += " over";
}

function onOut(sender){
  s = document.getElementById(sender);
  s.className=s.className.replace(" over", "");
} 


