   function date(){
var mydate=new Date()
 var year=mydate.getYear()
   if (year < 1000)
        year+=1900
     var day=mydate.getDay()
    var month=mydate.getMonth()+1
    months = new Array(12)
    months[1] = "ianuarie";
    months[2] = "februarie";
    months[3] = "martie";
    months[4] = "aprilie";
    months[5] = "mai";
    months[6] = "iunie";
    months[7] = "iulie";
    months[8] = "august";
    months[9] = "septembrie";
    months[10] = "octombrie";
    months[11] = "noiembrie";
    months[12] = "decembrie";
//if (month<10) month="0"+month
    var daym=mydate.getDate()
   if (daym<10)
 daym="0"+daym

document.write(daym+" "+months[month]+" "+year)
}

function iLite(field, theColor){
	field.style.backgroundColor= theColor;
}
       
//-------------------------- limiteaza caracterele ce pot fi introduse in input ---------------
function getkey(e)
{
if (window.event)
   return window.event.keyCode;
else if (e)
   return e.which;
else
   return null;
}

// se apeleaza :<input onKeyPress="return goodchars(event,'0123456789/')..."
function goodchars(e, goods)
{
var key, keychar;
key = getkey(e);
if (key == null) return true;

// get character
keychar = String.fromCharCode(key);
keychar = keychar.toLowerCase();
goods = goods.toLowerCase();

// check goodkeys
if (goods.indexOf(keychar) != -1)
	return true;

// control keys
if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 )
   return true;

// else return false
return false;
}
//----------------------------------------- end ------------------------------------------

function popUp(URL, wsize, hsize, scrollbr, ifresize) {
//alert('Your screen resolution is '+screen.width+'x'+screen.height);
//imaginea apare pe centrul ecranului
day = new Date();
id = day.getTime();
left_pos = (screen.width-wsize)/2-40;
top_pos = (screen.height-hsize)/2-80;
pag_props = "toolbar=0, scrollbars="+scrollbr+",location=0, statusbar=0, menubar=0, resizable="+ifresize+", width="+wsize+", height="+hsize+", left="+left_pos+", top="+top_pos;
window.open(URL, id, pag_props);
}