function getPage(task) {
   document.getElementById('loading').style.display='block';
   var url = 'http://www.oltoztesdfelahutod.hu/modules/ajaxbridge.php';
   var params = 'page=' + task;
   var ajax = new Ajax.Updater(
	          {success: 'results'},url,{method: 'get', parameters: params, evalScripts: true, onFailure: reportError, onSuccess: reportOk});
}

function reportError(request) {
  alert('Hiba történt!');
}

function reportOk(request) {
  document.getElementById('loading').style.display='none';
}

function postForm(request){
   document.getElementById('loading').style.display='block';
      new Ajax.Updater("results", "http://www.oltoztesdfelahutod.hu/modules/ajaxbridge.php" , 
      {
        asynchronous:true, 
        evalScripts:true, 
        parameters:Form.serialize(document.getElementById('steping')), onSuccess: reportOk, onFailure: reportError 
      }); 
      return false;
	  };

function uploadImage(request){
   document.getElementById('loading').style.display='block';
      new Ajax.Updater("uploadresult", "http://www.oltoztesdfelahutod.hu/modules/ajaxbridge.php" , 
      {
        asynchronous:true, 
        evalScripts:true, 
        parameters:Form.serialize(document.getElementById('imaging')), onSuccess: reportOk, onFailure: reportError 
      }); 
      return false;
	  };

function errorshow(request){
  alert('df');
  Lightview.show({href: '#errormsg', options: {width: 450, height: 45}});
  }

