function popup(Adresse,sizex,sizey) {
  //Fenster1.close();
  POPUP = window.open(Adresse, "Zweitfenster", "width="+sizex+",height="+sizey+",left=10,top=10");
  POPUP.focus();
  //alert(sizex+" "+sizey);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/*
formulare 
onsubmit="return validateSubmit()"
onclick="return validateSubmit('');"
*/
function validateSubmit(meldung){
	if(!meldung){
		meldung="Wollen Sie diese Aktion wirklich durchführen ?";
	}
	//check = confirm("Wollen Sie diese Aktion wirklich durchführen ?");
	check = confirm(meldung);
	if (!check){
       return false;
   }
}

/*
link
onclick='checkAktion(this.href); return false;'
*/
function checkAktion(nextadress,meldung){
	if(!meldung){
		meldung="Wollen Sie diese Aktion wirklich durchführen ?";
	}
	check = confirm(meldung);
	if (!check){
       return false;
   }else{
   		window.location.href = nextadress;
   		return true;
   }
}

function unset(targetid){
	var vartarget=document.getElementById(targetid);
	vartarget.value="";
	
}

function setvalue(newvalue,ename)
{
	var vartarget=opener.document.getElementById(ename);
	vartarget.value=newvalue;
	this.window.close();
}

function closeWindow(){
	 top.close();
}

function hinweis (text) {
  alert(text);
}

function newaddr (ziel) {
  window.location.href = ziel;
}
