function check_rrop() {

        if(window.rrop) {
                rrop = window.rrop;
        }
        else {
                rrop = null;
        }

        return rrop;

}

rrop = check_rrop();

function open_rrop_draw (page_ID) {

        if(rrop == null) {
                rrop = window.open('page/page_ID/' + page_ID,'rrop_draw','width=1024,height=710');
                rrop.focus();
                rrop.moveTo((screen.width/2)-512,(screen.height/2)-355);
        }
        else {
                if(rrop != null) {
                        if(!rrop.closed) {
                                rrop.focus();
                                rrop.moveTo((screen.width/2)-512,(screen.height/2)-355);
                        }
                        else {
                                rrop = window.open('page/page_ID/' + page_ID,'rrop_draw','width=1024,height=710');
                                rrop.focus();
                                rrop.moveTo((screen.width/2)-512,(screen.height/2)-355);
                        }
                }
        }

}

function focus_rrop_text () {
	if(opener.opener != null) {
		opener.opener.focus(); 
	}
	else {
		opener.focus();
	}
}

function show_rrop_text (page_ID, anker) {
	if(opener.opener != null) {
		opener.opener.location.href='http://rrop.schaumburg.de/page/page_ID/'+page_ID+'#'+anker;
		opener.opener.focus();
	
	}
	else {
		opener.location.href='http://rrop.schaumburg.de/page/page_ID/'+page_ID+'#'+anker;
		opener.focus();
	}
}


function open_rrop_legend (std_link) {
	legend = window.open(std_link + '/call/legend','rrop_legend','width=800,height=710,scrollbars=yes');
	legend.focus();
}

