
    function WriteLayer(ID, parentID, sText) {
	   if (document.getElementById) {
         document.getElementById(ID).innerHTML = sText;
	   } else if (document.layers) {
         var oLayer;
         if(parentID){
           oLayer = eval('document.' + parentID + '.document.' + ID + '.document');
         }else{
           oLayer = document.layers[ID].document;
         }
         oLayer.open();
         oLayer.write(sText);
         oLayer.close();
       } else if (document.all) {
         document.all[ID].innerHTML = sText;
       } else {
         document.getElementById(ID).innerHTML = sText;
       }
    }

function calOpen(base,urlap) {
	if (!urlap) urlap='urlap';
    window.open("naptar.php?year="+eval('document.'+urlap+'.'+base+'_ev.value')+"&month="+
		eval('document.'+urlap+'.'+base+'_ho.value')+"&urlap="+urlap+"&base="+base, "",
        "width=350,height=200,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,top=200,left=200");
}
