﻿function onUpdating(name, x){

  
    var other = $get('ctl00_HFOther'); 
    
    if (other.value =='other')
    {
        return;
    }
    
    var n = '';
    if (name != '') 
        n = name + '_';
    
    

    var aa= $get('ctl00_Main_'+ n + 'PanelCover'); 
    
    aa.style.visibility = "visible";
   
    aa.style.height = "100%";
    
 
    // get the update progress div
    var updateProgressDiv = $get('ctl00_Main_'+ n + 'PanelWait'); 

//    // make it visible
    updateProgressDiv.style.display = '';

var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  
  
  
   var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }



    var windowwidth =myWidth;
    
    //alert(myWidth);

     

    if (x == 457)
        x = $get('DivMain').offsetLeft + 614 / 2 - 4;
    else 
    {
        x = windowwidth/2;        
    }
    

    x = parseInt(x + scrOfX);    

//var x = 457;
//var x = 610;
var y = 460;

   
    //    set the progress element to this position
    Sys.UI.DomElement.setLocation (updateProgressDiv, x, y); 
    
      
}

function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return [ scrOfX, scrOfY ];
}

function onUpdated( name) {

 var n = '';
    if (name != '') 
        n = name + '_';
        
//    // get the update progress div
    var updateProgressDiv = $get('ctl00_Main_' + n + 'PanelWait');

    
//    // make it invisible
    updateProgressDiv.style.display = 'none';


    var aa = $get('ctl00_Main_' + n + 'PanelCover');

    
    
    aa.style.visibility = "hidden";
    
    clearIt();
   
   
    
}


function clearIt()
{

//alert('clearIt');
    var other = $get('ctl00_HFOther'); 
    
   other.value = 'clr';

}    


function clearIt2()
{

//alert('clearIt');
    var other = $get('ctl00_HFOther'); 
    
   other.value = '';

}    

function setIt()
{

//alert('setIt');
   var other = $get('ctl00_HFOther'); 
    
   other.value = 'other';
   
}  


function removeFilter(name)
{
    var element = $get(name);
    if (element.style.filter && element.style.removeAttribute)
    {
        element.style.removeAttribute('filter');
    }

}  


//ua, mert névütközés a myprofileon

function onUpdating2(name, x){

    var other = $get('ctl00_HFOther'); 
    
    if (other.value =='other')
    {
        return;
    }
    
    var n = '';
    if (name != '') 
        n = name + '_';
    
    

    var aa= $get('ctl00_Main_'+ n + 'PanelCover'); 
    

    aa.style.visibility = "visible";
   
    aa.style.height = "100%";
    
 
    // get the update progress div
    var updateProgressDiv = $get('ctl00_Main_'+ n + 'PanelWait'); 

//    // make it visible
    updateProgressDiv.style.display = '';



//var x = 457;
//var x = 610;
var y = x;

var x2 = 457;
   
    //    set the progress element to this position
    Sys.UI.DomElement.setLocation (updateProgressDiv, x2, y); 
    
      
}


function onUpdated2( name) {

 var n = '';
    if (name != '') 
        n = name + '_';
        
//    // get the update progress div
    var updateProgressDiv = $get('ctl00_Main_' + n + 'PanelWait'); 
//    // make it invisible
    updateProgressDiv.style.display = 'none';
   
   
    var aa= $get('ctl00_Main_' + n +'PanelCover'); 
    aa.style.visibility = "hidden";
    
    clearIt();
   
   
    
}

