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) {
		Untitled_1_03_over = newImage("../images/menin_03-over.gif");
		Untitled_1_05_over = newImage("../images/menin_05-over.gif");
		Untitled_1_07_over = newImage("../images/menin_07-over.gif");
		Untitled_1_09_over = newImage("../images/menin_09-over.gif");
		preloadFlag = true;
	}
}

function go1(){
if (document.form.select1.options[document.form.select1.selectedIndex].value != "none") {
location = document.form.select1.options[document.form.select1.selectedIndex].value
		}
	}
function noEntry() {
if ((document.form.kam.value == "") || 
(document.form.kam.value == " ")) {
alert("Geben Sie das Objekt- oder Staßename in das Feld SUCHE ein.\nDanke.");
return false;
}
else return true;
}

function noSN() {
if ((document.form.c1.value == "") || 
(document.form.c1.value == " ") || (document.form.c2.value == "") || 
(document.form.c2.value == " ") || (document.form.c3.value == "") || 
(document.form.c3.value == " ") || (document.form.c4.value == "") || 
(document.form.c4.value == " ")) {
alert("Bitte, geben Sie die Seriennummer Ihres Programms ein.\nDie Seriennummer ist auf der inneren Seite des Umschlag gezeichnet oder\nSie kennen die Seriennummer auch im Program Menu Hilfe –> Über  finden");
return false;
}
else return true;
}

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}

var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

function ypGetMap(i){
if(document.getElementById){
return document.getElementById("_ypMap"+i);
}
}
function ypGetEnt(i){
if(document.getElementById){
return document.getElementById("_ypEnt"+i);
}
}
function ypOver(i){
var e=ypGetMap(i);
if(e){
e.className="ypMapHover";
e.style.zIndex|=1024;
}
e=ypGetEnt(i);
if(e){
e.className="ypMapHover";
}
}
function ypOut(i){
var e=ypGetMap(i);
if(e){
e.className="ypMapNormal";
e.style.zIndex&=~1024;
}
e=ypGetEnt(i);
if(e){
e.className="ypMapNormal";
}
}