<!--
function setDate() {
        var selMonth = document.OpenURL.__month.selectedIndex;
        var selDay   = document.OpenURL.__day.selectedIndex;
        var year     = document.OpenURL.__year.value;
        var month    = document.OpenURL.__month.options[selMonth].value;
        var day      = document.OpenURL.__day.options[selDay].value;
        var isodate  = "";


dateTest=/^\d{4}$/;


        if (dateTest.test(year)==true) {
                isodate += year;
                if (month != "***") {
                        isodate += "-" + month;
                        if (day != "**") {
                                isodate += "-" + day;
                        }
                }
        }

        document.OpenURL['rft.date'].value = isodate;
}

function clearDate() {
        var year     = document.OpenURL.__year.value;

        if (year=="yyyy") {
	year = "";
	}

	document.OpenURL.__year.value = year;
}


function checkDate() {
        var year     = document.OpenURL.__year.value;

	dateTest=/^(\d{4}|yyyy)$/

	if (dateTest.test(year)==false) {year = "yyyy";}

	document.OpenURL.__year.value = year;
}

function openGenWin() {
         SFXmenu  = window.open('',"SFXmenu",
          "toolbar=yes,location=no,directories=no,buttons=yes," +
          "status=yes,menubar=no,scrollbars=yes," +
          "resizable=yes,width=460,height=420");
        if (navigator.appName.indexOf("xplorer")<0)
                SFXmenu.focus();
}


// -->
