function swapImage(selObj, image) 
{
  selObj.src=image;
//  window.document.images[i].src=image;
}  

function showImage(image) 
{
  //document.forms['my_cal_form'].elements['Lieferunterbrechung_bis']
  window.document.images['myPreview'].src=image;
}  

function displayDate()
{
//date function
RightNow=new Date();
var themonth;
var month=RightNow.getMonth()+1;
if (month==1) themonth = "January";
if (month==2) themonth = "February";
if (month==3) themonth = "March";
if (month==4) themonth = "April";
if (month==5) themonth = "May";
if (month==6) themonth = "June";
if (month==7) themonth = "July";
if (month==8) themonth = "August";
if (month==9) themonth = "September";
if (month==10) themonth = "October";
if (month==11) themonth = "November";
if (month==12) themonth = "December";

var date=RightNow.getDate();
var year=RightNow.getYear();
var day=RightNow.getDay();
if (year==100){year="2000";}
if (year==101){year="2001";}
if (year==102){year="2002";}
if (year==103){year="2003";}
if (year==104){year="2004";}
if (year==105){year="2005";}
document.write(themonth+" "+date+", "+year+"");
}

function setAbsolutePosition()
{
// works with 768 musst be calculated for 480
  hoehe=screen.availHeight;
  // 3*20 menu height + 60 bottom height + 60 top height
  hoehe=hoehe-424;
//  alert(hoehe);
  document.write("<table border=0 cellpadding=0 cellspacing=0 style=position:absolute;top:"+hoehe+"px;");  
}

function empty()
{}

function MM_preloadImages() 
{ //v3.0
  var d=document; 
  
  if(d.images)
  { 
    if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
    for(i=1; i<a.length; i++)
    {
      if (a[i].indexOf("#")!=0)
      { 
        d.MM_p[j]=new Image; 
        d.MM_p[j++].src=a[i]; 
      }
      progress="img/progress/balken"+i+".jpg";
//      alert(progress);
      window.document.images['myPreview'].src=progress;                      
      window.status = "loading image [" + (i+1) +"]";
      
    }
    window.document.images['myPreview'].src=a[0];                
  }
}
