
resetBoxList = ['MainCOntentDIV']

function flip(Obj) {
    Obj.className = 'NavigationBarButtonON'
}

function flap(Obj) {
    Obj.className = 'NavigationBarButtonOFF'
}

function resetLayout(){

    for(i in resetBoxList){
        
        sID = resetBoxList[i];

        if(document.getElementById(sID)){
            Obj = document.getElementById(sID);
            pWidth  = Obj.parentNode.clientWidth;
            pHeight = Obj.parentNode.clientHeight;

            cTop    = parseInt(Obj.currentStyle.top,10);
            cRight  = parseInt(Obj.currentStyle.right,10);
            cBottom = parseInt(Obj.currentStyle.bottom,10);
            cLeft   = parseInt(Obj.currentStyle.left,10);

            cWidth  = pWidth - cRight - cLeft;
            cHeight = pHeight - cTop - cBottom;

            Obj.style.width  = cWidth + 'px';
            Obj.style.height = cHeight+ 'px';
        }
    }
}

function verifyForm(){
    Frm = document.getElementById('FriendMailForm');
    if(Frm.ForFriend.value!='' && Frm.FromFriend.value!=''){
        return true;
    } else {
      alert('Vyplnené musia byť všetky polia!');
      return false;
    }
}
window.onresize = resetLayout;

//window.resizeTo(1024,768)