/*
Die Funktion öffnet eine URL in einem skalierten Fenster und bringt diese in den Vordergrund
*/

//alert("script geladen");

/*
function popup_ms(url){
 var popup = null;
  popup=window.open(url,'microsite','location=no,status=no,width=765,height=585');
  if (document.images && popup != null) {
	popup.focus();
  }
}
*/


function do_popup (url, thewidth, theheight){
	var popup = null;
	var woptions = 'location=no, status=no, width=' + thewidth +  ', height=' + theheight;

	popup=window.open(url, 'microsite', woptions);

	if (document.images && popup != null) {
		popup.focus();
	}
}

// Diese Funktion öffnet ein neues Fenster nach Abfrage ...
function ask_popup(url, thewidth, theheight, textmeldung) {

  check=confirm(textmeldung);

  if (check == true) {
     do_popup (url, thewidth, theheight);
  }
  
  return false;

}

function toggle_obj_by_id(objid) {

    objekt = document.getElementById(objid);

		if (objekt.style.display == "none") {
			objekt.style.display = "block";
		} else {
  		if (objekt.style.display == "block") objekt.style.display = "none";
    }
		
}