function DoNothing(sMsg,sUrl,sLine){
		return true;
}	

function PrintReceipt(){
		window.onerror = DoNothing;
		window.print();
}
	
	
function calendarDateClickHandler(){
  if (event != null){
    document.all('wkdDateToLoad').value = event.srcElement.getAttribute('date');
    document.all('frmFlexicardOrder').submit();
  }
}

function dateEventHandler(vfRestoreEvent, vsStatusText){
  var oEventRaisingElement, oChildElement, sSPANClass;
    
  oEventRaisingElement = window.event.srcElement;
  if (oEventRaisingElement.tagName == 'SPAN') oEventRaisingElement = oEventRaisingElement.parentNode;
  oChildElement = oEventRaisingElement.childNodes(0)
  
  if (!vfRestoreEvent){
    if (oChildElement.className == 'clsCurrentMonthActualDate')
      sSPANClass = 'clsCurrentMonthActualDate';
    else
      sSPANClass = 'clsSelectedDate';
      
    msRestoreClassNameTD = oEventRaisingElement.className;
    msRestoreClassNameSPAN = oEventRaisingElement.childNodes(0).className;
    oEventRaisingElement.className = 'clsSelectedDate';
    oChildElement.className = sSPANClass;
  }
  else{
    oEventRaisingElement.className = msRestoreClassNameTD;
    oChildElement.className = msRestoreClassNameSPAN;
  }
}

//Befor the delete action is performed

function AddressDelete(sURL){
  if(window.confirm('Wollen Sie die Reservation wirklich löschen?')){
    window.location.href=sURL;
  }
}

