// JavaScript Document
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
		{
 		 	toolbar_str = toolbar ? 'yes' : 'no';
 		 	menubar_str = menubar ? 'yes' : 'no';
  			statusbar_str = statusbar ? 'yes' : 'no';
  			scrollbar_str = scrollbar ? 'yes' : 'no';
  			resizable_str = resizable ? 'yes' : 'no';
  			window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
		}


function open_helpwindow(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function windowPopUp(theURL,winName) { 
	popup = window.open(theURL,winName,'scrollbars=1,width=500, height=300');
	popup.focus();
	}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		but_anzeigen_over = newImage("images/but_anzeigen-over.gif");
		but_shops_over = newImage("images/but_shops-over.gif");
		but_mein_minfin_over = newImage("images/but_mein-minfin-over.gif");
		but_anbieten_over = newImage("images/but_anbieten-over.gif");
		but_hilfe_over = newImage("images/but_hilfe-over.gif");
		preloadFlag = true;
	}
}

function delsearch() {
	document.getElementById("searchbar_input").value="";
	}
