// aufruf fuer javascript:
  function ebp_open() {
    ebp = window.open("http://vip.stgw.at/php/start.php?Client=STGW&Pin=mJ2tB15c","ebp_hauptfenster","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=790,height=544");
  }


//the next 3 lines are browser detection for user-agent DOMS 
ns4 = (document.layers) ? true:false //required for Functions to work 
ie4 = (document.all) ? true:false //required for Functions to work 
ng5 = (document.getElementById) ? true:false //required for Functions to work 


function hideLayer(n) {
	if (ng5) document.getElementById('layer' + n).style.visibility = "hidden";
	else if (ns4) document.layers["layer" + n].visibility = "hide";
	else if (ie4) document.all["layer" + n].style.visibility ="hidden";


}

function showLayer(n) {
	//hideLayer();
	if (ng5) document.getElementById('layer' + n).style.visibility = "visible";
	else if (ns4) document.layers["layer" + n].visibility = "show";
	else if (ie4) document.all["layer" + n].style.visibility = "visible";

}


// e-dvertising - Hinterdorfer & Edlinger OEG, http://e-dvertising.at/
if(self.name == '') {
	self.name = "cms_main";
}

// >>>>> druck popup <<<<<
function openWindowPrint(){
	query_string = window.top.location.search;
	if (query_string){query_string_p = (query_string + '&p=y');}
	else {query_string_p = ('?p=y');}

	window.open(query_string_p, 'drucken', 'toolbar=no, menubar=yes, screenY=10, screenX=20, top=10, left=20, resizable=yes, scrollbars=yes, width=640, height=600');
}


// >>>>> bilder popup <<<<<
function openWindowImage(pic_filename, width, height, popup_title, popup_alt){
	var_left = (screen.availWidth-width)/10;
	var_up = (screen.availHeight-height)/10;

	window.open('/popup.php?pic_filename=' + pic_filename + '&width=' + width + '&height=' + height + '&popup_title=' + popup_title + '&popup_alt=' + popup_alt + '', 'zoom', 'toolbar=no, menubar=no, screenY='+var_left+', screenX='+var_up+', left='+var_left+', top='+var_up+', resizable=no, scrollbars=no, width=' + width + ', height=' + height);
}


// >>>>> admin popup <<<<<
function openWindowAdmin(x) {
	var_left = (screen.availWidth-804)/10;
	var_up = (screen.availHeight-640)/10;

	var adminpopup = window.open('', 'adminpopup','width=804, height=640, screenY='+var_left+', screenX='+var_up+', left='+var_left+', top='+var_up+', scrollbars=yes, menubar=yes, locationbar=no, resizable=yes, status=yes');

	//funct auch im opera
	document.forms[x].submit();
	if (window.focus) {adminpopup.focus()}

	//funct nicht im opera!!!(testet in 6.01)
	//document.getElementById(x).submit();
	return;
}


// >>>>> media library popup <<<<<
function openWindowLib(x) {
	var_left = (screen.availWidth-824)/6;
	var_up = (screen.availHeight-640)/6;

	medialib = window.open('', 'medialib', 'width=824, height=640, screenY='+var_left+', screenX='+var_up+', left='+var_left+', top='+var_up+', scrollbars=yes, menubar=yes, locationbar=no, resizable=yes,status=no');
	document.forms[x].submit();
	medialib.focus();
	return;
}


// >>>>> validation-fenster schließen und opener reloaden <<<<<
function close_validation(opener_href){
	opener.location.href = opener_href;
	window.close();
}
