function confDel( url )
{
if( confirm( 'Czy na pewno?') )
{
window.top.location.href = url;
}
}

function DataMasc(AEvent,id)
{   var correct=false;

    if (window.Event)
    {
        kodKlawisza = AEvent.which;
    } else
    {
        kodKlawisza = AEvent.keyCode;
    }


    var el=document.getElementById(id);
    //alert (el.selectionStart);

    var carepos;
    if (typeof el.selectionStart != "undefined")
        carepos= el.selectionStart;
    else if (document.selection)
        carepos= Math.abs(document.selection.createRange().moveStart("character", -1000000));

    if ((carepos==4)||(carepos==7))
    {
      if (kodKlawisza==45) correct=true;
    } else
    if ((carepos<10)&&((kodKlawisza>=48) && (kodKlawisza<=48+9)))
      correct=true;

    if (kodKlawisza==8) correct=true;

    if (carepos!=el.value.length)
        correct=false;
    //correct=true;
    return correct;

}
function dofocus(id)
{

  var kodKlawisza;
    var el=document.getElementById(id);
    if (el.className=="textboxblur")
        el.value="";
    el.className="textboxfocus";
    
        if(el.name=="Password")
            el.type="password";
            
        if(el.name=="Password2")
            el.type="password";
            
        if(el.name=="OldPassword")
            el.type="password";
        el.style.borderColor='#c2c6d0';


}

function doblur(id)
{
    var el=document.getElementById(id);
    if (el.value.length==0)
    {   el.className="textboxblur";
        el.value=el.defaultValue;
    }

}



