/* author: office@asieta.ro */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 05.04.2005 */	

/*-------------------------------*/
/* Functie pentru afisarea datei */
/*-------------------------------*/
function DateMdf(limba){
	var fullDate= new Date();
	var day= fullDate.getDay();
	var date= fullDate.getDate();
	var month= fullDate.getMonth();

	var browser=navigator.appName;
	//var b_version=navigator.appVersion;
	//var version=parseFloat(b_version);
	//document.write("Browser name: "+ browser);
	//document.write("<br />");
	//document.write("Browser version: "+ version);
	var year= fullDate.getYear(); 
	if (browser != 'Microsoft Internet Explorer') year = 1900 + year; 
	
	
	if (limba == "ro")
		{
		var days= new Array("Duminic&#259;", "Luni", "Mar&#355;i", "Miercuri", "Joi", "Vineri", "S&#226;mb&#259;t&#259;");
		var months= new Array("Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie");
		return (days[day] + " - "  + date + " " + months[month] + " " + year);
		}

	if (limba == "uk")
		{
		var days= new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
		var months= new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
		return (days[day] + " - "  + date + " " + months[month] + " " + year);
		var sup="th";
		if (date==1) var sup="st"; 
		if (date==2) var sup="nd";
		if (date==3) var sup="rd";
		var dayEnd = "<sup>" + sup + "</sup> "; 
		return (days[day] + " - "  + months[month] + " " + date + dayEnd + year);
		}

	if (limba == "fr")
		{
		var days= new Array("Dimanche", "Lundi", "Marti", "Mardi", "Jeudi", "Vendredi", "Samedi");
		var months= new Array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");
		return (days[day] + " - "  + date + " " + months[month] + " " + year);
		}


	if (limba == "de")
		{
		var days= new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnersatg", "Freitag", "Samstag");
		var months= new Array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
		return (days[day] + ", "  + date + ". " + months[month] + " " + year);
		}

	if (limba == "it")
		{
		var days= new Array("Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato");
		var months= new Array("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Octombrie", "Novembre", "Dicembre");
		return (days[day] + " - "  + date + " " + months[month] + " " + year);
		}
	}


/*-------------------------------*/
/* Printare pagina curenta       */
/*-------------------------------*/
function printit(){
	if (NS) {
	    window.print() ;
	} else {
	    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
	document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
	    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = "";
	}
	}	 
	

/*-------------------------------*/
/* Pagina in constructie         */
/*-------------------------------*/
function go_there(limba)
	{
	var text = 'Pagina in constructie.';
	if (limba == 'ro') var text = 'Pagina in constructie.';
	if (limba == 'uk') var text = 'Page under construction.';
	if (limba == 'fr') var text = 'Pages en construction.';
	if (limba == 'de') var text = 'Page Seiten im Bau.';
	if (limba == 'it') var text = 'Pagina costruzione.';
 	var where_to= alert(text);
 	//if (where_to== true) window.location=""; 
	//	else window.location="";
	}
	
		
/*----------------------------------------------------------------------------------*/
/* Incarcarea de cate ori este nevoie a "../" inainte de numele unui fisier         */
/*----------------------------------------------------------------------------------*/	
/*
Se introduce in <head> ... </head>, randul 
  <script src="../_js/js-asieta.js" type="text/javascript"></script>

iar in body si introduse functia:
  <body onload="CaleVar('../../')">
  parametrul indica cat de adanc ne aflam fata de directorul de unde sau unde incarcam ceva 
*/  
//var adresa = "\qisier";	
/*
var cale;   
function CaleVar(cale) {
	adresa = cale + adresa;
	}
*/	
		
