
function WOpen(destination,name,w,h,opt) {
	if(opt) opt = ","+opt;
	return window.open(destination,name,"width="+w+",height="+h+opt);
}


function InitAll() {

	if(typeof Init == 'function') {
		Init();		// this site
	}
}


function switchModAbs(id) {
	if($('module_abs_'+id).getStyle('display') == 'none') {
		$('module_abs_'+id).setStyle({display: 'block'});
		$('imgModAbs_'+id).src = '/img/layout/arr_up.gif';
	}
	
	else {
		$('module_abs_'+id).setStyle({display: 'none'});
		$('imgModAbs_'+id).src = '/img/layout/arr_down.gif';
	}
}

function switchToArchiveForm() {
	if($('archivedateselect').getStyle('display') == 'none') {
		$('archivedateselect').setStyle({display: 'block'});
		$('archivedateselect_img').src = '/img/layout/arr_up.gif';
	}
	
	else {
		$('archivedateselect').setStyle({display: 'none'});
		$('archivedateselect_img').src = '/img/layout/arr_down.gif';
	}
}

function switchKontoauszug() {
	if($('kontoauszugd').getStyle('display') == 'none') {
		$('kontoauszugd').setStyle({display: 'block'});
		$('kontoauszug_img').src = '/img/layout/arr_up.gif';
	}
	
	else {
		$('kontoauszugd').setStyle({display: 'none'});
		$('kontoauszug_img').src = '/img/layout/arr_down.gif';
	}
}

function DeleteExternPoint(ele) {

	if(confirm("Der gewählte Eintrag wird unwiederbringlich gelöscht! Sind Sie sicher?")) {
		return true;
	}
	
	return false;
}
	
