<!--

function makeprice () {
  document.form1.neupreis.value =   document.form1.euro.value + "." +   document.form1.cent.value

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function getselvalue(str) {//übergibt Pulldown-Value
  document.rubriksubmit.RubrikID.value = str;
}

function popUp(URL,b,h) {
day = new Date();
id = day.getTime();
f = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + b + ",height=" + h + ",left = 259.5,top = 112"
eval("page" + id + " = window.open(URL, '" + id + "', '" + f + "');");
}

function filename () {
// Abschneiden des Pfades, Dateiname als Ergebnis
 var myString, a, b, fname;
  myString = document.form1.FILE1.value;
  //pfad="hallo";
  a = myString.lastIndexOf("\\");
  b = myString.length;
  fname = myString.substring(a+1,b);
  document.form1.fname.value = fname;

}

function confirmSubmit(message)
{
var agree=confirm(message);
if (agree)
	return true ;
else
	return false ;
}



function anpassen () {
var breite, hoehe;
breite = this.document.images[0].width;
hoehe = this.document.images[0].height;
hoehe = hoehe + 100;
breite = breite + 100;
self.resizeTo(breite,hoehe)
self.moveTo((screen.width-breite)/2,(screen.height-hoehe)/2)
self.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
//winName.focus();
}

function aktionpopup(theURL) { //v2.0
var winName = "Aktionsfenster";
var neuFenster =  window.open(theURL,winName,"width=388,height=500,left=10,top=10,scrollbars=no,directories=no");
neuFenster.focus();
}

function angebotpopup(theURL) { //v2.0
var winName = "Aktionsfenster";
var neuFenster =  window.open(theURL,winName,"width=580,height=618,left=10,top=10,scrollbars=no,directories=no");
neuFenster.focus();
}

function praesenzpopup(theURL) { //v2.0
var winName = "Praesenzfenster";
var neuFenster =  window.open(theURL,winName,"width=600,height=620,left=20,top=20,scrollbars=no,directories=no");
neuFenster.focus();
}

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}

//-->

