/*
	common/functions.js ... javascripty
	$Id$
*/

function ins_url(link, url, text) {
    if (text == '' || typeof(window.opera) != 'undefined') {
        return true;
    }
    var is_confirmed = confirm(text);
    if (is_confirmed) {
        link.href = url;
    }
    return is_confirmed;
}

	var okno = '';
	var stranka = '';
	function openw(cesta, width, height){
		if (!okno.closed && okno.location && stranka == cesta) {
			okno.focus();
		}  
		else {
			okno = window.open(cesta, 'ahoj', 'width='+width+', height='+height+', resizable=no, scrollbars=yes');
			stranka = cesta;
		}  
		if (!okno.opener) {
  		okno.opener = self;
  	}
		if (window.focus) {
			okno.focus();
		}  
    return false; 
	}   