<%@page contentType="text/html" import="java.util.*,java.text.SimpleDateFormat" %> <% Date now = new Date(); String lang = "it"; if (request.getParameter("lang") != null){ lang = request.getParameter("lang"); } Locale loc = new Locale(lang,lang); SimpleDateFormat hDataOdierna_format = new SimpleDateFormat("d MMMM yyyy", loc); String CompleteDate = hDataOdierna_format.format(now); SimpleDateFormat hDayOfWeek_format = new SimpleDateFormat("EEEE", loc); String DayOfWeek = hDayOfWeek_format.format(now); SimpleDateFormat hMonth_format = new SimpleDateFormat("M", loc); String NrMonth = hMonth_format.format(now); %> function al_data() { return '<%=CompleteDate%>'; } function al_nr_mese() { return '<%=NrMonth%>'; } function al_giorno_settimana (){ return '<%=DayOfWeek%>'; } function jShowVideo( nomeFile , larghezza , altezza , abstract ) { var link = 'http://www.telemar.it/Serenissimatv/ShowVideo.asp?n=' + nomeFile + '&l=' + larghezza + '&a=' + altezza + '&t=' + abstract; var newWindow; newWindow = window.open(link,'SVideo','scrollbars=n,width=460,height=460,left=100,top=100'); } function jShowVideo1( nomeFile , larghezza , altezza , abstract ) { var link = 'http://www.telemar.it/Serenissimatv/ShowVideo1.asp?n=' + nomeFile + '&l=' + larghezza + '&a=' + altezza + '&t=' + abstract; var newWindow; newWindow = window.open(link,'SVideo','scrollbars=n,width=460,height=460,left=100,top=100'); }