
var dialogWindow = null;
	var theField = null;
	function ShowDialog(theInput,url) {
		var y2,m2,d2;
        theField = eval( "document." + theInput );
		if (theInput == "dateTo") {
		    sep2 = document.dateFrom.value.split(".");
		    d2 = sep2[0];
		    m2 = sep2[1]-1;
		    y2 = sep2[2];
            if (y2 == "")
                y2 = new Date().getFullYear();
		}
		sep = theField.value.split(".");
		if (sep[2] == "")
		    sep[2] = new Date().getFullYear();

        dialogWindow=window.open(url + "Y=" + sep[2] + "&M=" + (sep[1]-1) + "&Y2=" + y2 + "&M2=" + m2 + "&D2=" + d2,"MyDialog",
    	        "dependent=yes, menubar=no, location=no, resizable=no, width=217, height=196, toolbar=no, scrollbars=no, left=100, top=100" );
	}
	function Transfer( theValue, pole ) {
			//alert(pole);
			//theField.value = theValue;
			if (pole=="date_od"){
				document.form1.date_od.value = theValue;
			}
			if (pole=="date_do"){
				document.form1.date_do.value = theValue;
			}
			//document.online.dateTo.value = theValue;
	}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
