// 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();
}


// >>>>> VOTING
function votingopen(){
	window.open('/de/voting/','voting', 'toolbar=no, menubar=no, sreenY=10, screenX=20, top=10, left=20, resizable=yes, scrollbars=no, width=400, height=490');
}

function voting_admopen(){
	window.open('/de/voting_adm/','voting_adm', 'toolbar=no, menubar=no, sreenY=10, screenX=20, top=10, left=20, resizable=yes, scrollbars=no, width=600, height=600');
}


// >>>>> KURSANMELDUNG
function anmelden_open(){
	window.open('/kursanmeldung.php','anmelden', 'toolbar=no, menubar=no, sreenY=10, screenX=20, top=10, left=20, resizable=no, scrollbars=yes, width=500, height=600');
}



	/* popup sprache, hilfe, etc. ... */
function pop01(pwhat,pwidth,pheight){
   /* vertikale und horizontale position */
   posX = screen.availWidth-50-pwidth;
   posY = screen.availHeight-50-pheight;
   /* hoehe des platzhalters (blank.gif) */
   imgY = pheight-80;
   Para = 'toolbar=no,menubar=no,resizable=no,scrollbars=yes,width='+pwidth+',height='+pheight+',screenX='+posX+'screenY='+posY+',top='+posY+',left='+posX; 
   zoomfenster=window.open('/help/index.php?sess=' + pwhat + '&imgY=' + imgY + '','PopOut',Para);
   zoomfenster.focus(); fensterlcheck=true;
   }
