function change(nr,objekt) {
 window.document.images[nr].src = objekt.src;
} 

function show_div(n) {
 //if (window.opera) {} else {
 document.getElementById(n).style.visibility = "visible"; 
// document.n.style.visibility = "visible"; 

}

function hide_div(n) {
 //if (window.opera) {} else 
 document.getElementById(n).style.visibility = "hidden"; 
// document.n.style.visibility = "hidden"; 
}

function ImageSwap(rmImage, rmSrc){
  var objStr,obj;
  if(document.images){
    if (typeof(rmImage) == 'string') {
      objStr = 'document.' + rmImage;
      obj = eval(objStr);
      obj.src = rmSrc;
    } else if ((typeof(rmImage) == 'object') && rmImage && rmImage.src) {
      rmImage.src = rmSrc;
    }
  }
}

function PreloadImages() {
  if (document.images) {
    if (typeof(document.rm) == 'undefined'){
      document.rm = new Object();
    }
    document.rm.loadedImages = new Array();
    var argLength = PreloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      document.rm.loadedImages[arg] = new Image();
      document.rm.loadedImages[arg].src = PreloadImages.arguments[arg];
    }
  }
}

function change_bg(id,color) 
{
document.getElementById(id).style.backgroundColor=color;
}

function change_img(id,path) 
{
document.getElementById(id).style.backgroundImage='url('+path+')'; 
}

function change_bgimg(id,color,path) 
{
document.getElementById(id).style.backgroundColor=color; 
document.getElementById(id).style.backgroundImage='url('+path+')'; 
}

function track_changes()
{
vorlage = document.anzeigen.vorlage.value;
groesse = document.anzeigen.groesse.value;
farbe = document.anzeigen.farbformat.value;
format = document.anzeigen.dateiformat.value;
a = 'anzeigen/thumbnails/'+vorlage+'_'+groesse+'_'+farbe+'.gif';
ImageSwap('thumbnail', a);
document.anzeigen.action = "anzeigen/"+vorlage+"_"+groesse+"_"+farbe+"."+format;
}
