// JavaScript Document

function cutpfad() {
var pfad, laenge, position, ergebnis;
pfad = document.form1.file.value;
laenge = pfad.length;
position = pfad.lastIndexOf("\\") + 1;
ergebnis = pfad.substr(position, laenge);
document.form1.dateiname.value = ergebnis;
}

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 confirmSubmit(message) {
var agree=confirm(message);
if (agree)
	return true ;
else
	return false ;
}

function info(message){
alert(message);
}


function messen () {
var imgwidth, imgheight;
imgwidth = this.document.myimage.width;
imgheight = this.document.myimage.height;
document.form1.imgwidth.value = imgwidth;
document.form1.imgheight.value = imgheight;
}

function komma2dez(now){
  eval("ep = document.form1."+now+".value");
  eval("document.form1."+now+".value = ep.replace(/,/,\".\")");
}

function show(){
	document.all.uploadtab.style.visibility = "visible"; 
}  
  
function anpassen () {
var breite, hoehe;
breite = this.document.images[0].width + 40;
hoehe = this.document.images[0].height + 80;
hoehe = hoehe;
self.resizeTo(breite,hoehe)
self.moveTo((screen.width-breite)/2,(screen.height-hoehe)/2)
self.focus();
}

function over(quelle){
document.playerbild.src = quelle;
}

function gehe(url) {
window.location.href = url;
return
} 
