function AF_WindowOpen(url, win_name, width, height, resizeable)
{
	if(resizeable != 1)
		resizeable = 0;

	var top = (screen.height-height)/2;
	var left = (screen.width-width)/2;
	hWin = window.open(url, win_name, "width=0,height=0,left=0,top=0,toolbar=0,scrollbars="+resizeable+",resizeable="+resizeable);
	hWin.moveTo(left,top);	
	hWin.resizeTo(width,height);	
	hWin.focus();
}

function fillDateOptions() {		
	vn_index = $('docFilterObject').selectedIndex;
	vn_value = $('docFilterObject').options[vn_index].value;
	url = '/systems/kir/main.php?do=ajaxGetFilterDates&id='+vn_value;
	params = '';
	$va_options = new Ajax.Updater('docFilterDate',url,{method: 'get',parameters: params,evalScripts:true});
}