<%@page session="true"%><%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% response.setContentType("application/x-javascript"); %> function doOnLoad(){ var f = document.forms[0]; f.lblFrmEventID.className ='chpsTextObligatoire'; } function doFrmEventIDChange(){ doRefresh(); } function addParagraph() { var mf = window.document.forms[0]; if (mf.ParagraphText.value != "") { mf.Links.options[mf.Links.options.length] = new Option(" " + mf.ParagraphText.value , mf.ParagraphText.value); mf.ParagraphText.value = ""; }else{ alert(""); mf.ParagraphText.focus(); } } function moveSelect(monSelect, laDirection) { var i, p, n; p = monSelect.selectedIndex; n = monSelect.options.length; if (p == -1) return; if ( (p == 0) && (laDirection == 1) ) return; if ( (p == n-1) && (laDirection == -1) ) return; nouvOrdreText = new Array(n); nouvOrdreValue = new Array(n); for (i=0 ; i 0) { monSelect.options[monSelect.options.length - 1] = null; } for (i = 0 ; i < nouvOrdreValue.length ; i++) { monSelect.options[i] = new Option(nouvOrdreText[i], nouvOrdreValue[i]); } monSelect.selectedIndex = p - laDirection; } function removeSelect(monSelect) { var i, p, n; p = monSelect.selectedIndex; n = monSelect.options.length; if (p == -1) return; if (p == n-1) { monSelect.options[n-1] = null; return; } for (i=p ; i < n-1 ; i++) { monSelect.options[i].value = monSelect.options[i+1].value; monSelect.options[i].text = monSelect.options[i+1].text; } monSelect.options[n-1] = null; } function moveLineUp() { var f = window.document.forms[0]; moveSelect(f.Links, 1); } function moveLineDown() { var f = window.document.forms[0]; moveSelect(f.Links, -1); } function removeLine() { var f = window.document.forms[0]; removeSelect(f.Links); } function clearEvent() { var mf = document.forms[0]; mf.FrmEventID.value = ""; mf.lblFrmEventID.value = ""; } function beforeSubmit() { var mf = document.forms[0]; presentFieldsValue(); var mySelect = mf.Links; var i; var allKeys = ""; for (i=0 ; i < mySelect.options.length ; i++) { allKeys += (i == 0 ? "" : "|") + mySelect.options[i].value; } mf.LinksKeys.value = allKeys; }