function new_window(url, width1, height1) {
handle = window.open(url,"Fenster","width="+width1+",height="+height1+",left=0,top=0,menubar=0,toolbar=0,resizable=1,scrollbars=1");
return handle;
}
function toggle_visibility(name, state)
{
if (state == 'on')
document.getElementsByName(name)[0].getElementsByTagName('img')[0].style.visibility = "visible";
else
document.getElementsByName(name)[0].getElementsByTagName('img')[0].style.visibility = "hidden";
}
function wahl(formularname, feldname, bildname)
{
opener.document.formularname.feldname.value = bildname;
this.window.close();
}
function expand(desktopURL,picw,pich)
{
picturewindow = window.open( desktopURL, "stdpic", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,screenX=0,screenY=0,width="+picw+",height="+pich)
}
// function farbwechsel(which, rel) {
// if (rel == "in") {
// if (which.id != document.getElementById(auswahl).id) {
// which.style.backgroundColor = "#025832";
// document.getElementById(auswahl).style.backgroundColor = "#a6a6a6";
// }
// } else {
// if (which.id != document.getElementById(auswahl).id) {
// which.style.backgroundColor = "#a6a6a6";
// document.getElementById(auswahl).style.backgroundColor = "#025832";
// }
// }
// }
//
// function openlink(name) {
//
// if ( name == 'runforhelp') {
// url = "http://www.meeting-in-bremen.de";
// window.open(url, '');
// } else if ( name == 'nordic') {
// window.location.href = "index.php?section=training&action=nordic"
// }
// }
//
// function mailCheck() {
// var absender = document.mailform.absender.value;
// var Ausdruck = /(\w.+)[@](\w.+)/;
// var test = Ausdruck.match(absender);
// alert(test);
// return false;
// }
//
// function insertBBCode(elementName, target)
// {
// mytext = prompt("Bitte geben Sie den Text ein","");
// switch (elementName)
// {
// case "b_bold":
// mytext = "" + mytext + "";
// break;
// case "b_italic":
// mytext = "" + mytext + "";
// break;
// case "b_underline":
// mytext = "" + mytext + "";
// break;
// }
// target[0].value += mytext;
// }
//
// function insertBBImage(imagepath)
// {
// mytext = "
";
// insertInOtherWindow(mytext);
// }
//
// function insertBBLink(target)
// {
// myurl = prompt("Bitte geben Sie die URL ein","http://");
// mytext = prompt("Optional: Bitte geben Sie eine Beschreibung ein","");
// if (mytext == "") mytext = myurl;
// mytext = "" + mytext + "";
// target[0].value += mytext;
// }
//
// function confirmChangePage(url)
// {
// retval = confirm("Alle Änderungen gehen verloren, wenn diese Seite verlassen wird");
// if (retval)
// {
// window.location.href = url;
// }
// }