// JavaScript Document
function bilder_upload(Upload_Doc){ 
	var f=window.open(Upload_Doc,"upload","resizable=yes,copyhistory=yes,toolbar=yes,location=yes,directories=yes,status=no,menubar=yes,scrollbars=yes,width=750,height=500,left=20,top=20");
	f.focus();
}

function bilder_upload2(Upload_Doc){ 
	var f=window.open(Upload_Doc,"upload","resizable=no,copyhistory=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=770,height=600,left=20,top=20");
	f.focus();
}

function popupwin(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';
	var f=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);
	f.focus();
}

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';
	var f=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);
	f.focus();
}

function namosw_goto_byselect(sel, targetstr){
	var index = sel.selectedIndex;
	if (sel.options[index].value != '') {
		if (targetstr == 'blank') {
			window.open(sel.options[index].value, 'win1');
		} else {
			var frameobj;
			if (targetstr == '') targetstr = 'self';
			if ((frameobj = eval(targetstr)) != null) frameobj.location = sel.options[index].value;
		}
	}
}

function popup2(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';
	var f=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);
	f.focus();
	if (!f.opener)f.opener = self;
}

function popup(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';
	var f=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);
	f.focus();
	if (!f.opener)f.opener = self;
}

function getDOM(){
   var DOM='';
   if (document.getElementById){ DOM="W3C"; }
   if (document.layers){ DOM="NN"; }
   if (document.all){ DOM="IE"; }
   return DOM;
}

function textupdate(id, text) {
	if(getDOM()=="W3C" && text != '') {
		//obj = document.getElementById(id);
		//document.all[id].childNodes[0].data = text;
		//document.getElementsByTagName('span')[39].id
		document.getElementById(id).childNodes[0].data = text;
		//obj = document.all[id];
		//obj = document.getElementsByName('linie1')[0].value = text;
		//obj.childNodes[0].data = text;
		//alert("asdf1="+text+"= ="+id+"= ="+navigator.appName+"= ="+getDOM()+"= ="+document.getElementsByTagName('span')[39].attributes);
	} 	else if (getDOM()=="IE" && text != ''){
			//alert("asdf2="+document.all[id].childNodes[0].data);
			document.all[id].childNodes[0].data = text;
		}	else if (getDOM()=="NN" && text != ''){
				document.layers[id].childNodes[0].data = text;
				//alert("asdf3=");
			}
}

function urlupdate(id, text, zahl) {
	if(getDOM()=="W3C" && text != '') {
		//obj = document.getElementById(id);
		//document.all[id].childNodes[0].data = text;
		//document.getElementsByTagName('span')[39].id
		//document.getElementsByTagName('span')[39].attributes
		///document.getElementByName('zielurl')[0].href = text;
		//obj = document.all[id];
		//obj = document.getElementsByName('linie1')[0].value = text;
		//obj.childNodes[0].data = text;
		//alert("asdf1="+"= =");
		document.getElementsByTagName('a')[zahl].href = text;
	} 	else if (getDOM()=="IE" && text != ''){
			//alert("asdf2="+document.all[id].childNodes[0].data);
			//document.all[id].childNodes[0].data = text;
			document.getElementsByTagName('a')[zahl].href = text;
			//alert("asdf2="+document.getElementsByTagName('a')[1].href);
		}	else if (getDOM()=="NN" && text != ''){
				//document.layers[id].childNodes[0].data = text;
				//alert("asdf3="+document.getElementByName('zielurl'));
				document.getElementsByTagName('a')[zahl].href = text;
			}
}

function loeschenbestaetigung()
{
	//if (!confirm("Möchten Sie ganz sicher diese Werbeanzeige löschen?")) //parent.rechts.location.href.reload(); //history.go(0);
	//alert(parent.rechts.location.href);
}

