From: <Salvato da Windows Internet Explorer 7>
Subject: Anagrafica Base LPS in Entrata
Date: Fri, 2 Jan 2009 10:44:27 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0000_01C96CC7.15F8AC00"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/anagrafica/anagraficaBaseLpsEntrata.action?denominazione=EUROPEAN INSURANCE GROUP LIMITED&codiceisvap=40165&codiceMenu=16&dataRiferimento=02/01/2009

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Anagrafica Base LPS in Entrata</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"><LINK=20
href=3D"/Albi/Albi/css/default.css" type=3Dtext/css =
rel=3Dstylesheet><LINK=20
href=3D"/Albi/Albi/css/styles-ge.css" type=3Dtext/css =
rel=3Dstylesheet><LINK=20
href=3D"https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar-blue.=
css"=20
type=3Dtext/css rel=3Dstylesheet>
<SCRIPT language=3Djavascript src=3D"" type=3Dtext/javascript></SCRIPT>

<SCRIPT src=3D"" type=3Dtext/javascript></SCRIPT>
<LINK href=3D"https://nsiv.isvap.it/Albi/Albi/css/isvap.css" =
type=3Dtext/css=20
rel=3Dstylesheet><LINK media=3Dall=20
href=3D"https://nsiv.isvap.it/Albi/Albi/css/dropdown.css" =
type=3Dtext/css=20
rel=3Dstylesheet><LINK =
href=3D"https://nsiv.isvap.it/Albi/Albi/css/subModal.css"=20
type=3Dtext/css rel=3Dstylesheet><LINK=20
href=3D"https://nsiv.isvap.it/Albi/Albi/css/liste.css" type=3Dtext/css=20
rel=3Dstylesheet>
<SCRIPT language=3DJavaScript type=3Dtext/javascript>
/**
 * COMMON DHTML FUNCTIONS
 * These are handy functions I use all the time.
 *
 * By Seth Banks (webmaster at subimage dot com)
 * http://www.subimage.com/
 *
 * Up to date code can be found at http://www.subimage.com/dhtml/
 *
 * This code is free for you to use anywhere, just keep this comment =
block.
 */

/**
 * X-browser event handler attachment and detachment
 * TH: Switched first true to false per =
http://www.onlinetools.org/articles/unobtrusivejavascript/chapter4.html
 *
 * @argument obj - the object to attach event to
 * @argument evType - name of the event - DONT ADD "on", pass only =
"mouseover", etc
 * @argument fn - function to call
 */
function addEvent(obj, evType, fn){
 if (obj.addEventListener){
    obj.addEventListener(evType, fn, false);
    return true;
 } else if (obj.attachEvent){
    var r =3D obj.attachEvent("on"+evType, fn);
    return r;
 } else {
    return false;
 }
}
function removeEvent(obj, evType, fn, useCapture){
  if (obj.removeEventListener){
    obj.removeEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.detachEvent){
    var r =3D obj.detachEvent("on"+evType, fn);
    return r;
  } else {
    alert("Handler could not be removed");
  }
}

/**
 * Code below taken from - =
http://www.evolt.org/article/document_body_doctype_switching_and_more/17/=
30655/
 *
 * Modified 4/22/04 to work with Opera/Moz (by webmaster at subimage dot =
com)
 *
 * Gets the full width/height because it's different for most browsers.
 */
function getViewportHeight() {
	if (window.innerHeight!=3Dwindow.undefined) return window.innerHeight;
	if (document.compatMode=3D=3D'CSS1Compat') return =
document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight;=20

	return window.undefined;=20
}
function getViewportWidth() {
	var offset =3D 17;
	var width =3D null;
	if (window.innerWidth!=3Dwindow.undefined) return window.innerWidth;=20
	if (document.compatMode=3D=3D'CSS1Compat') return =
document.documentElement.clientWidth;=20
	if (document.body) return document.body.clientWidth;=20
}

/**
 * Gets the real scroll top
 */
function getScrollTop() {
	if (self.pageYOffset) // all except Explorer
	{
		return self.pageYOffset;
	}
	else if (document.documentElement && =
document.documentElement.scrollTop)
		// Explorer 6 Strict
	{
		return document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollTop;
	}
}
function getScrollLeft() {
	if (self.pageXOffset) // all except Explorer
	{
		return self.pageXOffset;
	}
	else if (document.documentElement && =
document.documentElement.scrollLeft)
		// Explorer 6 Strict
	{
		return document.documentElement.scrollLeft;
	}
	else if (document.body) // all other Explorers
	{
		return document.body.scrollLeft;
	}
}
</SCRIPT>

<SCRIPT language=3DJavaScript type=3Dtext/javascript>
/**
 * SUBMODAL v1.5
 * Used for displaying DHTML only popups instead of using buggy modal =
windows.
 *
 * By Seth Banks
 * http://www.subimage.com/
 *
 * Contributions by:
 * 	Eric Angel - tab index code
 * 	Scott - hiding/showing selects for IE users
 *	Todd Huss - inserting modal dynamically and anchor classes
 *
 * Up to date code can be found at =
http://www.subimage.com/dhtml/subModal
 *=20
 *
 * This code is free for you to use anywhere, just keep this comment =
block.
 */

// Popup code
var gPopupMask =3D null;
var gPopCont =3D null;
var gPopupContainer =3D null;
var gPopupContainer =3D null;
var gPopFrame =3D null;
var gPopupTitle =3D "";
var gReturnFunc;
var gPopupIsShown =3D false;
var gPopupMask1 =3D null;
var gPopupContainer1 =3D null;
var gPopFrame1 =3D null;
var gReturnFunc1;
var gPopupIsShown1 =3D false;
var gDefaultPage =3D "/Albi/comuni/loading.html";
var gShowDefaultPage =3D true;
var gHideSelects =3D false;
var gReturnVal =3D null;
var gBrsVersion =3D  null;

var gTabIndexes =3D new Array();
// Pre-defined list of tags we want to disable/enable tabbing into
var gTabbableTags =3D new =
Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");=09

// If using Mozilla or Firefox, use Tab-key trap.
if (!document.all) {
	document.onkeypress =3D keyDownHandler;
}



/**
 * Initializes popup code on load.=09
 */
function initPopUp() {
	// Add the HTML to the body
	//debugger;

	theBody =3D document.getElementsByTagName('BODY')[0];
=09
	if (!gShowDefaultPage){
		popmask =3D document.getElementById("popupMask");
		popcont =3D document.getElementById("popupContainer");
		theBody.removeChild(popmask);
		theBody.removeChild(popcont);
	}
=09
	popmask =3D document.createElement('div');
	popmask.id =3D 'popupMask';
	popcont =3D document.createElement('div');
	popcont.id =3D 'popupContainer';
	popcont.innerHTML =3D '' +
		'<div id=3D"popupInner">' +
			'<div id=3D"popupTitleBar">' +
				'<div id=3D"popupTitle"></div>' +
				'<div id=3D"popupControls">' +
					'<img src=3D"/Albi/Albi/img/close.gif" =
onclick=3D"hidePopWin(false);" id=3D"popCloseBox" />' +
				'</div>' +
			'</div>' +
			'<iframe src=3D"'+ gDefaultPage +'" =
style=3D"width:100%;height:100%;background-color:transparent;align:center=
" scrolling=3D"auto" frameborder=3D"0" allowtransparency=3D"true" =
id=3D"popupFrame" name=3D"popupFrame" width=3D"100%" =
height=3D"100%"></iframe>' +
		'</div>';
	theBody.appendChild(popmask);
	theBody.appendChild(popcont);
=09
	gPopupMask =3D document.getElementById("popupMask");
	gPopupContainer =3D document.getElementById("popupContainer");
	gPopFrame =3D document.getElementById("popupFrame");=09
	gPopFrame.src =3D gDefaultPage;
	gPopupTitle =3D document.getElementById("popupTitle")
=09
	// check to see if this is IE version 6 or lower. hide select boxes if =
so
	// maybe they'll fix this in version 7?
	var gBrsVersion =3D parseInt(window.navigator.appVersion.charAt(0), =
10);
	if (gBrsVersion <=3D 6 && window.navigator.userAgent.indexOf("MSIE") > =
-1) {
		gHideSelects =3D true;
	}
=09
	// Add onclick handlers to 'a' elements of class submodal or =
submodal-width-height
	var elms =3D document.getElementsByTagName('a');
	for (i =3D 0; i < elms.length; i++) {
		if (elms[i].className.indexOf("submodal") =3D=3D 0) {=20
			// var onclick =3D 'function =
(){showPopWin(\''+elms[i].href+'\','+width+', '+height+', null);return =
false;};';
			// elms[i].onclick =3D eval(onclick);
			elms[i].onclick =3D function(){
				// default width and height
				var width =3D 400;
				var height =3D 200;
				// Parse out optional width and height from className
				params =3D this.className.split('-');
				if (params.length =3D=3D 3) {
					width =3D parseInt(params[1]);
					height =3D parseInt(params[2]);
				}
				showPopWin(this.href,width,height,null); return false;
			}
		}
	}
=09
		// Add the HTML to the body
	theBody =3D document.getElementsByTagName('BODY')[0];
	popmask1 =3D document.createElement('div');
	popmask1.id =3D 'popupMask1';
	popcont1 =3D document.createElement('div');
	popcont1.id =3D 'popupContainer1';
	popcont1.innerHTML =3D '' +
		'<div id=3D"popupInner1">' +
			'<div id=3D"popupTitleBar1">' +
				'<div id=3D"popupTitle1"></div>' +
				'<div id=3D"popupControls1">' +
					'<img src=3D"/Albi/Albi/img/close.gif" =
onclick=3D"hidePopWin(false);" id=3D"popCloseBox1" />' +
				'</div>' +
			'</div>' +
			'<iframe src=3D"'+ gDefaultPage +'" =
style=3D"width:100%;height:100%;background-color:transparent;" =
scrolling=3D"auto" frameborder=3D"0" allowtransparency=3D"true" =
id=3D"popupFrame1" name=3D"popupFrame1" width=3D"100%" =
height=3D"100%"></iframe>' +
		'</div>';
	theBody.appendChild(popmask1);
	theBody.appendChild(popcont1);
=09
	gPopupMask1 =3D document.getElementById("popupMask1");
	gPopupContainer1 =3D document.getElementById("popupContainer1");
	gPopFrame1 =3D document.getElementById("popupFrame1");
=09
}
addEvent(window, "load", initPopUp);

 /**
	* @argument width - int in pixels
	* @argument height - int in pixels
	* @argument url - url to display
	* @argument returnFunc - function to call when returning true from the =
window.
	* @argument showCloseBox - show the close box - default true
	* @argument showDefaultPage - show the defaut page - default true
	* @argument title - title to display in the title bar.
	*/

function showPopWin(url, width, height, returnFunc, showCloseBox, =
showDefaultPage, title) {
	// initilizes again the popup if the default page is not to be =
displayed
	//debugger;
=09
	if (!showDefaultPage){
		gDefaultPage =3D "";
		gShowDefaultPage =3D false;
		initPopUp();
	}
	// show or hide the window close widget
	if (showCloseBox =3D=3D null || showCloseBox =3D=3D true) {
		document.getElementById("popCloseBox").style.display =3D "block";
	} else {
		document.getElementById("popCloseBox").style.display =3D "none";
	}
	gPopupIsShown =3D true;
	disableTabIndexes();
	gPopupTitle.innerHTML =3D title;
	gPopupMask.style.display =3D "block";
	gPopupContainer.style.display =3D "block";
	// calculate where to place the window on screen
	gPopCont =3D gPopupContainer;
	centerPopWin(width, height);
=09
	var titleBarHeight =3D =
parseInt(document.getElementById("popupTitleBar").offsetHeight, 10);

	gPopupContainer.style.width =3D width + "px";
	gPopupContainer.style.height =3D (height+titleBarHeight) + "px";
=09
	setMaskSize();

	// need to set the width of the iframe to the title bar width because =
of the dropshadow
	// some oddness was occuring and causing the frame to poke outside the =
border in IE6
	gPopFrame.style.width =3D =
parseInt(document.getElementById("popupTitleBar").offsetWidth, 10) + =
"px";
	gPopFrame.style.height =3D (height) + "px";
=09
	// set the url
	gPopFrame.src =3D url;
=09
	gReturnFunc =3D returnFunc;
	// for IE
	if (gHideSelects =3D=3D true) {
		hideSelectBoxes();
	}
=09
	window.setTimeout("setPopTitle();", 600);
}
// This function displays a second popup window inside the first popup =
window
 /**
	* @argument width - int in pixels
	* @argument height - int in pixels
	* @argument url - url to display
	* @argument returnFunc - function to call when returning true from the =
window.
	* @argument showCloseBox - show the close box - default true
	* @argument showDefaultPage - show the defaut page - default true
	* @argument title - title to display in the title bar.
	*/

function showPopWin1(url, width, height, returnFunc, showCloseBox, =
showDefaultPage, title) {
	// initilizes again the popup if the default page is not to be =
displayed
	if (!showDefaultPage){
		gDefaultPage =3D "";
		gShowDefaultPage =3D false;
		initPopUp();
	}
	// show or hide the window close widget
	if (showCloseBox =3D=3D null || showCloseBox =3D=3D true) {
		document.getElementById("popCloseBox1").style.display =3D "block";
	} else {
		document.getElementById("popCloseBox1").style.display =3D "none";
	}
	gPopupIsShown1 =3D true;
	disableTabIndexes();
	gPopupMask1.style.display =3D "block";
	gPopupContainer1.style.display =3D "block";
	// calculate where to place the window on screen
	gPopCont =3D gPopupContainer1;
	centerPopWin(width, height);
=09
	var titleBarHeight =3D =
parseInt(document.getElementById("popupTitleBar1").offsetHeight, 10);


	gPopupContainer1.style.width =3D width + "px";
	gPopupContainer1.style.height =3D (height+titleBarHeight) + "px";
=09
	setMaskSize();

	// need to set the width of the iframe to the title bar width because =
of the dropshadow
	// some oddness was occuring and causing the frame to poke outside the =
border in IE6
	gPopFrame1.style.width =3D =
parseInt(document.getElementById("popupTitleBar1").offsetWidth, 10) + =
"px";
	gPopFrame1.style.height =3D (height) + "px";
=09
	// set the url
	gPopFrame1.src =3D url;
=09
	gReturnFunc1 =3D returnFunc;
	// for IE
	if (gHideSelects =3D=3D true) {
		hideSelectBoxes();
	}
=09
	window.setTimeout("setPopTitle();", 600);
}

//
var gi =3D 0;
function centerPopWin(width, height) {
	if (gPopupIsShown =3D=3D true | gPopupIsShown1 =3D=3D true) {
		if (width =3D=3D null || isNaN(width)) {
			width =3D gPopCont.offsetWidth;
		}
		if (height =3D=3D null) {
			height =3D gPopCont.offsetHeight;
		}
	=09
		//var theBody =3D document.documentElement;
		var theBody =3D document.getElementsByTagName("BODY")[0];
		//theBody.style.overflow =3D "hidden";
		var scTop =3D parseInt(getScrollTop(),10);
		var scLeft =3D parseInt(theBody.scrollLeft,10);
=09
		setMaskSize();
	=09
		//window.status =3D gPopupMask.style.top + " " + gPopupMask.style.left =
+ " " + gi++;
		var titleBarHeight =3D =
parseInt(document.getElementById("popupTitleBar").offsetHeight, 10);
	=09
		var fullHeight =3D getViewportHeight();
		var fullWidth =3D getViewportWidth();
	=09
		gPopCont.style.top =3D (scTop + ((fullHeight - =
(height+titleBarHeight)) / 3)) + "px";
		gPopCont.style.left =3D  (scLeft + ((fullWidth - width) / 2)) + "px";
		//alert(fullWidth + " " + width + " " + gPopupContainer.style.left);
	}
}
addEvent(window, "resize", centerPopWin);
addEvent(window, "scroll", centerPopWin);
window.onscroll =3D centerPopWin;


/**
 * Sets the size of the popup mask.
 *
 */
function setMaskSize() {
	var theBody =3D document.getElementsByTagName("BODY")[0];
		=09
	var fullHeight =3D getViewportHeight();
	var fullWidth =3D getViewportWidth();
=09
	// Determine what's bigger, scrollHeight or fullHeight / width
	if (fullHeight > theBody.scrollHeight) {
		popHeight =3D fullHeight;
	} else {
		popHeight =3D theBody.scrollHeight;
	}
=09
	if (fullWidth > theBody.scrollWidth) {
		popWidth =3D fullWidth;
	} else {
		popWidth =3D theBody.scrollWidth;
	}
=09
	gPopupMask.style.height =3D popHeight + "px";
	gPopupMask.style.width =3D popWidth + "px";
}

/**
 * @argument callReturnFunc - bool - determines if we call the return =
function specified
 * @argument returnVal - anything - return value=20
 */
function hidePopWin(callReturnFunc) {
	gPopupIsShown =3D false;
	var theBody =3D document.getElementsByTagName("BODY")[0];
	theBody.style.overflow =3D "";
	restoreTabIndexes();
	if (gPopupMask =3D=3D null) {
		return;
	}
	gPopupMask.style.display =3D "none";
	gPopupContainer.style.display =3D "none";
	if (callReturnFunc =3D=3D true && gReturnFunc !=3D null) {
		// Set the return code to run in a timeout.
		// Was having issues using with an Ajax.Request();
		gReturnVal =3D window.frames["popupFrame"].returnVal;
		window.setTimeout('gReturnFunc(gReturnVal);', 1);
	}
	gPopFrame.src =3D gDefaultPage;
	// display all select boxes
	if (gHideSelects =3D=3D true) {
		displaySelectBoxes();
	}
}

function hidePopWin1(callReturnFunc) {
	gPopupIsShown1 =3D false;
	var theBody =3D document.getElementsByTagName("BODY")[0];
	theBody.style.overflow =3D "";
	restoreTabIndexes();
	if (gPopupMask1 =3D=3D null) {
		return;
	}
	gPopupMask1.style.display =3D "none";
	gPopupContainer1.style.display =3D "none";
	if (callReturnFunc =3D=3D true && gReturnFunc !=3D null) {
		// Set the return code to run in a timeout.
		// Was having issues using with an Ajax.Request();
		gReturnVal =3D window.frames["popupFrame1"].returnVal;
		window.setTimeout('gReturnFunc1(gReturnVal);', 1);
	}
	gPopFrame1.src =3D gDefaultPage;
	// display all select boxes
	if (gHideSelects =3D=3D true) {
		displaySelectBoxes();
	}
}

/**
 * Sets the popup title based on the title of the html document it =
contains.
 * Uses a timeout to keep checking until the title is valid.
 */
function setPopTitle() {
	return;
	if (window.frames["popupFrame"].document.title =3D=3D null) {
		window.setTimeout("setPopTitle();", 10);
	} else {
		document.getElementById("popupTitle").innerHTML =3D =
window.frames["popupFrame"].document.title;
	}
}

// Tab key trap. iff popup is shown and key was [TAB], suppress it.
// @argument e - event - keyboard event that caused this function to be =
called.
function keyDownHandler(e) {
    if (gPopupIsShown && e.keyCode =3D=3D 9)  return false;
}

// For IE.  Go through predefined tags and disable tabbing into them.
function disableTabIndexes() {
	if (document.all) {
		var i =3D 0;
		for (var j =3D 0; j < gTabbableTags.length; j++) {
			var tagElements =3D document.getElementsByTagName(gTabbableTags[j]);
			for (var k =3D 0 ; k < tagElements.length; k++) {
				gTabIndexes[i] =3D tagElements[k].tabIndex;
				tagElements[k].tabIndex=3D"-1";
				i++;
			}
		}
	}
}

// For IE. Restore tab-indexes.
function restoreTabIndexes() {
	if (document.all) {
		var i =3D 0;
		for (var j =3D 0; j < gTabbableTags.length; j++) {
			var tagElements =3D document.getElementsByTagName(gTabbableTags[j]);
			for (var k =3D 0 ; k < tagElements.length; k++) {
				tagElements[k].tabIndex =3D gTabIndexes[i];
				tagElements[k].tabEnabled =3D true;
				i++;
			}
		}
	}
}


/**
* Hides all drop down form select boxes on the screen so they do not =
appear above the mask layer.
* IE has a problem with wanted select form tags to always be the topmost =
z-index or layer
*
* Thanks for the code Scott!
*/
function hideSelectBoxes() {
	for(var i =3D 0; i < document.forms.length; i++) {
		for(var e =3D 0; e < document.forms[i].length; e++){
			if(document.forms[i].elements[e].tagName =3D=3D "SELECT") {
				document.forms[i].elements[e].style.visibility=3D"hidden";
			}
		}
	}
}
function showPopWinDiv(divId,titleText, width, height, returnFunc) {
	gPopupIsShown =3D true;
	disableTabIndexes();
	gPopupMask.style.display =3D "block";
	gPopupContainer.style.display =3D "block";
	// calculate where to place the window on screen
=09
	centerPopWin(width, height);
=09
	var titleBarHeight =3D =
parseInt(document.getElementById("popupTitleBar").offsetHeight, 10);
=09
	gPopupContainer.style.width =3D width + "px";
	gPopupContainer.style.height =3D (height+titleBarHeight) + "px";
	// need to set the width of the iframe to the title bar width because =
of the dropshadow
	// some oddness was occuring and causing the frame to poke outside the =
border in IE6
	gPopFrame.style.width =3D =
parseInt(document.getElementById("popupTitleBar").offsetWidth, 10) + =
"px";
	gPopFrame.style.height =3D (height) + "px";
=09

	// set content from div
	var divToShow =3D document.getElementById(divId);
=09
	=
window.frames["popupFrame"].document.body.innerHTML=3DdivToShow.innerHTML=
;
=09
	//title
	window.frames["popupFrame"].document.title=3DtitleText;
=09
	gReturnFunc =3D returnFunc;
	// for IE
	if (gHideSelects =3D=3D true) {
		hideSelectBoxes();
	}
=09
	window.setTimeout("setPopTitle();", 100);
}

/**
* Makes all drop down form select boxes on the screen visible so they do =
not reappear after the dialog is closed.
* IE has a problem with wanted select form tags to always be the topmost =
z-index or layer
*/
function displaySelectBoxes() {
	for(var i =3D 0; i < document.forms.length; i++) {
		for(var e =3D 0; e < document.forms[i].length; e++){
			if(document.forms[i].elements[e].tagName =3D=3D "SELECT") {
			document.forms[i].elements[e].style.visibility=3D"visible";
			}
		}
	}
}
</SCRIPT>

<SCRIPT language=3DJavaScript type=3Dtext/javascript>
function openModalWindow(pageURL){
	//argums =3D =
'dialogWidth:56;dialogHeight:45;center:yes;status:0;scroll:no';
	//var result =3D window.showModalDialog('alboGruppi.jsp','',argums);
	window.open("alboGruppi.jsp");
}
function PleaseWait() {
	for (var i =3D 0; i < document.all.length; i++){
		var element=3Ddocument.all[i];
		if (element.id!=3Dnull && element.id!=3D'')
			element.style.cursor=3D"wait";=20
	}
   	document.body.style.cursor =3D "wait";
	return true;
}

// questa funzione gestisce il tasto cancel per ripristinate i dati di =
caricamento della form
// nel caso di radio button che visualizzano/nascono sezioni di pagina, =
tipicamente persone fisiche/giuridiche
function cancelInput() {
	//alert(document.getElementById("tipoOperazione").value);
	//document.getElementById("tipoOperazione").id +=3D "_" + =
document.getElementById("tipoOperazione").value
	//alert(document.getElementById("tipoOperazione").id);
	//displayPFPG();
	//alert();
	//addEvent(document.getElementById("btnCancel"), "click", displayPFPG);
	//debugger;
	//var event =3D window.event.type;
	//vat to =3D document.getElementById("tipoOperazione").value;
	//alert(document.getElementById("tipoOperazione").value);
	//modifica();
}
function clean(campo) {

			document.getElementsByName(campo)[0].value =3D "";
		}
sfHover =3D function() {
	if (document.all.menu !=3D null){
	    var sfEls =3D =
document.getElementById("nav").getElementsByTagName("LI");
	    for (var i=3D0; i<sfEls.length; i++) {
	        sfEls[i].onmouseover=3Dfunction() {
	        if (gHideSelects =3D=3D true) {
				hideSelectBoxes();
			}
	            this.className+=3D" over";
	        }
	        sfEls[i].onmouseout=3Dfunction() {
	        	displaySelectBoxes()
	            this.className=3Dthis.className.replace(new RegExp(" =
over\\b"), "");
	        }
	    }
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

function trimAll(sString)=20
{
	while (sString.substring(0,1) =3D=3D ' ')
	{
	sString =3D sString.substring(1, sString.length);
	}
	while (sString.substring(sString.length-1, sString.length) =3D=3D ' ')
	{
	sString =3D sString.substring(0,sString.length-1);
	}
	return sString;
}
	function setHeaderInfo()
	{
	   	d =3D new Date();
	   	if (d.getDate() < 10){
s =3D "0" + d.getDate().toString() + "/";}
	   	else{
	   		s =3D d.getDate().toString() + "/";	   	}
	   =09
	   	if ((d.getMonth()+1) < 10){
s +=3D "0" + (d.getMonth()+1).toString() + "/";}
	   	else{
	   		s +=3D (d.getMonth()+1).toString() + "/";	   	}
	  	s +=3D d.getFullYear().toString();
	  =09
	  	if (d.getHours() < 10){
s +=3D " - 0" + d.getHours().toString() + ":";}
	  	else{
	  		s +=3D " - " + d.getHours().toString() + ":";}

		if (d.getMinutes() < 10){
s +=3D "0" + d.getMinutes().toString();}
	  	else{
	  		s +=3D d.getMinutes().toString();}

	}

function decodeURL (url){
	var beginIndex =3D 0;
	var decodedURL =3D decodeURI(url);
	while (decodedURL.indexOf("+", beginIndex) !=3D -1 ){
			beginIndex =3D decodedURL.indexOf("+", beginIndex) + 1;
			decodedURL =3D decodedURL.replace("+"," ");
		}
=09
	return decodedURL;
}

// Questa funzione consente di rendere obbligatorio on the fly un campo =
che non lo =E8.
// In pratica aggiunge dinamicamente "_mand" nell'id del campo.
// E' utile per rendere obbligatorio un campo in base al verificarsi di =
una condizione.
	function setFieldMand(fieldID){
		//var flag =3D fieldID.substring(fieldID.length-2,fieldID.length);
		var flag =3D getControlFlag(fieldID)
		if (fieldID.indexOf("_mand") =3D=3D -1){
			if (flag >=3D 2){
				fieldID=3DfieldID.replace(flag, "mand_" + flag);
			}
			else{
				if (flag !=3D 1)
					fieldID +=3D "_mand";
			}
			return fieldID;
		}
		else
			return fieldID
	}
	=09
// Questa funzione rimuove l'obbligatoriet=E0 da un campo che era stato =
reso obbligatorio dalla funzione
// setFieldMand.=09
	function resetFieldMand(fieldID){
		var flag =3D fieldID.substring(fieldID.length-2,fieldID.length);
		if (fieldID.indexOf("_mand") !=3D -1){
			fieldID=3DfieldID.replace("_mand", "");
			return fieldID;
		}
		else
			return fieldID
	}

	function setReadOnly() {
		if (document.all.isDataForm !=3D null){
			var s, st, dtpo;
			for(i =3D 0; i < document.all.length; i++) {
				// setto readOnly=3Dtrue per i text box
				if (document.all(i).type =3D=3D "text") {
		   			document.all(i).readOnly=3Dtrue;
		   			document.all(i).className=3D"textReadOnly";
	   			}
	   			// setto readOnly=3Dtrue per le textarea
	   			if (document.all(i).type =3D=3D "textarea") {
		   			document.all(i).readOnly=3Dtrue;
		   			document.all(i).className=3D"textReadOnly";
	   			}
		   		// setto readOnly=3Dtrue per i radio button
		   		s =3D /trRad/i;
	     		st =3D document.all(i).id;
	     		if (st.search(s) !=3D -1) {
	     			dtpo =3D document.getElementById(st);
	     			dtpo.className=3D"textReadOnly";
	     		}
	     		if (document.all(i).type =3D=3D "radio") {
	     			document.all(i).disabled=3Dtrue;
	       		}
	       		// setto readOnly=3Dtrue per i check box
	     		s =3D /trChk/i;
	     		st =3D document.all(i).id;
	     		if (st.search(s) !=3D -1) {
	     			dtpo =3D document.getElementById(st);
	     			dtpo.className=3D"textReadOnly";
	     		}
	     		if (document.all(i).type =3D=3D "checkbox") {
	     			document.all(i).disabled=3Dtrue;
	       		}
	     		// nascondo i bottoni dei datepicker
		   		s =3D /_button/i;
		   		st =3D document.all(i).id;
		   		if (st.search(s) !=3D -1) {
		   			dtpo =3D document.getElementById(st);
		   			dtpo.style.display=3D"none";
		   		}

		   		// nascondo i bottoni di ricerca persone e citt=E0
		   		s =3D /search/i;
		   		st =3D document.all(i).id;
		   		if (st.search(s) !=3D -1) {
		   			dtpo =3D document.getElementById(st);
		   			dtpo.style.display=3D"none";
		   			//dtpo.style.visibility=3D"hidden";
		   		}
		   	=09
		   		// nascondo le select e mostro i text box associati
				 s =3D /trTxt/i;
				 st =3D document.all(i).id;
				=20
				 if (st.search(s) !=3D -1) {
				     dtpo =3D document.getElementById(st);
				     dtpo.style.display=3D"";
				 }
				=20
				 s =3D /trSel/i;
				 st =3D document.all(i).id;
				 if (st.search(s) !=3D -1) {
				    dtpo =3D document.getElementById(st);
				    dtpo.style.display=3D"none";
				 }	=09
   			}
   		if (document.getElementById("flagInserisci") !=3D null)
   			{
	    		if (document.all.flagInserisci.value =3D=3D "1"){
	   				setWritable();
	   				if (document.getElementById("tipoOperazione") !=3D null)
	   					document.getElementById("tipoOperazione").value=3D"3";
   	=09
	   			}
   			}
   		=09
   		// visualizzo o nascondo persona fisica-persona giuridica nelle LPS =
e Stabilimenti
		displayPFPG();
   		}
   	=09
   		// Cambio la label del Provvedimento di autorizzazione compagnia =
italiana/rappresentanza
   		// da provvedimento a decreto ogni volta che clicco sui radio =
button Provvedimento/decreto
   		toggleProvvDecr();
   		=09
   		// nascondo i bottoni precedente successivo per tutte le pagine che =
non hanno dati (liste, elenchi)
   		if ((document.all.isDataForm =3D=3D null) || =
(document.getElementById("NascondiPrecSucc") !=3D null)){
	   		if (document.getElementById("dvBtnPrecedente") !=3D null)
				document.getElementById("dvBtnPrecedente").style.display =3D "none";
			if (document.getElementById("dvBtnSuccessivo") !=3D null)
				document.getElementById("dvBtnSuccessivo").style.display =3D "none";
		}
  	}

	function setWritable() {
        var t, t1, s, st, dtpo,flag;
        // resetto eventuali flag -1a inseriti da precedenti esecuzioni =
di getBottoniRicercaIndirizzoPersone
        abilitaBottoniRicercaIndirizzoPersone (true);
=20
        // resetto eventuali flag -1a inseriti da precedenti esecuzioni =
di getCampiLuogoAccessori
        abilitaCampiLuogoAccessori (true);
=20
        // chiamo funzione per individuare campi accessori indirizzo che =
devono rimanere readonly
        // anche se il flag=3D2
         getCampiLuogoAccessori();
        // chiamo funzione per individuare bottoni di ricerca luogo di =
indirizzo persone che deve rimanere non visibile
        // anche se il flag=3D2
        getBottoniRicercaIndirizzoPersone();
        for(i =3D 0; i < document.all.length; i++) {
            t1 =3D /-1a/i;
            t2 =3D /_button/i;
            t3 =3D /true/i;
            t4 =3D /false/i;
           =20
            st =3D document.all(i).id;
            if (st !=3D "" && st.substring(0,6) !=3D "wwctrl" && =
st.substring(0,5) !=3D "wwgrp"){
	        	if (st.search(t3) !=3D -1){
	  		     	slice =3D st.split("true");
	  		     	flag =3D getControlFlag(slice[0]);
				}
		         else{
	             	if (st.search(t4) !=3D -1){
		            	 slice =3D st.split("false");
		            	 flag =3D getControlFlag(slice[0]);
	            	}
	            	else{
	            		if (st.search(t2) !=3D -1){
	             			slice =3D st.split("_button");
	             			flag =3D getControlFlag(slice[0]);
	             		}
	             		else{
							flag =3D getControlFlag(st);
						}
	             	}
		         }
		 	    =20
	            // se il controllo ha il flag>=3D2 (controllo modificabile =
o correggibile) viene settato readOnly=3Dfalse
	             // altrimenti rimane readOnly=3Dtrue ed il controllo =
risulta non modificabile
	             // se il controllo ha anche l'estensione 1a (campi =
accessori citt=E0) rimane=20
	             // readOnly=3Dtrue ed il controllo risulta non =
modificabile
	            =20
	             if (flag >=3D 2 ) {
	             	if (st.search(t1) =3D=3D -1){
	             		 scanFields(i);
		         	 }
	             }
	    	}
        }
        if (document.all.btnModifica !=3D null)
        	document.all.btnModifica.disabled=3D"true";
        if (document.all.dvBtnSalva !=3D null)
        	document.all.dvBtnSalva.style.display=3D"";
       =20
    }

	function setCorreggibile() {
        var t1, s, st, dtpo;
        // resetto eventuali flag -1a inseriti da precedenti esecuzioni =
di getBottoniRicercaIndirizzoPersone
        abilitaBottoniRicercaIndirizzoPersone (true);
=20
        // resetto eventuali flag -1a inseriti da precedenti esecuzioni =
di getCampiLuogoAccessori
        abilitaCampiLuogoAccessori (true);
               =20
        // chiamo funzione per individuare campi accessori indirizzo che =
devono rimanere readonly
        // anche se il flag=3D3,4
        getCampiLuogoAccessori();
        // chiamo funzione per individuare bottoni di ricerca luogo di =
indirizzo persone che deve rimanere non visibile
        // anche se il flag=3D3,4
        getBottoniRicercaIndirizzoPersone();
        for(i =3D 0; i < document.all.length; i++) {
            t1 =3D /-1a/i;
             t2 =3D /_button/i;
            t3 =3D /true/i;
            t4 =3D /false/i;
            t5 =3D /trSel/i
            t6 =3D /trTxt/i
           =20
            st =3D document.all(i).id;
            if (st !=3D "" && st.substring(0,6) !=3D "wwctrl" && =
st.substring(0,5) !=3D "wwgrp"){
	            if (st.search(t3) !=3D -1){
	  		     	slice =3D st.split("true");
	  		     	flag =3D getControlFlag(slice[0]);
				}
		         else{
	             	if (st.search(t4) !=3D -1){
		            	 slice =3D st.split("false");
		            	 flag =3D getControlFlag(slice[0]);
	            	}
	            	else{
	            		if (st.search(t2) !=3D -1){
	             			slice =3D st.split("_button");
	             			flag =3D getControlFlag(slice[0]);
	             			if (flag =3D=3D 4){
	             				if (document.getElementById(slice[0]).value !=3D null =
&& document.getElementById(slice[0]).value !=3D "")
	             					flag =3D 3;
	             			}
	             		}
	              		else{
		              		if (st.search(t5) !=3D -1) {
		              			slice =3D st.split("trSel");
		              			flag =3D getControlFlag(slice[1]);
		              			if (document.getElementById("sel" + slice[1]) !=3D =
null){
		              				if (flag =3D=3D 4){
		              					if (document.getElementById("sel" + slice[1]).value =
!=3D null && document.getElementById("sel" + slice[1]).value !=3D "")
		             						flag =3D 3;
		             				}
		             			}
		              		}
		              		else{
			              		if (st.search(t6) !=3D -1) {
			              			slice =3D st.split("trTxt");
			              			flag =3D getControlFlag(slice[1]);
			              			if (document.getElementById("txt" + slice[1]) !=3D =
null){
			              				if (flag =3D=3D 4){
			              					if (document.getElementById("txt" + =
slice[1]).value !=3D null && document.getElementById("txt" + =
slice[1]).value !=3D "")
			             						flag =3D 3;
			             				}
			             			}
			              		}
	              				else{
									flag =3D getControlFlag(st);
								}
							}
						}
	             	}
		         }
			=09
	             // se il controllo ha il flag=3D4 (controllo correggibile =
solo se valore !=3D null) viene settato readOnly=3Dfalse
	             // solo il valore del controllo !=3D null
	             // se il controllo ha il flag=3D3 (controllo correggibile =
anche se valore =3D null) viene settato readOnly=3Dfalse comunque
	             // altrimenti rimane readOnly=3Dtrue ed il controllo =
risulta non modificabile
	             // se il controllo ha anche l'estensione 1a (campi =
accessori citt=E0) rimane=20
	             // readOnly=3Dtrue ed il controllo risulta non =
modificabile
	=20
	             if (flag =3D=3D 4) {
	             	if (st.search(t1) =3D=3D -1){
	             		if (document.all(i).value !=3D "" && =
document.all(i).value !=3D null) {
	             			scanFields(i);
	             		}
	             	}
	             }
	             if (flag =3D=3D 3) {
	             	if (st.search(t1) =3D=3D -1){
	             		scanFields(i);
	             	}
	             }
	    	}
		}
	}
=09
	function getControlFlag(stringToparse){
		var beginIndex =3D 0;
		var flag=3D"";
		while (stringToparse.indexOf("_", beginIndex) !=3D -1 ){
			beginIndex =3D stringToparse.indexOf("_", beginIndex) + 1;
		}
		flag =3DstringToparse.substring(beginIndex, beginIndex + 1);
		return flag;
=09
	}
=09
	function scanFields(i){
		 // setto readOnly=3Dfalse per i text box
		if (document.all(i).type =3D=3D "text") {
		    document.all(i).readOnly =3D false;
		    document.all(i).className=3D"textNormal";
		   }
		    // setto readOnly=3Dfalse per i textarea
		if (document.all(i).type =3D=3D "textarea") {
		    document.all(i).readOnly =3D false;
		    document.all(i).className=3D"textNormal";
		   }
		   // setto readOnly=3Dfalse per i radio button
		 s =3D /trRad/i;
		 st =3D document.all(i).id;
		 if (st.search(s) !=3D -1) {
		     dtpo =3D document.getElementById(st);
		     dtpo.className=3D"";
		 }
		 if (document.all(i).type =3D=3D "radio") {
		     document.all(i).disabled=3Dfalse;
		   }
		 // setto readOnly=3Dfalse per i check box
		 s =3D /trChk/i;
		 st =3D document.all(i).id;
		 if (st.search(s) !=3D -1) {
		     dtpo =3D document.getElementById(st);
		     dtpo.className=3D"";
		 }
		 if (document.all(i).type =3D=3D "checkbox") {
		     document.all(i).disabled=3Dfalse;
		   }
		 // mostro i bottoni di ricerca persone e citt=E0
		 // se il flag boolDisabilitaRicercaPersona =3D true il bottone viene =
mostrato
		 // in correzione (tipoOperazione=3D1) e non in modifica =
(tipoOperazione=3D2)
		 // se il flag boolDisabilitaRicercaPersona =3D false il bottone viene =
mostrato
		 // sia in correzione (tipoOperazione=3D1) che  in modifica =
(tipoOperazione=3D2)

		if (document.all(i).type =3D=3D "button") {
			s =3D /search/i;
			if (st.search(s) !=3D -1) {
				btns=3Ddocument.getElementById(st);
				if(btns.id.indexOf("Soggetto") =3D=3D -1){
					btns.style.display=3D"";
				}
				else{
					if (document.getElementById("boolDisabilitaRicercaPersona") !=3D =
null){
						if (document.getElementById("boolDisabilitaRicercaPersona").value =
!=3D "true"){
					    	btns.style.display=3D"";
					   	}
						else{
					   		// CORREZIONE
					   	   if (document.getElementById("tipoOperazione") !=3D null){
							   if (document.getElementById("tipoOperazione").value =3D=3D =
"1"){=20
						    		btns.style.display=3D"";
								}
							}
						}				   =09
					}
				}
			}
		}
		// mostro i bottoni dei datepicker
		 s =3D /_button/i;
		 st =3D document.all(i).id;
		 if (st.search(s) !=3D -1) {
		     dtpo =3D document.getElementById(st);
		     dtpo.style.display=3D"";
		 }
		// mostro le select e nascondo i text box associati
=09
		 s =3D /trTxt/i;
		 st =3D document.all(i).id;
		=20
		 if (st.search(s) !=3D -1) {
		     dtpo =3D document.getElementById(st);
		     dtpo.style.display=3D"none";
		 }
		 s =3D /trSel/i;
		 st =3D document.all(i).id;
		 if (st.search(s) !=3D -1) {
		    dtpo =3D document.getElementById(st);
		    dtpo.style.display=3D"";
		    dtpo.className=3D"textNormal";
		 }
		=20
		 s =3D /chkCancella/i;
		 st =3D document.all(i).id;
		 if (st.search(s) !=3D -1) {
		    dtpo =3D document.getElementById(st);
		    dtpo.style.display=3D"";
	=09
		 }
		 if (document.all(i).type =3D=3D "select-one") {
		     document.all(i).className=3D"textNormal";
		 }
		 // mostro i bottoni per aggiungi cancella nelle liste dentro le form
		 s =3D /trBtn/i;
		 st =3D document.all(i).id;
		 if (st.search(s) !=3D -1) {
		     dtpo =3D document.getElementById(st);
		     dtpo.style.display=3D"";
		     //dtpo.style.visibility=3D"visible";
		 }
=09
	}=09

    // questa funzione individua i campi accessori dei luoghi solo nel =
caso il campo citt=E0/comune
    // =E8 nullo. In questo caso la fuzione setWritable non si applica =
ai campi accessori, che devono rimanere
    // readonly. I campi accesori vengono resi scrivibili dalla =
callback, quando viene riempito il campo citt=E0/comune.
    // Quando la funzione individua un campo accessorio nelle suddette =
conzioni, appende all'id del campo la stringa
    // "-1a". La funzione setWritable skippa i campi che hanno questa =
estensione.
    function getCampiLuogoAccessori () {
    	if (document.getElementsByName("txtComuneSL")[0] !=3D null && =
document.getElementsByName("txtViaSL")[0] !=3D null){
    		if (document.getElementsByName("txtComuneSL")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneSL")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaSL")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPSL")[0].id +=3D "-1a";
    			/*if (document.getElementsByName("txtTelefonoSL")[0] !=3D null)
    				document.getElementsByName("txtTelefonoSL")[0].id +=3D "-1a";
    			if (document.getElementsByName("txtFaxSL")[0] !=3D null)
    				document.getElementsByName("txtFaxSL")[0].id +=3D "-1a";*/
    		}
    	}
    =09
    	if (document.getElementsByName("txtComuneDG")[0] !=3D null && =
document.getElementsByName("txtViaDG")[0] !=3D null){
   			if (document.getElementsByName("txtComuneDG")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneDG")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaDG")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPDG")[0].id +=3D "-1a";
    			if (document.getElementsByName("txtTelefonoDG")[0] !=3D null)
    				document.getElementsByName("txtTelefonoDG")[0].id +=3D "-1a";
    			if (document.getElementsByName("txtFaxDG")[0] !=3D null)
    				document.getElementsByName("txtFaxDG")[0].id +=3D "-1a";
    		}    =09
    	}

    	if (document.getElementsByName("txtComuneSLR")[0] !=3D null){
   			if (document.getElementsByName("txtComuneSLR")[0].value =3D=3D =
null || document.getElementsByName("txtComuneSLR")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaSLR")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPSLR")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoSLR")[0].id +=3D "-1a";
    			document.getElementsByName("txtFaxSLR")[0].id +=3D "-1a";
    		}    =09
    	}
    =09
    	if (document.getElementsByName("txtComuneRFF")[0] !=3D null){
  			if (document.getElementsByName("txtComuneRFF")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneRFF")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaRFF")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPRFF")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoRFF")[0].id +=3D "-1a";
    		}    =09
    	}
  =09
    	if (document.getElementsByName("txtComuneRFG")[0] !=3D null){
  			if (document.getElementsByName("txtComuneRFG")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneRFG")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaRFG")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPRFG")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoRFG")[0].id +=3D "-1a";
    		}    =09
    	}

    	if (document.getElementsByName("txtComuneGSF")[0] !=3D null){
  			if (document.getElementsByName("txtComuneGSF")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneGSF")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaGSF")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPGSF")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoGSF")[0].id +=3D "-1a";
    		}    =09
    	}    =09

    	if (document.getElementsByName("txtComuneGSG")[0] !=3D null){
  			if (document.getElementsByName("txtComuneGSG")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneGSG")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaGSG")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPGSG")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoGSG")[0].id +=3D "-1a";
    		}    =09
    	}
    	    =09
    	if (document.getElementsByName("txtComuneSI")[0] !=3D null){
   			if (document.getElementsByName("txtComuneSI")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneSI")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaSI")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPSI")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoSI")[0].id +=3D "-1a";
    			document.getElementsByName("txtFaxSI")[0].id +=3D "-1a";
    		}
    	}
    	=09
    	if (document.getElementsByName("txtComuneRG")[0] !=3D null){
    		if (document.getElementsByName("txtComuneRG")[0].value =3D=3D null =
|| document.getElementsByName("txtComuneRG")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaRG")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPRG")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoRG")[0].id +=3D "-1a";
    			document.getElementsByName("txtFaxRG")[0].id +=3D "-1a";
    		}
    	}

   		if (document.getElementsByName("txtComuneCommissarioActa")[0] !=3D =
null){
    		if =
(document.getElementsByName("txtComuneCommissarioActa")[0].value =3D=3D =
null || document.getElementsByName("txtComuneCommissarioActa")[0].value =
=3D=3D ""){
    			document.getElementsByName("txtViaCommissarioActa")[0].id +=3D =
"-1a"; =20
    			document.getElementsByName("txtCAPCommissarioActa")[0].id +=3D =
"-1a";
    			document.getElementsByName("txtTelefonoCommissarioActa")[0].id =
+=3D "-1a";
    			document.getElementsByName("txtFaxCommissarioActa")[0].id +=3D =
"-1a";
    		}
    	}    =09

   		if =
(document.getElementsByName("txtComuneCommissarioGestProvvisoria")[0] =
!=3D null){
    		if =
(document.getElementsByName("txtComuneCommissarioGestProvvisoria")[0].val=
ue =3D=3D null || =
document.getElementsByName("txtComuneCommissarioGestProvvisoria")[0].valu=
e =3D=3D ""){
    			=
document.getElementsByName("txtViaCommissarioGestProvvisoria")[0].id =
+=3D "-1a"; =20
    			=
document.getElementsByName("txtCAPCommissarioGestProvvisoria")[0].id =
+=3D "-1a";
    			=
document.getElementsByName("txtTelefonoCommissarioGestProvvisoria")[0].id=
 +=3D "-1a";
    			=
document.getElementsByName("txtFaxCommissarioGestProvvisoria")[0].id =
+=3D "-1a";
    		}
    	}    =09
    =09
   		if (document.getElementsByName("txtComuneSSS")[0] !=3D null){
    		if (document.getElementsByName("txtComuneSSS")[0].value =3D=3D =
null || document.getElementsByName("txtComuneSSS")[0].value =3D=3D ""){
    			document.getElementsByName("txtViaSSS")[0].id +=3D "-1a"; =20
    			document.getElementsByName("txtCAPSSS")[0].id +=3D "-1a";
    			document.getElementsByName("txtTelefonoSSS")[0].id +=3D "-1a";
    			document.getElementsByName("txtFaxSSS")[0].id +=3D "-1a";
    		}
    	}    =09
      }

// Questa funzione abilita in scrittura, congruentemente con i flag, i =
campi accessori dei luoghi
// dopo che =E8 stata confermando la scelta del luogo.

	function abilitaCampiLuogoAccessori (init) {
		var beginIndex =3D 0;
		for(i =3D 0; i < document.all.length; i++) {
			 st =3D document.all(i).id;
			 if (st !=3D "" && st.substring(0,6) !=3D "wwctrl" && =
st.substring(0,5) !=3D "wwgrp"){
				 if (st.indexOf("-1a", beginIndex) !=3D -1 ){
				 	st =3D st.replace("-1a","");
				 	document.all(i).id =3D st;
				 }
			 }
		}
		if (!init){
			if (document.getElementById("tipoOperazione").value =3D=3D "2" || =
document.getElementById("tipoOperazione").value =3D=3D "3")
				setWritable(false);
			if (document.getElementById("tipoOperazione").value =3D=3D "1")
				setCorreggibile(false);
		}	=09
	}

    // questa funzione individua i bottoni di ricerca luoghi degli =
indirizzi delle persone fisiche/giuridiche
    //  solo nel caso il campo cognome/denominazione =E8 nullo. In =
questo caso la fuzione setWritable non si applica ai bottoni
    //  di ricerca luoghi, che devono rimanere non visibili. I bottoni =
di ricerca luoghi vengono resi visibili dalla callback,=20
    // quando viene riempito il campo cognome/denominazione. Quando la =
funzione individua un bottone ricerca luoghi
    // nelle suddette conzioni, appende all'id del bottone la stringa =
"-1a". La funzione setWritable skippa=20
    // i bottoni che hanno questa estensione.

    function getBottoniRicercaIndirizzoPersone () {
    	if (document.getElementsByName("txtCognomeRapprFiscalePF")[0] !=3D =
null){
    		if =
(document.getElementsByName("txtCognomeRapprFiscalePF")[0].value =3D=3D =
null || document.getElementsByName("txtCognomeRapprFiscalePF")[0].value =
=3D=3D ""){
    			document.getElementsByName("searchLuogoRFF")[0].id +=3D "-1a";
    			document.getElementsByName("dtpDataNominaRapprFiscalePF")[0].id =
+=3D "-1a"; =20
    			=
document.getElementsByName("dtpDataCessIncaricoRapprFiscalePF")[0].id =
+=3D "-1a"; =20
    		}
    	}
    	if (document.getElementsByName("txtDenomSocialeRapprFiscalePG")[0] =
!=3D null){
    		if =
(document.getElementsByName("txtDenomSocialeRapprFiscalePG")[0].value =
=3D=3D null || =
document.getElementsByName("txtDenomSocialeRapprFiscalePG")[0].value =
=3D=3D ""){
    			document.getElementsByName("searchLuogoRFG")[0].id +=3D "-1a";
    			document.getElementsByName("dtpDataNominaRapprFiscalePG")[0].id =
+=3D "-1a";=20
    			=
document.getElementsByName("dtpDataCessIncaricoRapprFiscalePG")[0].id =
+=3D "-1a"; =20
    		}
    	}
    	if (document.getElementsByName("txtCognomeRapprGestSinistriPF")[0] =
!=3D null){
    		if =
(document.getElementsByName("txtCognomeRapprGestSinistriPF")[0].value =
=3D=3D null || =
document.getElementsByName("txtCognomeRapprGestSinistriPF")[0].value =
=3D=3D ""){
    			document.getElementsByName("searchLuogoGSF")[0].id +=3D "-1a";
    			=
document.getElementsByName("dtpDataNominaRapprGestSinistriPF")[0].id =
+=3D "-1a";
    			=
document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPF")[0].i=
d +=3D "-1a"; =20
    		}
    	}
    	if =
(document.getElementsByName("txtDenomSocialeRapprGestSinistriPG")[0] =
!=3D null){
    		if =
(document.getElementsByName("txtDenomSocialeRapprGestSinistriPG")[0].valu=
e =3D=3D null || =
document.getElementsByName("txtDenomSocialeRapprGestSinistriPG")[0].value=
 =3D=3D ""){
    			document.getElementsByName("searchLuogoGSG")[0].id +=3D "-1a";
    			=
document.getElementsByName("dtpDataNominaRapprGestSinistriPG")[0].id =
+=3D "-1a";
    			=
document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPG")[0].i=
d +=3D "-1a"; =20
    		}
    	}
    	if (document.getElementsByName("txtCognomeRapprGeneralePF")[0] !=3D =
null){
    		if =
(document.getElementsByName("txtCognomeRapprGeneralePF")[0].value =3D=3D =
null || document.getElementsByName("txtCognomeRapprGeneralePF")[0].value =
=3D=3D ""){
    		=09
    			if (document.getElementsByName("dtpDataNominaRapprGeneralePF")[0] =
!=3D null)=09
    				document.getElementsByName("dtpDataNominaRapprGeneralePF")[0].id =
+=3D "-1a";
    			if =
(document.getElementsByName("dtpDataCessIncaricoRapprGeneralePF")[0] =
!=3D null)=09
    				=
document.getElementsByName("dtpDataCessIncaricoRapprGeneralePF")[0].id =
+=3D "-1a";
    		}
    	}=20
    =09
    	if (document.getElementsByName("txtDenomSocialeRapprGeneralePG")[0] =
!=3D null){
    		if =
(document.getElementsByName("txtDenomSocialeRapprGeneralePG")[0].value =
=3D=3D null || =
document.getElementsByName("txtDenomSocialeRapprGeneralePG")[0].value =
=3D=3D ""){
    			if (document.getElementsByName("searchLuogoRG")[0] !=3D null)
    				document.getElementsByName("searchLuogoRG")[0].id +=3D "-1a";    =
 =09
    		}
    	}=20
	=09
		if (document.getElementsByName("txtCognomeSoggIncaRapprGeneralePG")[0] =
!=3D null){
			if =
(document.getElementsByName("txtCognomeSoggIncaRapprGeneralePG")[0].value=
 =3D=3D null || =
document.getElementsByName("txtCognomeSoggIncaRapprGeneralePG")[0].value =
=3D=3D ""){	=09
=20
    			if =
(document.getElementsByName("dtpDataNominaSoggIncaRapprGeneralePG")[0] =
!=3D null)=09
    				=
document.getElementsByName("dtpDataNominaSoggIncaRapprGeneralePG")[0].id =
+=3D "-1a";
    			if =
(document.getElementsByName("dtpDataCessIncaricoSoggIncaRapprGeneralePG")=
[0] !=3D null)=09
    				=
document.getElementsByName("dtpDataCessIncaricoSoggIncaRapprGeneralePG")[=
0].id +=3D "-1a"; =20
    	=09
 =20
    		}
    	}
    	if (document.getElementsByName("txtCognomeCommissarioActa")[0] !=3D =
null){
    		if =
(document.getElementsByName("txtCognomeCommissarioActa")[0].value =3D=3D =
null || document.getElementsByName("txtCognomeCommissarioActa")[0].value =
=3D=3D ""){
    			document.getElementsByName("searchLuogoCommissarioActa")[0].id =
+=3D "-1a"; =20
    		}
    	}

    	if =
(document.getElementsByName("txtCognomeCommissarioGestProvvisoria")[0] =
!=3D null){
    		if =
(document.getElementsByName("txtCognomeCommissarioGestProvvisoria")[0].va=
lue =3D=3D null || =
document.getElementsByName("txtCognomeCommissarioGestProvvisoria")[0].val=
ue =3D=3D ""){
    			=
document.getElementsByName("searchLuogoCommissarioGestProvvisoria")[0].id=
 +=3D "-1a"; =20
    		}
    	}
    }

// Questa funzione rende visibili, congruentemente con i flag, i bottoni =
di ricerca dei luoghi degli
// indirizzi delle persone fisiche/giuridiche dopo che =E8 stata =
confermato il cognome/denominazione.
// init=3Dtrue la chimata arriva da setWritable o da setCorreggibile
// init=3Dfalse la chimata arriva da una callBack

	function abilitaBottoniRicercaIndirizzoPersone (init) {
		var beginIndex =3D 0;
		for(i =3D 0; i < document.all.length; i++) {
			 st =3D document.all(i).id;
			=20
			 if (st !=3D "" && st.substring(0,6) !=3D "wwctrl" && =
st.substring(0,5) !=3D "wwgrp"){

				 if (st.indexOf("-1a", beginIndex) !=3D -1 ){
				 	st =3D st.replace("-1a","");
				 	document.all(i).id =3D st;
				 }
			 }
		}
		if (!init){
			if (document.getElementById("tipoOperazione").value =3D=3D "2" || =
document.getElementById("tipoOperazione").value =3D=3D "3")
				setWritable();
			if (document.getElementById("tipoOperazione").value =3D=3D "1")
				setCorreggibile();
		}	=09
	}

	// Funzione chiamata al caricamento della pagina da setReadOnly=20
	// Questa funzione consente di nascondere/visualizzare in =
visualizzazione=20
	// i campi di persona fisica/giuridica in funzione della presenza dei =
dati relativi
	// se non c'=E8 il cognome della PF vengono nascosti i campi della PF e =
visualizzati
	// quelli della PG e viversa.
=09
    function displayPFPG(){
 		if (document.getElementById("txtCognomeRapprFiscalePF") !=3D null){
			if (document.getElementById("txtCognomeRapprFiscalePF").value !=3D =
null && document.getElementById("txtCognomeRapprFiscalePF").value !=3D =
""){
				document.getElementsByName("rdbTipoRapprFiscale")[0].checked =3D =
true;
			 	document.getElementById("RapprFiscalePF").style.display=3D"";
		 		document.getElementById("RapprFiscalePG").style.display=3D"none";
		 	}
		 =09
		}
		if (document.getElementById("txtDenomSocialeRapprFiscalePG") !=3D =
null){
			if (document.getElementById("txtDenomSocialeRapprFiscalePG").value =
!=3D null && =
document.getElementById("txtDenomSocialeRapprFiscalePG").value !=3D ""){
				document.getElementsByName("rdbTipoRapprFiscale")[1].checked =3D =
true;
			 	document.getElementById("RapprFiscalePG").style.display=3D"";
		 		document.getElementById("RapprFiscalePF").style.display=3D"none";
		 	}
		}
		if (document.getElementById("txtCognomeRapprGestSinistriPF") !=3D =
null){
			if (document.getElementById("txtCognomeRapprGestSinistriPF").value =
!=3D null && =
document.getElementById("txtCognomeRapprGestSinistriPF").value !=3D ""){
				document.getElementsByName("rdbRapprGestSinistri")[0].checked =3D =
true;
			 	document.getElementById("RapprGestSinistriPF").style.display=3D"";
		 		=
document.getElementById("RapprGestSinistriPG").style.display=3D"none";
		 	}
		}
		if (document.getElementById("txtDenomSocialeRapprGestSinistriPG") !=3D =
null){
			if =
(document.getElementById("txtDenomSocialeRapprGestSinistriPG").value =
!=3D null && =
document.getElementById("txtDenomSocialeRapprGestSinistriPG").value !=3D =
""){
				document.getElementsByName("rdbRapprGestSinistri")[1].checked =3D =
true;
			 	document.getElementById("RapprGestSinistriPG").style.display=3D"";
		 		=
document.getElementById("RapprGestSinistriPF").style.display=3D"none";			=

			}
		}
	 	if (document.getElementById("txtCognomeRapprGeneralePF") !=3D null){
			if (document.getElementById("txtCognomeRapprGeneralePF").value !=3D =
null && document.getElementById("txtCognomeRapprGeneralePF").value !=3D =
""){
				document.getElementsByName("rdbTipoRapprGenerale")[0].checked =3D =
true;
			 	document.getElementById("RapprGeneralePF").style.display=3D"";
		 		document.getElementById("RapprGeneralePG").style.display=3D"none";
		 		if (document.getElementById("SoggIncaRapprGeneralePG") !=3D null)
		 			=
document.getElementById("SoggIncaRapprGeneralePG").style.display=3D"none"=
;
		 		if (document.getElementById("SoggIncaRapprGeneralePF") !=3D null)
		 			=
document.getElementById("SoggIncaRapprGeneralePF").style.display=3D"none"=
;
		 	}
		 	if ((document.getElementById("txtCognomeRapprGeneralePF").value =
=3D=3D null || =
document.getElementById("txtCognomeRapprGeneralePF").value =3D=3D "") &&
		 	(document.getElementById("txtDenomSocialeRapprGeneralePG").value =
=3D=3D null || =
document.getElementById("txtDenomSocialeRapprGeneralePG").value =3D=3D =
""))
		 	{
		 		document.getElementsByName("rdbTipoRapprGenerale")[0].checked =3D =
true;
			 	document.getElementById("RapprGeneralePF").style.display=3D"";
		 		document.getElementById("RapprGeneralePG").style.display=3D"none";
		 		if (document.getElementById("SoggIncaRapprGeneralePG") !=3D null)
		 			=
document.getElementById("SoggIncaRapprGeneralePG").style.display=3D"none"=
;
		 		if (document.getElementById("SoggIncaRapprGeneralePF") !=3D null)
		 			=
document.getElementById("SoggIncaRapprGeneralePF").style.display=3D"none"=
;
		 	}
		}

		if (document.getElementById("txtDenomSocialeRapprGeneralePG") !=3D =
null){
			if (document.getElementById("txtDenomSocialeRapprGeneralePG").value =
!=3D null && =
document.getElementById("txtDenomSocialeRapprGeneralePG").value !=3D =
""){
				document.getElementsByName("rdbTipoRapprGenerale")[1].checked =3D =
true;
			 	document.getElementById("RapprGeneralePG").style.display=3D"";
		 		document.getElementById("RapprGeneralePF").style.display=3D"none";
		 		if (document.getElementById("SoggIncaRapprGeneralePG") !=3D null)
		 			=
document.getElementById("SoggIncaRapprGeneralePG").style.display=3D"";
		 		if (document.getElementById("SoggIncaRapprGeneralePF") !=3D null)
		 			=
document.getElementById("SoggIncaRapprGeneralePF").style.display=3D"";
		 	}
		}
=09
	}=09
=09
	function toggleProvvDecr(){
		if (document.getElementsByName("radTipoProvvedimentoDecreto")[0] !=3D =
null){
			if =
(document.getElementsByName("radTipoProvvedimentoDecreto")[0].checked =
=3D=3D true){
				=
document.getElementById("lbltxtNumeroProvvedimentoDecreto").innerText=3D"=
Numero Provvedimento";
				document.getElementById("lbl2dtpDataProvvedimentoDecreto"). title =
=3D "Data Provvedimento";
			}
			if =
(document.getElementsByName("radTipoProvvedimentoDecreto")[1].checked =
=3D=3D true){
				=
document.getElementById("lbltxtNumeroProvvedimentoDecreto").innerText=3D"=
Numero Decreto";
				document.getElementById("lbl2dtpDataProvvedimentoDecreto"). title =
=3D "Data Decreto";
			}
		}
	}=09
  =20
   function displayComboCensimentoCompMain(){
   	if ( document.getElementById("censimentoCompagnia") !=3D null)
   		displayComboCensimentoComp();
   }
  =20
	function preserveSearchCiteria(){
		if (document.all.isSearchForm !=3D null){
			// imposta i check box quando si torna alla pagina di ricerca con =
tatsto back
			for(i =3D 0; i < document.all.length; i++) {
				if (document.all(i).type =3D=3D "checkbox") {
			   			abilitatxt(document.all(i).name,'true');
			   	}
			   =09
			   	// imposta i radio button quando si torna alla pagina di ricerca =
con tatsto back
			   	if (document.all(i).type =3D=3D "radio") {
			   		s =3D /radio/i;
		     		st =3D document.all(i).id;
		     		if (st.search(s) !=3D -1){
				   		abilitatxt(document.all(i).value,'true');
				   	}
	   			}
   		=09
	   			// nascondo i bottoni dei datepicker
		   		s =3D /_button/i;
		   		st =3D document.all(i).id;
		   		if (st.search(s) !=3D -1) {
		   			dtpo =3D document.getElementById(st);
		   			dtpo.style.display=3D"none";
		   		}
			}
		}
	}
=09
function correggi()
{
	if (document.getElementById("dvBtnPrecedente") !=3D null)
		document.getElementById("dvBtnPrecedente").style.display =3D "none";
	if (document.getElementById("dvBtnSuccessivo") !=3D null)
		document.getElementById("dvBtnSuccessivo").style.display =3D "none";=09
	if (document.getElementById("dvBtnSalva") !=3D null)
		document.getElementById("dvBtnSalva").style.display =3D "";
	if (document.getElementById("dvBtnModifica") !=3D null)
		document.getElementById("dvBtnModifica").style.display =3D "none";
	if (document.getElementById("dvBtnInserisci") !=3D null )
		document.getElementById("dvBtnInserisci").style.display =3D "none";
	if (document.getElementById("dvBtnCorreggi") !=3D null	)
		document.getElementById("dvBtnCorreggi").style.display =3D "none";
	if(document.getElementById("dvBtnCancel") !=3D null)=09
		document.getElementById("dvBtnCancel").style.display =3D "";
	if(document.getElementById("dvBtnAnnulla"))=09
		document.getElementById("dvBtnAnnulla").style.display =3D "";	=09
=09
	// CLS e CLS RC
	if(document.getElementById("divCLSOrarioDettaglio") !=3D null)=09
		document.getElementById("divCLSOrarioDettaglio").style.display =3D =
"none";	=09
	if(document.getElementById("divCLSOrarioModifica") !=3D null)=09
		document.getElementById("divCLSOrarioModifica").style.display =3D "";		=

	if(document.getElementById("divCLSRCOrarioDettaglio") !=3D null)=09
		document.getElementById("divCLSRCOrarioDettaglio").style.display =3D =
"none";	=09
	if(document.getElementById("divCLSRCOrarioModifica") !=3D null)=09
		document.getElementById("divCLSRCOrarioModifica").style.display =3D =
"";	=09

	document.getElementById("tipoOperazione").value=3D"1";
	document.getElementById("tipoOperazione").title=3D"1";

	setCorreggibile();
}

function inserisci(){
	if (document.getElementById("btnInserisciNuovoCommissarioAS") !=3D =
null)
		=
document.getElementById("btnInserisciNuovoCommissarioAS").style.display =
=3D "none";
	if (document.getElementById("btnInserisciNuovoComitatoAS") !=3D null)
		document.getElementById("btnInserisciNuovoComitatoAS").style.display =
=3D "none";	=09
	if (document.getElementById("dvBtnPrecedente") !=3D null)
		document.getElementById("dvBtnPrecedente").style.display =3D "none";
	if (document.getElementById("dvBtnSuccessivo") !=3D null)
		document.getElementById("dvBtnSuccessivo").style.display =3D "none";
	if (document.getElementById("dvBtnSalva") !=3D null)
		document.getElementById("dvBtnSalva").style.display =3D "";
	if (document.getElementById("dvBtnModifica") !=3D null)
		document.getElementById("dvBtnModifica").style.display =3D "none";
	if (document.getElementById("dvBtnCorreggi") !=3D null)
		document.getElementById("dvBtnCorreggi").style.display =3D "none";
	if (document.getElementById("dvBtnCancel") !=3D null)
		document.getElementById("dvBtnCancel").style.display =3D "";
	if (document.getElementById("dvBtnInserisci") !=3D null )
		document.getElementById("dvBtnInserisci").style.display =3D "none";
	if (document.getElementById("search_persona") !=3D null )
		document.getElementById("search_persona").style.display =3D "";
	if (document.getElementById("search_pg") !=3D null )
		document.getElementById("search_pg").style.display =3D "";
	if (document.getElementById("search_comune_nascita") !=3D null )
		document.getElementById("search_comune_nascita").style.display =3D "";
	if (document.getElementById("search_comune_residenza") !=3D null )
		document.getElementById("search_comune_residenza").style.display =3D =
"";

}

function modifica(){

	if (document.getElementById("dvBtnPrecedente") !=3D null)
		document.getElementById("dvBtnPrecedente").style.display =3D "none";
	if (document.getElementById("dvBtnSuccessivo") !=3D null)
		document.getElementById("dvBtnSuccessivo").style.display =3D "none";	=09
	if (document.getElementById("dvBtnSalva") !=3D null)
		document.getElementById("dvBtnSalva").style.display =3D "";
	if (document.getElementById("dvBtnModifica") !=3D null)
		document.getElementById("dvBtnModifica").style.display =3D "none";
	if (document.getElementById("dvBtnInserisci") !=3D null )
		document.getElementById("dvBtnInserisci").style.display =3D "none";
	if (document.getElementById("dvBtnCorreggi") !=3D null)
		document.getElementById("dvBtnCorreggi").style.display =3D "none";
	if (document.getElementById("dvBtnCancel") !=3D null)=09
		document.getElementById("dvBtnCancel").style.display =3D "";
	if(document.getElementById("dvBtnAnnulla"))=09
		document.getElementById("dvBtnAnnulla").style.display =3D "";	=09
	=09
	// CLS e CLS RC
	if(document.getElementById("divCLSOrarioDettaglio") !=3D null)=09
		document.getElementById("divCLSOrarioDettaglio").style.display =3D =
"none";	=09
	if(document.getElementById("divCLSOrarioModifica") !=3D null)=09
		document.getElementById("divCLSOrarioModifica").style.display =3D "";		=

	if(document.getElementById("divCLSRCOrarioDettaglio") !=3D null)=09
		document.getElementById("divCLSRCOrarioDettaglio").style.display =3D =
"none";	=09
	if(document.getElementById("divCLSRCOrarioModifica") !=3D null)=09
		document.getElementById("divCLSRCOrarioModifica").style.display =3D =
"";	=09

	// rende visibili i rischi
	if (document.getElementById("paginaRischi") !=3D null){
	    t =3D /_rischi/i;
        var nl =3D document.getElementsByTagName("tr");
  	=09
		if ( nl.length > 0)
			{
			for(i=3D0; i < nl.length; i++)
				 {
				   st =3D nl.item(i).id;
				   if ((st.search(t) !=3D -1)  && ((st !=3D null) && (st !=3D "")))
				   {
				 	if(document.getElementById(st) !=3D null)
				 		document.getElementById(st).style.display =3D "";
				 	}
				 }
			}
	}
	document.getElementById("tipoOperazione").value=3D"2";
	document.getElementById("tipoOperazione").title=3D"2";

	setWritable();
}

//	la funzione ripristinaTipoOperazione() viene chiamata dal bottone =
salva prima di lancuare la save().
//	Serve per ripristinare il valore dell'hidden tipoOperazione nel caso =
in cui si sia premuto
//	Esc oppure il bottone cancella (type reset) che hanno resettato il =
valore dell'hidden.
// 	Il valore dell'hidden viene ripescato dallla propriet=E0 title, =
sulla quale era stato preventivamente
//	salvato il valore dell'hidden medesimo.

	function ripristinaTipoOperazione(){
		if (document.getElementById("tipoOperazione").value =3D=3D "")
			document.getElementById("tipoOperazione").value =3D =
document.getElementById("tipoOperazione").title;
	}
function annulla(){

	if (document.getElementById("dvBtnPrecedente") !=3D null)
		document.getElementById("dvBtnPrecedente").style.display =3D "";
	if (document.getElementById("dvBtnSuccessivo") !=3D null)
		document.getElementById("dvBtnSuccessivo").style.display =3D "";	=09
	if (document.getElementById("dvBtnSalva") !=3D null)
		document.getElementById("dvBtnSalva").style.display =3D "none";
	if (document.getElementById("dvBtnModifica") !=3D null)
		document.getElementById("dvBtnModifica").style.display =3D "";
	if (document.getElementById("dvBtnCorreggi") !=3D null)
		document.getElementById("dvBtnCorreggi").style.display =3D "";
	if (document.getElementById("dvBtnCancel") !=3D null)=09
		document.getElementById("dvBtnCancel").style.display =3D "none";
	if(document.getElementById("dvBtnAnnulla"))=09
		document.getElementById("dvBtnAnnulla").style.display =3D "none";
    if (document.getElementById("btnModifica") !=3D null)
   		document.getElementById("btnModifica").disabled =3D false;
   	=09
   	// wz 11/12/2008 : aggiunto il reset della form perch=E8 le =
modifiche apportate non venivano
   	// ripristinate all'atto dell' annulla.
   	if(document.getElementsByTagName("form") !=3D null)
		document.getElementsByTagName("form")[0].reset();
=20
   	setReadOnly()	=09
}

function modifica_azionisti()
{

if(document.getElementsByTagName("form") !=3D null)
		document.getElementsByTagName("form")[0].action=3D"";
location.href=3D"";


}

function call_inserisci()
	{
		location.href=3D"/Albi/anagraficaBaseLpsEntrataPrepare.action";
		//document.getElementById("tipoOperazione").value=3D"3";
	}

// gestisce le ricerche veloci nel db
// aggiungere nel case i nuovi tipi di ricerche implementati
function search_data(id_campo,cosa,modoRicerca,codiceStato){
	var parModoRicerca =3D(typeof search_data.arguments[2] =3D=3D =
'undefined')?"":search_data.arguments[2];
	var parCodiceStato =3D(typeof search_data.arguments[3] =3D=3D =
'undefined')?"":search_data.arguments[3];
 	var campo =3D document.getElementById(id_campo).value;
 	var url;
  	switch(cosa){
 	 case 'citta':
 		url =3D '/Albi/comuni/ricercaComuni.jsp?campo=3D' + campo + =
"&id_campo=3D" + id_campo + "&popup=3Dfalse" + "&modoRicerca=3D" + =
parModoRicerca + "&codiceStato=3D" + parCodiceStato;
 		ret =3D showPopWin(url,620,400,null,false,true,'Ricerca Luogo');
 		break;
 	case 'cittapopup':
 		url =3D '/Albi/comuni/ricercaComuni.jsp?campo=3D' + campo + =
"&id_campo=3D" + id_campo + "&popup=3Dtrue";
 		ret =3D showPopWin1(url,600,400,null,false,true,'Ricerca Luogo');
 		break;
 	 case 'persona':
 		url =3D "ricercaPersone.action?campo=3D" + campo.value + =
"&id_campo=3D" + id_campo;
 		ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Persona =
Fisica');
 		break;
 	 case 'nuovaImpresaGruppo':
 		url =3D '/Albi/ricerca/RicercaSocieta.jsp?campo=3D' + campo + =
"&id_campo=3D" + id_campo + "&popup=3Dfalse" + "&tipoRicerca=3D3";
 		ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Compagnia');
 		break; 	=09
 	 case 'capogruppo':
		var idCapogruppo =3D =
document.getElementById("hidCodiceIsvapCapogruppo").value;
 		url =3D '/Albi/ricerca/RicercaSocieta.jsp?campo=3D' + campo + =
"&id_campo=3D" + id_campo + "&popup=3Dfalse" + "&tipoRicerca=3D4" + =
"&idCapogruppo=3D" + idCapogruppo;
 		ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Compagnia');
 		break; =09
 	 case 'trasferimentoPortafoglio':
 		url =3D '/Albi/ricerca/RicercaSocieta.jsp?campo=3D' + campo + =
"&id_campo=3D" + id_campo + "&popup=3Dfalse" + "&tipoRicerca=3D1";
 		ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Compagnia');
 		break; =09
 	 case 'scissioneFusione':
 		url =3D '/Albi/ricerca/RicercaSocieta.jsp?campo=3D' + campo + =
"&id_campo=3D" + id_campo + "&popup=3Dfalse" + "&tipoRicerca=3D2";
 		ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Compagnia');
 		break; =09


  	}
}
function =
getDettaglioConglomerato(modo,indice,congDenom,autoritaCodice,statoAutori=
taCodice){

	if (modo=3D=3D"inserimento"){
		url =3D "dettaglioConglomeratoFinanziario.action?modo=3Dinserimento";
 		ret =3D showPopWin(url,970,150,null,false,true,'Inserimento =
Conglomerato');=09
	}
=09
	if (modo=3D=3D"modifica"){
		url =3D "dettaglioConglomeratoFinanziario.action?modo=3Dmodifica" + =
"&indice=3D" + indice + "&congDenom=3D" + escape(congDenom)   + =
"&autoritaCodice=3D" + autoritaCodice + "&statoAutoritaCodice=3D" + =
statoAutoritaCodice;=20
		ret =3D showPopWin(url,970,150,null,false,true,'Modifica =
Conglomerato');=09
	}
}

function read_person_from_db(nome,cognome,codfisc,id_campo){
	var url =3D '/Albi/comuni/ricercaPersoneFisiche.jsp?cognome=3D' + =
escape(cognome) + "&nome=3D" + escape(nome) + "&codfisc=3D" + codfisc + =
"&id_campo=3D" + id_campo;=20
	ret =3D showPopWin(url,620,490,null,false,true,'Ricerca Persona =
Fisica');
	}
=09
function read_citta_from_db(citta,id_campo)
	{
	 if (citta.length < 1)
{
 	 alert("Si deve inserire almeno un carattere nel campo citt=E0 per =
effettuare la ricerca" );
 	 return;
 	}
	var url =3D "ricercaComuni.action?campo=3D" + citta + "&id_campo=3D" + =
id_campo;=20
	ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Luogo');
	}

function read_pgiuridica_from_db(denominazione,piva,id_campo){
	var url =3D =
'/Albi/comuni/ricercaPersoneGiuridiche.jsp?denominazione=3D' + =
escape(denominazione) + "&piva=3D" + piva + "&id_campo=3D" + id_campo;=20
	ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Persona =
Giuridica');
	}

function read_compagnia_from_db(nome,id_campo)
	{
	 if (nome.length < 3)
{
 	 alert("Si devono inserire almeno 3 caratteri nel campo nome compagnia =
per effettuare la ricerca" );
 	 return;
 	}
	var url =3D "ElencoSocieta.action?optContiene=3D" + nome + =
"&id_campo=3D" + id_campo;=20
	ret =3D showPopWin(url,600,400,null,false,true,'Ricerca Compagnia');
	}
=09
function cancellaId(id)
{
		if (document.getElementById(id) !=3D null)
			document.getElementById(id).value =3D "";

}
if(typeof HTMLElement!=3D"undefined" && !
HTMLElement.prototype.insertAdjacentElement){
	HTMLElement.prototype.insertAdjacentElement =3D function
(where,parsedNode)
	{
		switch (where){
		case 'beforeBegin','BeforeBegin':
			this.parentNode.insertBefore(parsedNode,this)
			break;
		case 'afterBegin','AfterBegin':
			this.insertBefore(parsedNode,this.firstChild);
			break;
		case 'beforeEnd','BeforeEnd':
			this.appendChild(parsedNode);
			break;
		case 'afterEnd','AfterEnd':
			if (this.nextSibling)=20
				this.parentNode.insertBefore(parsedNode,this.nextSibling);
			else=20
				this.parentNode.appendChild(parsedNode);
			break;
	=09
		}
	}

	HTMLElement.prototype.insertAdjacentHTML =3D function
(where,htmlStr)
	{
		var r =3D this.ownerDocument.createRange();
		r.setStartBefore(this);
		var parsedHTML =3D r.createContextualFragment(htmlStr);
		this.insertAdjacentElement(where,parsedHTML)
	}


	HTMLElement.prototype.insertAdjacentText =3D function
(where,txtStr)
	{
		var parsedText =3D document.createTextNode(txtStr)
		this.insertAdjacentElement(where,parsedText)
	}
}

// Funzioni AJAX per la gestione di chiamate asincrone alle actione da =
uno script di pagina (javascript)
// assegna l'oggetto XMLHttpRequest compatibile con i browsers pi=F9 =
recenti e diffusi
	function createXMLHttpRequest(){
		var ro =3D null,
		browser =3D navigator.userAgent.toUpperCase();
 // browser standard con supporto nativo
		if(typeof(XMLHttpRequest) =3D=3D "function" || typeof(XMLHttpRequest) =
=3D=3D "object")
  			ro =3D new XMLHttpRequest();
 		else if(window.ActiveXObject && browser.indexOf("MSIE 4") < 0) {
	  		if(browser.indexOf("MSIE 5") < 0)
ro =3D new ActiveXObject("Msxml2.XMLHTTP");
	  		else
	   			ro =3D new ActiveXObject("Microsoft.XMLHTTP");
		}
 		return ro;
	}=20
=09

// la funzione sendReqSelToSel chiama l'action handleXMLHttpRequest =
quindi chiama la funzione sendReqSelToSel
// che popola una tag <select> in funzione di un id selezionato in un =
altra tag <select> l'id pu=F2 anche essere=20
// generato da altri oggetti nella pagina.
// Questa funzione pu=F2 essere chiamata da un evento onChange del =
controllo che deve condizionare la tag <select> =09

// ad esempio, seleziono un id nella prima tag <select> e popolo la =
seconda tag <select> in funzione di questo id

// parametri:
//tpl =3D nome della tipologica che si usa per popolare la seconda tag =
<select> in funzione dell'id selezionato nella prima tag <select>
//StartSelName =3D prima tag <select> che condiziona il popolamento =
della seconda select
//idOption =3D id dell'item selezionato nella prima tag <select>
//selName =3D tag <select> che deve essere popolata
 =09
 	var startSelect;
	var selectToFill;
 =09
	function sendReqSelToSel(startSelName,idOption,tpl,selName) {
		selectToFill =3D selName;
		startSelect =3D startSelName;
		http.open("get", =
"handleXMLHttpRequest.action?funct=3Dseltosel&startSelName=3D" + =
startSelName + "&idOption=3D" + idOption + "&tpl=3D" + tpl);
		http.send(null);
		http.onreadystatechange =3D handleResponseSelToSel;
	}

// la funzione handleResponseSelToSel gestisce la risposta restituita =
dalll'action chiamata da sendReqSelToSel
// e popola la tag <select> specificata dalla variabile globale =
selectToFill
	function handleResponseSelToSel() {
		if(http.readyState  =3D=3D 4) {
        	if(http.status  =3D=3D 200) {
        		var selectTag =3D document.getElementsByName(selectToFill)[0];
        		var startSelectTag =3D =
document.getElementsByName(startSelect)[0];
        		var idOption =3D startSelectTag.value;
        		// la risposta responseText contine le coppie =
valore,descrizione della select da popolare
        		// le coppie sono separate da |; il codice e la descrizione =
sono separati da *
        		// la prima coppia contiene il nome della tipologica: =
$*Tipologica
                var response =3D http.responseText;
                //alert (response);
                // leggo il nome della tipologica che =E8 contenuto =
nella prima coppia di valori
                if (response.indexOf("|", 0) !=3D -1){
                	var tpl =3D response.substring(2,response.indexOf("|", =
0));
                }
               =20
                if (tpl !=3D "")
                	removeElement(selectTag);

                  if(response =3D=3D ""){
                        addElement(selectTag,"","");
                  }else{
                        removeElement(selectTag);
                        coppia =3D response.split("|");
                        max =3D coppia.length;
                        addElement(selectTag,"","");
                        for(x=3D0; x < max - 1 ;x++){
                        	val =3D coppia[x].split('*');
                            if (val[0] !=3D "$"){
                              addElement(selectTag,val[0],val[1]);
                           	}
                        }
                  }
                  setDefaultOption(startSelectTag,idOption)

              } else  {
                 alert("errore " + http.status + " - " + =
http.responseText);
			}
		}
	}


	function sendReqAggiornaListaRami(startSelName,idOption,tpl,selName) {
		selectToFill =3D selName;
		startSelect =3D startSelName;
		http.open("get", =
"handleXMLHttpRequest.action?funct=3DaggiornaListaRami&startSelName=3D" =
+ startSelName + "&idOption=3D" + idOption + "&tpl=3D" + tpl);
		http.send(null);
		http.onreadystatechange =3D handleResponseSelToSel;
	}

	function sendReqAggiornaListaRami() {
		if(http.readyState  =3D=3D 4) {
        	if(http.status  =3D=3D 200) {
				 var response =3D http.responseText;
				=20
				=20
			}
		}
	}

// aggiunge un option alla select
	function addElement(ogg,val,text){
		var newOption;
		newOption =3D document.createElement("option");
		newOption.value =3D val;
		newOption.text =3D text;
		ogg.add(newOption );
	}

// rimuove tutti gli option dalla select
	function removeElement(ogg){
		if(ogg.options.length > 0){
		    while (ogg.options.length) {
		      ogg.remove(0);
			}
		}
	}

// seleziona una option di default quando necessario nella select che =
viene popolata=09
	function setDefaultOption(startSelName,idOption){
		if (startSelName.name =3D=3D "selTipoImpresa")
			if(idOption =3D=3D "4")
				document.getElementsByName(selectToFill)[0].value=3D"1";
			=09
		if (startSelName.name =3D=3D "selFormaGiuridica")
			if(idOption =3D=3D "2")
				document.getElementsByName(selectToFill)[0].value=3D"1";
=09
	}
=09
	function chkEmailAddr(nameField,label)
	{
		if ((document.getElementsByName(nameField)[0] !=3D null) &&
			(trimAll(document.getElementsByName(nameField)[0].value)!=3D "") )
		{
		  var len =3D (document.getElementsByName(nameField)[0].value.length =
-1);
		  var pos =3D =
document.getElementsByName(nameField)[0].value.indexOf("@");
			if (pos =3D=3D -1 || pos =3D=3D 0 || pos =3D=3D len)
			{
				alert("il formato del campo '" + label + "' non =E8 corretto");
				return false;
			}
		=09
		}
		return true;
	}

</SCRIPT>

<SCRIPT language=3DJavaScript type=3Dtext/javascript>
function checkFormFields(nome_form){
	var field_id;
	var field_value;
	var field_class;
	var field_type;
	var field_name;
	var field_label=3D"";
	var msgMand =3D " E' necessario compilare i seguenti campi: \r\r\n";
	var msgDate =3D " Errori nel formato delle date : \r\r\n";
	var msgNum =3D " I seguenti campi devono contenere un numero: \r\r\n";
	var boolMsgMand =3D "false";
	var boolMsgDate =3D "false";
	var boolMsgNum =3D "false";
=09
	nome_form =3D "document." + nome_form;	=09
	for (i=3D0;i< eval(nome_form + ".length");i++){
		field_id=3Deval(nome_form).elements[i].id;
		//field_byid=3Ddocument.getElementById(field_id);
		field_name=3Deval(nome_form).elements[i].name;
		field_value=3Deval(nome_form).elements[i].value;
		field_class=3Deval(nome_form).elements[i].className;		=09
		field_type=3Deval(nome_form).elements[i].type;
		if (field_type =3D=3D "select-one"){
			field_selIndex=3Deval(nome_form).elements[i].selectedIndex;
		}
	=09
		var words=3Dfield_id.split("_");
	=09
		// il campo si ritiene mandatory solo se l'id contiene '_mand' e la =
persona ha
		// i diritti di scrittura su di esso (flag >=3D 2)
		// se il campo fosse mandatory e vuoto
		// e la persona non avesse i diritti per poterlo inserire
		// verrebbe compilato con i valori di default dal layer Biz=20
		if ( (field_id.search("_mand") !=3D -1) && ( words[words.length-1] =
>=3D 2 && document.getElementById(field_id).style.display =3D=3D "")){
	 		if (field_type !=3D "select-one"){
		 		if (trimAll(field_value) =3D=3D ""){
			 		field_label=3DgetFieldLabel(field_name,"mand");
			 		msgMand =3D msgMand + "- " + field_label + "\r\n";
			 		boolMsgMand =3D "true";
			 	}
		 	}
		 	else{
		 	=09
		 		if (field_selIndex =3D=3D "0"){
			 		field_label=3DgetFieldLabel(field_name,"mand");
			 		msgMand =3D msgMand + "- " + field_label + "\r\n";
			 		boolMsgMand =3D "true";
			 	}
		 	}
		}
	=09
		// qui gestisco un'eccezone alla regola del flag=3D2 specificamente il =
campo cognome delle persone fisiche
		// siccome questo campo =E8 sempre redonly devo verificare solo se =
l'id contiene '_mand'
		if ( (field_id.search("_mand") !=3D -1) && ( =
field_id.search("txtCognome") !=3D -1 && field_type =3D=3D "text" && =
document.getElementById(field_id).style.display =3D=3D "")){
	 		if (trimAll(field_value) =3D=3D ""){
		 		field_label=3DgetFieldLabel(field_name,"mand");
		 		msgMand =3D msgMand + "- " + field_label + "\r\n";
		 		boolMsgMand =3D "true";
		 	}
		}
	=09
		// Controllo sul formato delle date. Se l'id del campo inizia con dtp =
(date picker)
		// e la persona ha i diritti di scrittura su di esso (flag >=3D 2)
		// e il valore non =E8 nullo chiama la funzione che fa il controllo =
del formato della data
		if ((field_id.substring(0,3) =3D=3D "dtp") && ( words[words.length-1] =
>=3D 2)){
			if (field_value !=3D "" && field_value !=3D null){
				field_label=3DgetFieldLabel(field_name,"dtp");
				msg =3D verificadataform(field_value,"",field_label)
				if (msg !=3D "" && msg !=3D null){
					msgDate =3D msgDate + "- " + msg + "\r\n";
					boolMsgDate =3D "true";
				}
			}
		}
	=09
		// Controllo sui campi numerici. Se l'id del campo contiene _num
		// e la persona ha i diritti di scrittura su di esso (flag >=3D 2)
		// e il valore non =E8 nullo chiama la funzione che fa il controllo =
del formato numerico
		if ( (field_id.search("_num") !=3D -1) && ( words[words.length-1] >=3D =
2) ){
			if (field_value !=3D "" && field_value !=3D null){
				if (!numerico(field_value)){
					field_label=3DgetFieldLabel(field_name,"num");
			 		msgNum =3D msgNum + "- " + field_label + "\r\n";
			 		boolMsgNum =3D "true";
				}
			}
		}
	}
	if (boolMsgMand =3D=3D "true")
	{
		alert(msgMand);
		return false;
	}
=09
	if (boolMsgDate =3D=3D "true")
	{
		alert(msgDate);
		return false;
	}
=09
	if (boolMsgNum =3D=3D "true")
	{
		alert(msgNum);
		return false;
	}
=09
	return true;
}

function getFieldLabel(field_name,field_type){
	var field_label=3D"";
	if (document.getElementById("lbl" + field_name) !=3D null)
		field_label=3Ddocument.getElementById("lbl" + field_name).innerHTML;
	else
		if (document.getElementById("lbl2" + field_name) !=3D null)
			field_label=3Ddocument.getElementById("lbl2" + field_name).title
		else
			field_label =3D "*";
=09
	return field_label
}

function check_range(data_inizio,data_fine){
  	var dataInizio =3D document.getElementById(data_inizio).value;
  	var dataFine =3D document.getElementById(data_fine).value;
 	alert("dataInizio :"+ dataInizio);
 	alert("dataFine: "+ dataFine);
}

// Questa funzione controlla obbligatoriet=E0 dei campi relativi agli =
estremi rilascio prima autorizzazzione
	function controllaDecretoProvvedimento () {
		if (document.getElementsByName("dtpDataProvvedimentoDecreto") !=3D =
null){
			var boolChangeTipoAutorizzazione =3D false;
			var boolChangeDecreto =3D false;
			var boolChangeGazzetta =3D false;
			var boolChangeBollettino =3D false;
			var boolMand =3D false;
	=09
			var msgMand =3D " E' necessario compilare i seguenti campi: \r\r\n";
			if(document.getElementById("hidRadTipoProvvedimentoDecreto").value =
=3D=3D "" &&=20
			(document.getElementsByName("radTipoProvvedimentoDecreto")[0].checked =
|| =
document.getElementsByName("radTipoProvvedimentoDecreto")[1].checked))
				boolChangeTipoAutorizzazione =3D true;
			=09
			if =
(document.getElementsByName("dtpDataProvvedimentoDecreto")[0].value !=3D =
document.getElementById("hidDtpDataProvvedimentoDecreto").value)
				boolChangeDecreto =3D true;
			if =
(document.getElementsByName("txtNumeroProvvedimentoDecreto")[0].value =
!=3D document.getElementById("hidTxtNumeroProvvedimentoDecreto").value)
				boolChangeDecreto =3D true;
			=09
			if (document.getElementsByName("dtpDataGazzettaUfficiale")[0].value =
!=3D document.getElementById("hidDtpDataGazzettaUfficiale").value)
				boolChangeGazzetta =3D true;			=09
			if (document.getElementsByName("txtNumeroGazzettaUfficiale")[0].value =
!=3D document.getElementById("hidTxtNumeroGazzettaUfficiale").value)
				boolChangeGazzetta =3D true;			=09
			=09
			if (document.getElementsByName("txtNumeroBollettinoIsvap")[0].value =
!=3D document.getElementById("hidTxtNumeroBollettinoIsvap").value)
				boolChangeBollettino =3D true;=09
			if (document.getElementsByName("txtAnnoBollettinoIsvap")[0].value =
!=3D document.getElementById("hidTxtAnnoBollettinoIsvap").value)
				boolChangeBollettino =3D true;
			if (document.getElementsByName("selMeseBollettinoIsvap")[0].value =
!=3D document.getElementById("hidSelMeseBollettinoIsvap").value)
				boolChangeBollettino =3D true;
		=09
			if (boolChangeDecreto || boolChangeTipoAutorizzazione){
				// preaparazione messaggi di obbligatoriet=E0 per i campi relativi =
provvedimento/decreto
				// nel caso che ne venga modificato anche uno solo
				if =
(!document.getElementsByName("radTipoProvvedimentoDecreto")[0].checked =
&&=20
					=
!document.getElementsByName("radTipoProvvedimentoDecreto")[1].checked){
					field_label=3DgetFieldLabel("radTipoProvvedimentoDecreto","mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}=09
				if =
(trimAll(document.getElementsByName("txtNumeroProvvedimentoDecreto")[0].v=
alue) =3D=3D ""){
					=
field_label=3DgetFieldLabel("txtNumeroProvvedimentoDecreto","mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}
				if =
(trimAll(document.getElementsByName("dtpDataProvvedimentoDecreto")[0].val=
ue) =3D=3D ""){
					field_label=3DgetFieldLabel("dtpDataProvvedimentoDecreto","mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}
			}

			if (boolChangeGazzetta){=09
				// preaparazione messaggi di obbligatoriet=E0 per i campi relativi =
gazzetta ufficiale
				// nel caso che non vengano compilati tutti		=09
				if =
(trimAll(document.getElementsByName("txtNumeroGazzettaUfficiale")[0].valu=
e) !=3D "" |
					=
trimAll(document.getElementsByName("dtpDataGazzettaUfficiale")[0].value) =
!=3D ""){
					if =
(trimAll(document.getElementsByName("txtNumeroGazzettaUfficiale")[0].valu=
e) =3D=3D ""){
						field_label=3DgetFieldLabel("txtNumeroGazzettaUfficiale","mand");
						msgMand =3D msgMand + "- " + field_label + "\r\n";
						boolMand =3D true;
					}
					if =
(trimAll(document.getElementsByName("dtpDataGazzettaUfficiale")[0].value)=
 =3D=3D ""){
						field_label=3DgetFieldLabel("dtpDataGazzettaUfficiale","mand");
						msgMand =3D msgMand + "- " + field_label + "\r\n";
						boolMand =3D true;
					}=09
				}
			}
		=09
			if (boolChangeBollettino){=09
				// preaparazione messaggi di obbligatoriet=E0 per i campi relativi =
bollettino ISVAP
				// nel caso che non vengano compilati tutti
				if =
(trimAll(document.getElementsByName("txtNumeroBollettinoIsvap")[0].value)=
 !=3D "" |
					=
trimAll(document.getElementsByName("txtAnnoBollettinoIsvap")[0].value) =
!=3D "" |
					=
document.getElementsByName("selMeseBollettinoIsvap")[0].selectedIndex =
!=3D "0"){
					if =
(trimAll(document.getElementsByName("txtNumeroBollettinoIsvap")[0].value)=
 =3D=3D ""){
						field_label=3DgetFieldLabel("txtNumeroBollettinoIsvap","mand");
						msgMand =3D msgMand + "- " + field_label + "\r\n";
						boolMand =3D true;
					}
					if =
(trimAll(document.getElementsByName("txtAnnoBollettinoIsvap")[0].value) =
=3D=3D ""){
						field_label=3DgetFieldLabel("txtAnnoBollettinoIsvap","mand");
						msgMand =3D msgMand + "- " + field_label + "\r\n";
						boolMand =3D true;
					}
					if =
(document.getElementsByName("selMeseBollettinoIsvap")[0].selectedIndex =
=3D=3D "0"){
						field_label=3DgetFieldLabel("txtMeseBollettinoIsvap","mand");
						msgMand =3D msgMand + "- " + field_label + "\r\n";
						boolMand =3D true;
					}		=09
				}
			}
			=09
			if (boolMand){
				alert(msgMand);
				return false;
			}
		=09
			return true;
		}=09
	}

// questa funzione controlla l'obbligatoriet=E0 dei campi relativi al =
Decreto/Provvediento ISVAP
function checkProvvedimentoIsvap (tagNameExt) {
	//debugger;
	var boolChange =3D false;
	var boolMand =3D false;
	var msgMand =3D " E' necessario compilare i seguenti campi: \r\r\n";
=09
	// preaparazione messaggi di obbligatoriet=E0 per i campi relativi =
Provvediento ISVAP
	// nel caso che non vengano compilati tutti

	if (document.getElementsByName("txtNumPubblDecretoBollIsvap" + =
tagNameExt)[0] !=3D null){
		if (document.getElementsByName("txtNumPubblDecretoBollIsvap" + =
tagNameExt)[0].value !=3D =
document.getElementById("hidTxtNumPubblDecretoBollIsvap" + =
tagNameExt).value)
			boolChange =3D true;
		if (document.getElementsByName("txtAnnoPubblDecretoBollIsvap" + =
tagNameExt)[0].value !=3D =
document.getElementById("hidTxtAnnoPubblDecretoBollIsvap" + =
tagNameExt).value)
			boolChange =3D true;	=09
		if (document.getElementsByName("selMesePubblDecretoBollIsvap" + =
tagNameExt)[0].value !=3D =
document.getElementById("hidSelMesePubblDecretoBollIsvap" + =
tagNameExt).value)
			boolChange =3D true;
	}	=09
=09
	if (document.getElementsByName("txtNumPubblBollIsvap" + tagNameExt)[0] =
!=3D null){=09
		if (document.getElementsByName("txtNumPubblBollIsvap" + =
tagNameExt)[0].value !=3D =
document.getElementById("hidTxtNumPubblBollIsvap" + tagNameExt).value)
			boolChange =3D true;
		if (document.getElementsByName("txtAnnoPubblBollIsvap" + =
tagNameExt)[0].value !=3D =
document.getElementById("hidTxtAnnoPubblBollIsvap" + tagNameExt).value)
			boolChange =3D true;
		if (document.getElementsByName("selMesePubblBollIsvap" + =
tagNameExt)[0].value !=3D =
document.getElementById("hidSelMesePubblBollIsvap" + tagNameExt).value)
			boolChange =3D true;
	}
=09
	if (boolChange){
		if (document.getElementsByName("txtNumPubblDecretoBollIsvap" + =
tagNameExt)[0] !=3D null){=09
			if (trimAll(document.getElementsByName("txtNumPubblDecretoBollIsvap" =
+ tagNameExt)[0].value) !=3D "" |
				trimAll(document.getElementsByName("txtAnnoPubblDecretoBollIsvap" + =
tagNameExt)[0].value) !=3D "" |
				document.getElementsByName("selMesePubblDecretoBollIsvap" + =
tagNameExt)[0].selectedIndex !=3D "0"){
				if (trimAll(document.getElementsByName("txtNumPubblDecretoBollIsvap" =
+ tagNameExt)[0].value) =3D=3D ""){
					field_label=3DgetFieldLabel("txtNumPubblDecretoBollIsvap" + =
tagNameExt,"mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}
				if =
(trimAll(document.getElementsByName("txtAnnoPubblDecretoBollIsvap" + =
tagNameExt)[0].value) =3D=3D ""){
					field_label=3DgetFieldLabel("txtAnnoPubblDecretoBollIsvap" + =
tagNameExt,"mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}
				if (document.getElementsByName("selMesePubblDecretoBollIsvap" + =
tagNameExt)[0].selectedIndex =3D=3D "0"){
					field_label=3DgetFieldLabel("txtMesePubblDecretoBollIsvap" + =
tagNameExt,"mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}		=09
			}
		}
	=09
		if (document.getElementsByName("txtNumPubblBollIsvap" + tagNameExt)[0] =
!=3D null){=09
			if (trimAll(document.getElementsByName("txtNumPubblBollIsvap" + =
tagNameExt)[0].value) !=3D "" |
				trimAll(document.getElementsByName("txtAnnoPubblBollIsvap" + =
tagNameExt)[0].value) !=3D "" |
				document.getElementsByName("selMesePubblBollIsvap" + =
tagNameExt)[0].selectedIndex !=3D "0"){
				if (trimAll(document.getElementsByName("txtNumPubblBollIsvap" + =
tagNameExt)[0].value) =3D=3D ""){
					field_label=3DgetFieldLabel("txtNumPubblBollIsvap" + =
tagNameExt,"mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}
				if (trimAll(document.getElementsByName("txtAnnoPubblBollIsvap" + =
tagNameExt)[0].value) =3D=3D ""){
					field_label=3DgetFieldLabel("txtAnnoPubblBollIsvap" + =
tagNameExt,"mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}
				if (document.getElementsByName("selMesePubblBollIsvap" + =
tagNameExt)[0].selectedIndex =3D=3D "0"){
					field_label=3DgetFieldLabel("txtMesePubblBollIsvap" + =
tagNameExt,"mand");
					msgMand =3D msgMand + "- " + field_label + "\r\n";
					boolMand =3D true;
				}		=09
			}
		}
	}

	=09
	if (boolMand){
		alert(msgMand);
		return false;
	}
	return true;=09
}



// Questa funzione controlla obbligatoriet=E0 dei campi relativi Fondi =
di Garanzia Vittime della caccia e della strada=20
	function controllaFondiGaranzia () {
	var boolChangeVC =3D "false";
	var boolChangeVS =3D "false";
	var boolMand =3D "false";
	var msgMand =3D " E' necessario compilare i seguenti campi: \r\r\n";

	if (document.getElementsByName("dtpDataDesignazioneFondoVC")[0] !=3D =
null){
		// Fondo di garanzia vittime della caccia
		if (document.getElementsByName("dtpDataDesignazioneFondoVC")[0].value =
!=3D document.getElementById("hidDtpDataDesignazioneFondoVC").value)
			boolChangeVC =3D "true";
		if (document.getElementsByName("dtpDataProvvedimentoFondoVC")[0].value =
!=3D document.getElementById("hidDtpDataProvvedimentoFondoVC").value)
			boolChangeVC =3D "true";
		if =
(document.getElementsByName("txtNumeroProvvedimentoFondoVC")[0].value =
!=3D document.getElementById("hidTxtNumeroProvvedimentoFondoVC").value)
			boolChangeVC =3D "true";
		if (document.getElementsByName("selRegioniFondoVC")[0].value !=3D =
document.getElementById("hidSelRegioniFondoVC").value)
			boolChangeVC =3D "true";
		if (document.getElementsByName("dtpDataCessazioneFondoVC")[0].value =
!=3D document.getElementById("hidDtpDataCessazioneFondoVC").value)
			boolChangeVC =3D "true";
	=09
		if (boolChangeVC =3D=3D "true"){
		// preaparazione messaggi di obbligatoriet=E0 per i campi relativi =
fondi di garanzia
			if =
(trimAll(document.getElementsByName("dtpDataDesignazioneFondoVC")[0].valu=
e) =3D=3D ""){
				field_label=3DgetFieldLabel("dtpDataDesignazioneFondoVC","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}
			if =
(trimAll(document.getElementsByName("dtpDataProvvedimentoFondoVC")[0].val=
ue) =3D=3D ""){
				field_label=3DgetFieldLabel("dtpDataProvvedimentoFondoVC","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}
			if =
(trimAll(document.getElementsByName("txtNumeroProvvedimentoFondoVC")[0].v=
alue) =3D=3D ""){
				field_label=3DgetFieldLabel("txtNumeroProvvedimentoFondoVC","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}		=09
			if (trimAll(document.getElementsByName("selRegioniFondoVC")[0].value) =
=3D=3D ""){
				field_label=3DgetFieldLabel("selRegioniFondoVC","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}	=09
			if =
(trimAll(document.getElementsByName("dtpDataCessazioneFondoVC")[0].value)=
 =3D=3D ""){
				field_label=3DgetFieldLabel("dtpDataCessazioneFondoVC","mand");
				//msgMand =3D msgMand + "- " + field_label + "\r\n";
				//boolMand =3D "true";	=09
			}	=09
		}
	}
=09
	// Fondo di garanzia vittime della stada
	if (document.getElementsByName("dtpDataDesignazioneFondoVS")[0] !=3D =
null){
		if (document.getElementsByName("dtpDataDesignazioneFondoVS")[0].value =
!=3D document.getElementById("hidDtpDataDesignazioneFondoVS").value)
			boolChangeVS =3D "true";
		if (document.getElementsByName("dtpDataProvvedimentoFondoVS")[0].value =
!=3D document.getElementById("hidDtpDataProvvedimentoFondoVS").value)
			boolChangeVS =3D "true";
		if =
(document.getElementsByName("txtNumeroProvvedimentoFondoVS")[0].value =
!=3D document.getElementById("hidTxtNumeroProvvedimentoFondoVS").value)
			boolChangeVS =3D "true";
		if (document.getElementsByName("selRegioniFondoVS")[0].value !=3D =
document.getElementById("hidSelRegioniFondoVS").value)
			boolChangeVS =3D "true";
		if (document.getElementsByName("dtpDataCessazioneFondoVS")[0].value =
!=3D document.getElementById("hidDtpDataCessazioneFondoVS").value)
			boolChangeVS =3D "true";
	=09
		if (boolChangeVS =3D=3D "true"){
		// preaparazione messaggi di obbligatoriet=E0 per i campi relativi =
fondi di garanzia
			if =
(trimAll(document.getElementsByName("dtpDataDesignazioneFondoVS")[0].valu=
e) =3D=3D ""){
				field_label=3DgetFieldLabel("dtpDataDesignazioneFondoVS","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}
			if =
(trimAll(document.getElementsByName("dtpDataProvvedimentoFondoVS")[0].val=
ue) =3D=3D ""){
				field_label=3DgetFieldLabel("dtpDataProvvedimentoFondoVS","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}
			if =
(trimAll(document.getElementsByName("txtNumeroProvvedimentoFondoVS")[0].v=
alue) =3D=3D ""){
				field_label=3DgetFieldLabel("txtNumeroProvvedimentoFondoVS","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}		=09
			if (trimAll(document.getElementsByName("selRegioniFondoVS")[0].value) =
=3D=3D ""){
				field_label=3DgetFieldLabel("selRegioniFondoVS","mand");
				msgMand =3D msgMand + "- " + field_label + "\r\n";
				boolMand =3D "true";	=09
			}	=09
			if =
(trimAll(document.getElementsByName("dtpDataCessazioneFondoVS")[0].value)=
 =3D=3D ""){
				field_label=3DgetFieldLabel("dtpDataCessazioneFondoVS","mand");
				//msgMand =3D msgMand + "- " + field_label + "\r\n";
				//boolMand =3D "true";	=09
			}	=09
		}
	}
	=09
	if (boolMand =3D=3D "true"){
		alert(msgMand);
		return false;
	}
=09
	return true;
	}

function numerico(stringain)
// la funzione si basa sull'utilizzo del metodo parseInt

// esempio : ParseInt(11) =3D 11
// esempio : ParseInt(11ss) =3D 11
// esempio : ParseInt(aaa) =3D NaN

// Se il dato in input =E8 un numero avremo lo stesso output da parseInt
// mentre in caso di contenuto alfanumerico avremo NaN oppure la parte
// numerica della stringa. L'esito della funzione sar=E0 true se
// input =3D output
 {

   var stringaout;
   var carattere;
  =20
   for (j=3D0;j<stringain.length;j++)
{
      carattere=3Dstringain.charAt(j);
  =20
      if (parseInt(carattere)!=3Dcarattere)
        return false;
    }
    return true;=20
 }
=20
function numbersonly(myfield, e, dec){
// verifica che nell'iserimento libero delle date nei campi data, cio=E8 =
senza l'ausilio
// del controllo datepicker vengano inseriti solo numeri o il carattere =
separatore /
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20
	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789/").indexOf(keychar) > -1))
	   return true;
=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}

function numbersonly1(myfield, e, dec){
// verifica che nell'iserimento libero delle date nei campi data, cio=E8 =
senza l'ausilio
// del controllo datepicker vengano inseriti solo numeri o il carattere =
separatore /
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20
	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789").indexOf(keychar) > -1))
	   return true;
=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}

function numbersonly2(myfield, e, dec){
// verifica che nell'iserimento libero delle date nei campi data, cio=E8 =
senza l'ausilio
// del controllo datepicker vengano inseriti solo numeri o il carattere =
separatore /
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20
	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789,").indexOf(keychar) > -1))
	   return true;
=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}
function numbersonlyDot(myfield, e, dec){
// verifica che nell'iserimento libero delle date nei campi data, cio=E8 =
senza l'ausilio
// del controllo datepicker vengano inseriti solo numeri o il carattere =
separatore /
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20
	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789.").indexOf(keychar) > -1))
	   return true;
=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}

function numbersonlyTel(myfield, e, dec){
// verifica che nell'iserimento libero dei numeri di telefono/fax =
vengano inseriti solo numeri,
// il carattere separatore /, il carattere speciale +
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20
	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789/+-.").indexOf(keychar) > -1))
	   return true;
=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}

function veryComma2(myfield, e, dec){
// verifica che nell'iserimento libero delle date nei campi data, cio=E8 =
senza l'ausilio
// del controllo datepicker vengano inseriti solo numeri o il carattere =
separatore /
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20
=09
	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// % not > 6 char
=09
	if(myfield.length > 5)
	return false;
=09
=09
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789").indexOf(keychar) > -1))
	   return true;
=09
	// comma only one=20
	if ((myfield).search(",")!=3D -1)
		return false;
	else if (((",").indexOf(keychar) > -1))
	   return true;
	//len
	=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}
function veryCommaDot2(myfield, e, dec){
// verifica che nell'iserimento libero delle date nei campi data, cio=E8 =
senza l'ausilio
// del controllo datepicker vengano inseriti solo numeri o il carattere =
separatore /
// la funzione viene chiamata nel campo data con l'evento: =
onkeypress=3D"return numbersonly(this, event);"=20

	var key;
	var keychar;
=09
	if (window.event)
	   key =3D window.event.keyCode;
	else if (e)
	   key =3D e.which;
	else
	   return true;
	  =20
	keychar =3D String.fromCharCode(key);
	// control keys
	if ((key=3D=3Dnull) || (key=3D=3D0) || (key=3D=3D8) ||=20
	    (key=3D=3D9) || (key=3D=3D13) || (key=3D=3D27) )
	   return true;
=09
	// numbers
	else if ((("0123456789.,").indexOf(keychar) > -1))
	   return true;
=09
	// decimal point jump
	else if (dec && (keychar =3D=3D ".")){
	   myfield.form.elements[dec].focus();
	   return false;
	}
	else
	   return false;
}
function verificadata(datainput,id_datainput,nome_campo)
// controlla la correttezza di una data in input nella form di ricerca
// il formato atteso =E8 gg/mm/aaaa
 {
   var dataverifica;
   var dataoutput;

   var gginput;  =20
   var mminput;=20
   var aaaainput;

   var ggoutput;  =20
   var mmoutput;=20
   var aaaaoutput;

=20
// la prima cosa che si controlla =E8 che sia di 10 caratteri
  if (datainput.length!=3D10)
    {
     alert ('La data inserita nel campo ' + nome_campo + ' non rispetta =
il formato gg/mm/aaaa');
     return false;
    }=20
=20
// vengono ricavati il l'anno, il mese ed il giorno dalla data in input
   gginput=3Ddatainput.substr(0,2); =20
   mminput=3Ddatainput.substr(3,2);
   aaaainput=3Ddatainput.substr(6,4);
 =20
// tramite la funzione numerico viene verificato che il giorno, il mese
// e l'anno immessi siano effettivamente in formato numerico

   if(!(numerico(gginput)))
    {
     alert (nome_campo + ':Il giorno inserito non =E8 in formato =
numerico');
     return false;
    }
   =20
   if(!(numerico(mminput)))
    {
     alert (nome_campo + ':Il mese inserito non =E8 in formato =
numerico');
     return false;
    }=20
   =20
   if(!(numerico(aaaainput)))
    {
     alert (nome_campo + ":L'anno inserito non =E8 in formato =
numerico");
     return false;
    }         =20
=20
// viene utilizzato un oggetto data per la verifica costruendola in base
// ai parametri ricavati in input (il mese =E8 sottratto di 1 perch=E8 =
la funzione data
// considera i mesi partendo da zero)
   dataverifica =3D new Date(aaaainput,mminput-1,gginput)

  =20
// dalla data creata viene ricavato l'anno, il mese ed il giorno (il =
mese =E8 incrementato
// di 1 per restituire il mese nel formato standard)
   aaaaoutput=3Ddataverifica.getFullYear().toString();=20
   mmoutput=3D(dataverifica.getMonth()+1).toString();=20
   ggoutput=3Ddataverifica.getDate().toString();

// poich=E8 le funzioni getMonth e getDate restituiscono valori numerici
// occorre aggiungere lo zero per i mesi e gli anni unitari (es =
"1-1-2005")
// il controllo =E8 effettuato sulla lunghezza della stringa (se < 2 =
aggiungi lo zero)

   if (mmoutput.length<2)
mmoutput=3D"0"+mmoutput;
   =20
   if (ggoutput.length<2)
ggoutput=3D"0"+ggoutput;

// La data in output =E8 costituita dai dati ricavati precedentemente =
separati
// dal carattere "-"=20

   dataoutput=3Dggoutput+"/"+mmoutput+"/"+aaaaoutput;

// viene confrontata la data in input con quella in output
// se non coincidono vuol dire che la data non =E8 corretta

   if (datainput!=3Ddataoutput)
   {
     alert(nome_campo + ':La data inserita'  + ' non =E8 corretta');
     return false;
   }

   // controllo che la data non sia posteriore ad oggi
   // se =E8 stato passato il flag =3D 1 come ultimo parametro
   // se =E8 stato passato il flag =3D 2 come ultimo parametro controlla =
che
   // la data non sia successiva al 31/12/2007 (per la Gazzetta =
ufficiale)
 	//debugger;
    var flag_data_check =3D(typeof verificadata.arguments[3] =3D=3D =
'undefined')?0:verificadata.arguments[3];
	   	if (flag_data_check =3D=3D 1)
	   	{
	   	var data_odierna =3D new Date();
	  	var gg, mm, aaaa;
=09
	  	gg =3D data_odierna.getDate() + "/";
	  	if (gg.length<3)
gg=3D"0" + gg;
	 	mm =3D data_odierna.getMonth() + 1 + "/";
	 	if (mm.length<3)
mm=3D"0" + mm;
	   	aaaa =3D data_odierna.getFullYear();
	  	var oggi =3D  gg + mm + aaaa;
	  	if (!checkRange(datainput,oggi,nome_campo,"odierna",1))
	 		return false;
=09
	  	}
	  	else
	  	if(flag_data_check =3D=3D 2)
	  	{
	  	var data_limite =3D "31/12/2007";
	  	if (!checkRange(datainput,data_limite,nome_campo,"31/12/2007",2))
	 		return false;
=09
	  	}
=09
  return true;
}

function verificadataform (datainput,id_datainput,nome_campo){
// controlla la correttezza di una data in input nelle form dati
// il formato atteso =E8 gg/mm/aaaa
   var msg=3D"";
   var dataverifica;
   var dataoutput;

   var gginput;  =20
   var mminput;=20
   var aaaainput;

   var ggoutput;  =20
   var mmoutput;=20
   var aaaaoutput;

//debugger;
// la prima cosa che si controlla =E8 che sia di 10 caratteri
  if (datainput.length!=3D10){
     msg =3D 'La data inserita nel campo ' + nome_campo + ' non rispetta =
il formato gg/mm/aaaa';
     return msg;
  }
// vengono ricavati il l'anno, il mese ed il giorno dalla data in input
   gginput=3Ddatainput.substr(0,2); =20
   mminput=3Ddatainput.substr(3,2);
   aaaainput=3Ddatainput.substr(6,4);
// tramite la funzione numerico viene verificato che il giorno, il mese
// e l'anno immessi siano effettivamente in formato numerico
   if(!(numerico(gginput))){
   	=09
    	msg =3D nome_campo + ': Il giorno inserito non =E8 in formato =
numerico';
		return msg;
    }
   if(!(numerico(mminput))){
      msg =3D nome_campo + ': Il mese inserito non =E8 in formato =
numerico';
     return msg;
    }=20
   if(!(numerico(aaaainput))){
      msg =3D nome_campo + ": L'anno inserito non =E8 in formato =
numerico";
     return msg;
    }         =20

// viene utilizzato un oggetto data per la verifica costruendola in base
// ai parametri ricavati in input (il mese =E8 sottratto di 1 perch=E8 =
la funzione data
// considera i mesi partendo da zero)
   dataverifica =3D new Date(aaaainput,mminput-1,gginput)

  =20
// dalla data creata viene ricavato l'anno, il mese ed il giorno (il =
mese =E8 incrementato
// di 1 per restituire il mese nel formato standard)
   aaaaoutput=3Ddataverifica.getFullYear().toString();=20
   mmoutput=3D(dataverifica.getMonth()+1).toString();=20
   ggoutput=3Ddataverifica.getDate().toString();

// poich=E8 le funzioni getMonth e getDate restituiscono valori numerici
// occorre aggiungere lo zero per i mesi e gli anni unitari (es =
"1-1-2005")
// il controllo =E8 effettuato sulla lunghezza della stringa (se < 2 =
aggiungi lo zero)

   if (mmoutput.length<2)
mmoutput=3D"0"+mmoutput;
   =20
   if (ggoutput.length<2)
ggoutput=3D"0"+ggoutput;

// La data in output =E8 costituita dai dati ricavati precedentemente =
separati
// dal carattere "-"=20

   dataoutput=3Dggoutput+"/"+mmoutput+"/"+aaaaoutput;

// viene confrontata la data in input con quella in output
// se non coincidono vuol dire che la data non =E8 corretta

   if (datainput!=3Ddataoutput){
     msg =3D 'La data inserita nel campo ' + nome_campo + ' non rispetta =
il formato gg/mm/aaaa';
     return msg;
   }
	return msg;
}


function DateDiff (strDate1,strDate2)
	{
	//var datDate1=3D Date.parse(strDate1);=20
	//var datDate2=3D Date.parse(strDate2);=20
	//debugger;
=09
	var date_str1 =3D strDate1.split("/");
	var date_str2 =3D strDate2.split("/");
	var year1 =3D date_str1[2];
	// wz : corretto per bug del javascript :
	// parseInt("08") e parseInt di "09" d=E0 0 perch=E8 lo zero davanti=20
	// fa considerare il numero in ottale (8 e 9 in ottale ovviamente non =
esistono)
	// si usa parseFloat perch=E8 il bug non esiste sulla parseFloat
	// in alternativa funziona anche parseInt("",10) dove 10 dice che =E8 =
in base decimale.
	var month1 =3D (parseInt(parseFloat(date_str1[1])) -1);
	var day1 =3D date_str1[0];
	var year2 =3D date_str2[2];
	var month2 =3D (parseInt(parseFloat(date_str2[1])) -1);
	var day2 =3D date_str2[0];
	var tmpDate1 =3D new Date (year1,month1.toString(),day1);
	var tmpDate2 =3D new Date (year2,month2.toString(),day2);
=09
	var datDate1=3D  Date.parse(tmpDate1);=20
	var datDate2=3D Date.parse(tmpDate2);=20
	=09
	var datediff =3D ((datDate1-datDate2)/(24*60*60*1000))=20
	return datediff;
	}
// controlla la corretta consequenzialit=E0 di due date
function checkRange (strDate1,strDate2,strName1,strName2)
	{
	//debugger;
  	 var flag_data_odierna =3D(typeof checkRange.arguments[4] =3D=3D =
'undefined')?0:checkRange.arguments[4];
   	if (flag_data_odierna =3D=3D 1)
   	{
   		if (DateDiff(strDate2,strDate1) < 0)
{	=20
			alert ('La data ' + strName1 + ' =E8 successiva alla data odierna');
			return false;
			}
		else
			return true;
   	}
   	else
   	if(flag_data_odierna =3D=3D 2)
   	{
   	if (DateDiff(strDate2,strDate1) < 0)
{	=20
			alert ('La data ' + strName1 + ' =E8 successiva alla data ' + =
strName2);
			return false;
			}
		else
			return true;
   	}
   	else
   	{
		if (DateDiff(strDate1,strDate2) < 0)
{	=20
			alert ('La data ' + strName1 + ' =E8 antecedente alla data ' + =
strName2);
			return false;
			}
		else
			return true;
		}
	}
function xreplace(checkMe,toberep,repwith){
var temp =3D checkMe;
var i =3D temp.indexOf(toberep);
while(i > -1)
	{
	temp =3D temp.replace(toberep, repwith);
	i =3D temp.indexOf(toberep, i + repwith.length + 1);
	}
return temp;
}=09
=09
</SCRIPT>

<META content=3D"MSHTML 6.00.6000.16788" name=3DGENERATOR></HEAD>
<BODY vLink=3D#999999 link=3D#990000=20
onload=3D"setReadOnly(); preserveSearchCiteria(); =
displayComboCensimentoCompMain()">
<TABLE style=3D"BACKGROUND-COLOR: #a20020" cellSpacing=3D0 =
cellPadding=3D0=20
width=3D"100%" align=3Dcenter border=3D0>
  <TBODY>
  <TR>
    <TD vAlign=3Dtop align=3Dleft width=3D"15%"><A=20
      style=3D"BORDER-LEFT-COLOR: #a20020; BORDER-BOTTOM-COLOR: #a20020; =
BORDER-TOP-STYLE: none; BORDER-TOP-COLOR: #a20020; BORDER-RIGHT-STYLE: =
none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-COLOR: #a20020; =
BORDER-BOTTOM-STYLE: none"=20
      href=3D"https://nsiv.isvap.it/Albi/Albi/home.jsp" =
border=3D"0"><IMG=20
      style=3D"BORDER-LEFT-COLOR: #a20020; BORDER-BOTTOM-COLOR: #a20020; =
BORDER-TOP-STYLE: none; BORDER-TOP-COLOR: #a20020; BORDER-RIGHT-STYLE: =
none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-COLOR: #a20020; =
BORDER-BOTTOM-STYLE: none"=20
      alt=3D"home page" =
src=3D"https://nsiv.isvap.it/Albi/Albi/img/Testata3.gif">=20
      </A></TD>
    <TD vAlign=3Dtop width=3D"60%">
      <TABLE style=3D"COLOR: #ffffff" cellSpacing=3D0 cellPadding=3D0 =
width=3D"100%"=20
      border=3D0>
        <TBODY>
        <TR vAlign=3Dtop>
          <TD align=3Dmiddle width=3D"85%"><LABEL =
class=3DtitoliTesta1>Istituto per=20
            la Vigilanza sulle Assicurazioni Private e di Interesse=20
            Collettivo</LABEL></TD></TR>
        <TR>
          <TD>&nbsp;</TD></TR>
        <TR rowspan=3D"2">
          <TD align=3Dmiddle><LABEL class=3DtitoliTesta1>NSIV -=20
            <STRONG>N</STRONG>uovo <STRONG>S</STRONG>istema=20
            <STRONG>I</STRONG>nformativo della=20
            <STRONG>V</STRONG>igilanza</LABEL> =
</TD></TR></TBODY></TABLE></TD>
    <TD vAlign=3Dtop width=3D"35%">
      <TABLE style=3D"COLOR: #ffffff" height=3D"100%" cellSpacing=3D0 =
cellPadding=3D0=20
      width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD align=3Dright width=3D"25%"><LABEL class=3DtitoliTesta1=20
            id=3DlblCompagnia></LABEL></TD></TR>
        <TR>
          <TD align=3Dright width=3D"75%"><LABEL class=3DtitoliTesta1=20
            id=3DlblUtente></LABEL></TD></TR>
        <TR>
          <TD align=3Dright colSpan=3D2><LABEL class=3DtitoliTesta1=20
            =
id=3DlblCurrDateTime></LABEL></TD></TR></TBODY></TABLE></TD></TR></TBODY>=
</TABLE>
<TABLE width=3D"100%">
  <TBODY>
  <TR height=3D3>
    <TD></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
  <TBODY>
  <TR>
    <TD bgColor=3D#a20020 colSpan=3D4 height=3D2></TD></TR>
  <TR>
    <TD width=3D"15%"><A class=3DtopMenu=20
      =
href=3D"https://nsiv.isvap.it/Albi/Albi/ricerca/RicercaCentraleAlbi.jsp?v=
iewSet=3DImprese"=20
      target=3D_top>Ricerca Albo Imprese</A> </TD>
    <TD width=3D"18%"><A class=3DtopMenu=20
      =
href=3D"https://nsiv.isvap.it/Albi/Albi/ricerca/RicercaGruppi.jsp?viewSet=
=3DGruppi">Ricerca=20
      Albo Gruppi</A> </TD>
    <TD width=3D"80%"></TD></TR>
  <TR height=3D3>
    <TD></TD></TR>
  <TR>
    <TD width=3D"100%" bgColor=3D#a20020 colSpan=3D4 =
height=3D2></TD></TR>
  <TR>
    <TD height=3D5></TD></TR></TBODY></TABLE>
<DIV id=3Dmenu style=3D"WIDTH: 1000px">
<UL id=3Dnav>
  <LI><B class=3Dp1></B><B class=3Dp2></B><B class=3Dp3></B><B =
class=3Dp4></B><A=20
  class=3Dprincipale=20
  =
href=3D"https://nsiv.isvap.it/Albi/Albi/anagrafica/anagraficaBaseLpsEntra=
ta.action?denominazione=3DEUROPEAN INSURANCE GROUP =
LIMITED&amp;codiceisvap=3D40165&amp;codiceMenu=3D16&amp;dataRiferimento=3D=
02/01/2009#">Anagrafica</A>
  <UL>
    <LI><A=20
    =
href=3D"https://nsiv.isvap.it/Albi/Albi/anagrafica/dettaglio/anagraficaBa=
seLpsEntrata.action?codiceisvap=3D40165&amp;idStato=3D&amp;codiceMenu=3D1=
6">Informazioni=20
    Anagrafiche</A></LI></UL></LI>
  <LI><B class=3Dp1></B><B class=3Dp2></B><B class=3Dp3></B><B =
class=3Dp4></B><A=20
  class=3Dprincipale=20
  =
href=3D"http://www.appaltieappalti.it/isvap/elencoRami_action.mht">Rami=20
  Autorizzati</A>
  <UL>
    <LI><A=20
    =
href=3D"http://www.appaltieappalti.it/isvap/elencoRami_action.mht">Elenco=20
    Rami</A></LI></UL></LI></UL></DIV>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" align=3Dcenter =
border=3D0>
  <TBODY>
  <TR>
    <TD height=3D8></TD></TR>
  <TR class=3Dlabeltestata>
    <TD class=3Dbreadcrumb width=3D"30%">Albo Imprese </TD>
    <TD align=3Dleft width=3D"46%"><LABEL class=3Dlabeltestata>EUROPEAN =
INSURANCE=20
      GROUP LIMITED</LABEL> </TD>
    <TD align=3Dright width=3D"24%"><LABEL class=3Dlgnd>Dati Aggiornati =
al</LABEL>=20
      23/04/2010 </TD></TR></TBODY></TABLE>
<SCRIPT language=3Djavascript>
// copia nei campi opportuni i dati letti dal db=20
	function =
callback_comune(comune,comuneCodice,provincia,provinciaCodice,cap,statoCo=
dice,campo){
		var comuneDesc;
		var statoDesc;
		var selIndex;
		if (campo=3D=3D"txtComuneSL"){
			document.getElementsByName("selStatoSL")[0].value=3D statoCodice;
			selIndex =3D =
document.getElementsByName("selStatoSL")[0].selectedIndex;
			if (selIndex !=3D -1){
				document.getElementById("hidCodiceProvinciaSL").value =3D =
provinciaCodice;
				document.getElementsByName("txtProvinciaSL")[0].value =3D provincia;
				//document.getElementsByName("txtCAPSL")[0].value =3D cap;
				document.getElementsByName("txtComuneSL")[0].value =3D comune;
				document.getElementById("hidCodiceComuneSL").value =3D comuneCodice;
				statoDesc =3D =
document.getElementsByName("selStatoSL")[0].options[selIndex].innerHTML;
			}
			else{
				document.getElementById("hidCodiceProvinciaSL").value =3D "";
				document.getElementsByName("txtProvinciaSL")[0].value =3D "";
				//document.getElementsByName("txtCAPSL")[0].value =3D "";
				document.getElementsByName("txtComuneSL")[0].value =3D "";
				document.getElementById("hidCodiceComuneSL").value =3D "";			=09
				statoDesc =3D "";
			}
			document.getElementsByName("txtStatoSL")[0].value=3D statoDesc;
			abilitaCampiLuogoAccessori(false);
		}
		=09
		if (campo=3D=3D"txtComuneSLR"){
			document.getElementsByName("selStatoSLR")[0].value=3D statoCodice;
			selIndex =3D =
document.getElementsByName("selStatoSLR")[0].selectedIndex;
			if (selIndex !=3D -1){
				document.getElementById("hidCodiceComuneSLR").value =3D =
comuneCodice;
				document.getElementsByName("txtComuneSLR")[0].value =3D comune;
				document.getElementById("hidCodiceProvinciaSLR").value =3D =
provinciaCodice;
				document.getElementsByName("txtProvinciaSLR")[0].value =3D =
provincia;
				//document.getElementsByName("txtCAPSLR")[0].value =3D cap;
				statoDesc =3D =
document.getElementsByName("selStatoSLR")[0].options[selIndex].innerHTML;=

			}
			else{
				document.getElementById("hidCodiceComuneSLR").value =3D "";
				document.getElementsByName("txtComuneSLR")[0].value =3D "";
				document.getElementById("hidCodiceProvinciaSLR").value =3D "";
				document.getElementsByName("txtProvinciaSLR")[0].value =3D "";
				//document.getElementsByName("txtCAPSLR")[0].value =3D "";
				statoDesc =3D "";
			}
			document.getElementsByName("txtStatoSLR")[0].value=3D statoDesc;
			abilitaCampiLuogoAccessori(false);
		}
		if (campo=3D=3D"txtComuneRFF"){
			document.getElementById("hidCodiceComuneRFF").value =3D comuneCodice;
			document.getElementsByName("txtComuneRFF")[0].value =3D comune;
			document.getElementById("hidCodiceProvinciaRFF").value =3D =
provinciaCodice;
			document.getElementsByName("txtProvinciaRFF")[0].value =3D provincia;
			//document.getElementsByName("txtCAPRFF")[0].value =3D cap;
			abilitaCampiLuogoAccessori(false);
		}
		if (campo=3D=3D"txtComuneRFG"){
			document.getElementById("hidCodiceComuneRFG").value =3D comuneCodice;
			document.getElementsByName("txtComuneRFG")[0].value =3D comune;
			document.getElementById("hidCodiceProvinciaRFG").value =3D =
provinciaCodice;
			document.getElementsByName("txtProvinciaRFG")[0].value =3D provincia;
			//document.getElementsByName("txtCAPRFG")[0].value =3D cap;
			abilitaCampiLuogoAccessori(false);
		}
		if (campo=3D=3D"txtComuneGSF"){
			document.getElementById("hidCodiceComuneGSF").value =3D comuneCodice;
			document.getElementsByName("txtComuneGSF")[0].value =3D comune;
			document.getElementById("hidCodiceProvinciaGSF").value =3D =
provinciaCodice;
			document.getElementsByName("txtProvinciaGSF")[0].value =3D provincia;
			//document.getElementsByName("txtCAPGSF")[0].value =3D cap;
			abilitaCampiLuogoAccessori(false);
		}
		if (campo=3D=3D"txtComuneGSG"){
			document.getElementById("hidCodiceComuneGSG").value =3D comuneCodice;
			document.getElementsByName("txtComuneGSG")[0].value =3D comune;
			document.getElementById("hidCodiceProvinciaGSG").value =3D =
provinciaCodice;
			document.getElementsByName("txtProvinciaGSG")[0].value =3D provincia;
			//document.getElementsByName("txtCAPGSG")[0].value =3D cap;
			abilitaCampiLuogoAccessori(false);
		}
		if (campo=3D=3D"txtLuogoNascitaRapprFiscalePF"){
			document.getElementById("hidCodiceLuogoNascitaRapprFiscalePF").value =
=3D comuneCodice;
			document.getElementsByName("txtLuogoNascitaRapprFiscalePF")[0].value =
=3D comune;
		}
		if (campo=3D=3D"txtLuogoNascitaRapprGestSinistriPF"){
			=
document.getElementById("hidCodiceLuogoNascitaRapprGestSinistriPF").value=
 =3D comuneCodice;
			=
document.getElementsByName("txtLuogoNascitaRapprGestSinistriPF")[0].value=
 =3D comune;
		}	=09
	}
	=09
	function =
callback_persona(idSoggetto,idCampo,cognome,nome,codicefiscale,codLuogoNa=
scita,luogoNascita,dataNascita){
		if (idCampo=3D=3D"txtCognomeRapprFiscalePF"){
			document.getElementById("hidIdRapprFiscale").value =3D idSoggetto;
			document.getElementsByName("txtCognomeRapprFiscalePF")[0].value =3D =
cognome;
			document.getElementsByName("txtNomeRapprFiscalePF")[0].value =3D =
nome;
			document.getElementsByName("txtCodFiscRapprFiscalePF")[0].value =3D =
codicefiscale;
			document.getElementById("hidCodiceLuogoNascitaRapprFiscalePF").value =
=3D codLuogoNascita;
			document.getElementsByName("txtLuogoNascitaRapprFiscalePF")[0].value =
=3D luogoNascita;
			document.getElementsByName("dtpDataNascitaRapprFiscalePF")[0].value =
=3D dataNascita;
			abilitaBottoniRicercaIndirizzoPersone(false);
		}
	=09
		if (idCampo=3D=3D"txtCognomeRapprGestSinistriPF"){
			document.getElementById("hidIdRapprGestSinistri").value =3D =
idSoggetto;
			document.getElementsByName("txtCognomeRapprGestSinistriPF")[0].value =
=3D cognome;
			document.getElementsByName("txtNomeRapprGestSinistriPF")[0].value =3D =
nome;
			document.getElementsByName("txtCodFiscRapprGestSinistriPF")[0].value =
=3D codicefiscale;
			=
document.getElementById("hidCodiceLuogoNascitaRapprGestSinistriPF").value=
 =3D codLuogoNascita;
			=
document.getElementsByName("txtLuogoNascitaRapprGestSinistriPF")[0].value=
 =3D luogoNascita;
			=
document.getElementsByName("dtpDataNascitaRapprGestSinistriPF")[0].value =
=3D dataNascita;
			abilitaBottoniRicercaIndirizzoPersone(false);
		}
	}
	function callback_pGiuridica(idSoggetto,idCampo,denominazione,pIva){
		if (idCampo=3D=3D"txtDenomSocialeRapprFiscalePG"){
			document.getElementById("hidIdRapprFiscale").value =3D idSoggetto;=09
			document.getElementsByName("txtDenomSocialeRapprFiscalePG")[0].value =
=3D denominazione;
			abilitaBottoniRicercaIndirizzoPersone(false);
		}
		if (idCampo=3D=3D"txtDenomSocialeRapprGestSinistriPG"){
			document.getElementById("hidIdRapprGestSinistri").value =3D =
idSoggetto;=09
			=
document.getElementsByName("txtDenomSocialeRapprGestSinistriPG")[0].value=
 =3D denominazione;
			abilitaBottoniRicercaIndirizzoPersone(false);
		}
	}
=09
	function togglePFPG(titolo){
		// Rappresentante Fiscale
		if (titolo =3D=3D "rf"){
			if (document.getElementById("rdbTipoRapprFiscale_4true").checked =
=3D=3D true){
			 	document.getElementById("RapprFiscalePF").style.display=3D"";
		 		document.getElementById("RapprFiscalePG").style.display=3D"none";
		 		document.getElementsByName("dtpDataNominaRapprFiscalePG")[0].value =
=3D "";
		 		=
document.getElementsByName("dtpDataCessIncaricoRapprFiscalePG")[0].value =
=3D "";

		    }
			else{
			 	document.getElementById("RapprFiscalePF").style.display=3D"none";
		 		document.getElementById("RapprFiscalePG").style.display=3D"";
		 		document.getElementsByName("dtpDataNominaRapprFiscalePF")[0].value =
=3D "";
		 		=
document.getElementsByName("dtpDataCessIncaricoRapprFiscalePF")[0].value =
=3D "";
			}
		}
	=09
		// Rappresentante Gestione Sinistri
		if (titolo =3D=3D "gs"){
			if (document.getElementById("rdbRapprGestSinistri_4true").checked =
=3D=3D true){
			 	document.getElementById("RapprGestSinistriPF").style.display=3D"";
		 		=
document.getElementById("RapprGestSinistriPG").style.display=3D"none";
		 		=
document.getElementsByName("dtpDataNominaRapprGestSinistriPG")[0].value =
=3D "";
		 		=
document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPG")[0].v=
alue =3D "";
		    }
			else{
			 	=
document.getElementById("RapprGestSinistriPF").style.display=3D"none";
		 		document.getElementById("RapprGestSinistriPG").style.display=3D"";
		 		=
document.getElementsByName("dtpDataNominaRapprGestSinistriPF")[0].value =
=3D "";
		 		=
document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPF")[0].v=
alue =3D "";
		 	=09
			}
		}
	}

	function salva(){
		//alert =
(document.forms["AnagraficaBaseLpsEntrata"]["inputString"].value);
		if (checkFormFields("AnagraficaBaseLpsEntrata")){
			if (checkDateNominaRevoca())
				AnagraficaBaseLpsEntrata.submit();
		}
	}
=09
	function checkDateNominaRevoca() {
		if =
(!checkRange(document.getElementsByName("dtpDataCessIncaricoRapprFiscaleP=
F")[0].value,
			document.getElementsByName("dtpDataNominaRapprFiscalePF")[0].value,
			"Data Cessazione Rappresentante Fiscale",
			"Data Nomina Rappresentante Fiscale")){
			return false;
		}

		/*if =
(document.getElementsByName("dtpDataCessIncaricoRapprFiscalePF")[0].value=
 !=3D "" && =
document.getElementsByName("dtpDataCessIncaricoRapprFiscalePF")[0].value =
!=3D null)
			if =
(!verificadata(document.getElementsByName("dtpDataCessIncaricoRapprFiscal=
ePF")[0].value,"","Data Cessazione Rappresentante Fiscale",1))			=09
				return false;
		*/

		if =
(!checkRange(document.getElementsByName("dtpDataCessIncaricoRapprFiscaleP=
G")[0].value,
			document.getElementsByName("dtpDataNominaRapprFiscalePG")[0].value,
			"Data Cessazione Rappresentante Fiscale",
			"Data Nomina Rappresentante Fiscale")){
			return false;			=09
		}
		/*if =
(document.getElementsByName("dtpDataCessIncaricoRapprFiscalePG")[0].value=
 !=3D "" && =
document.getElementsByName("dtpDataCessIncaricoRapprFiscalePG")[0].value =
!=3D null)
			if =
(!verificadata(document.getElementsByName("dtpDataCessIncaricoRapprFiscal=
ePG")[0].value,"","Data Cessazione Rappresentante Fiscale",1))			=09
				return false;
		*/
	=09
		if =
(!checkRange(document.getElementsByName("dtpDataCessIncaricoRapprGestSini=
striPF")[0].value,
			=
document.getElementsByName("dtpDataNominaRapprGestSinistriPF")[0].value,
			"Data Cessazione Rappresentante Gestione Sinistri",
			"Data Nomina Rappresentante Gestione Sinistri")){
			return false;
		}
	=09
		/*if =
(document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPF")[0].=
value !=3D "" && =
document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPF")[0].v=
alue !=3D null)
			if =
(!verificadata(document.getElementsByName("dtpDataCessIncaricoRapprGestSi=
nistriPF")[0].value,"","Data Cessazione Rappresentante Gestione =
Sinistri",1))			=09
				return false;
		*/
	=09
		if =
(!checkRange(document.getElementsByName("dtpDataCessIncaricoRapprGestSini=
striPG")[0].value,
			=
document.getElementsByName("dtpDataNominaRapprGestSinistriPG")[0].value,
			"Data Cessazione Rappresentante Gestione Sinistri",
			"Data Nomina Rappresentante Gestione Sinistri")){
			return false;			=09
		}
	=09
		if =
(document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPG")[0].=
value !=3D "" && =
document.getElementsByName("dtpDataCessIncaricoRapprGestSinistriPG")[0].v=
alue !=3D null)
			if =
(!verificadata(document.getElementsByName("dtpDataCessIncaricoRapprGestSi=
nistriPG")[0].value,"","Data Cessazione Rappresentante Gestione =
Sinistri",1))			=09
				return false;
	=09
		return true;
	}

</SCRIPT>
<LINK href=3D"/Albi/Albi/css/default.css" type=3Dtext/css =
rel=3Dstylesheet><LINK=20
href=3D"/Albi/Albi/css/styles-ge.css" type=3Dtext/css =
rel=3Dstylesheet><LINK=20
href=3D"https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar-blue.=
css"=20
type=3Dtext/css rel=3Dstylesheet>
<SCRIPT language=3Djavascript src=3D"" type=3Dtext/javascript></SCRIPT>

<SCRIPT src=3D"" type=3Dtext/javascript></SCRIPT>

<SCRIPT =
src=3D"https://nsiv.isvap.it/Albi/Albi/webwork/css_xhtml/validation.js"=20
type=3Dtext/javascript></SCRIPT>

<FORM id=3DanagraficaBaseLpsEntrataUpdate =
name=3DAnagraficaBaseLpsEntrata=20
onsubmit=3D"customOnsubmit(); return =
validateForm_anagraficaBaseLpsEntrataUpdate();"=20
action=3D/Albi/Albi/anagrafica/anagraficaBaseLpsEntrataUpdate.action =
method=3Dpost=20
namespace=3D"/anagrafica"><!-----------------  DATI GENERALI INIZIO =
----------------->
<TABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100%" align=3Dcenter =
border=3D0>
  <TBODY>
  <TR>
    <TD colSpan=3D2>
      <FIELDSET><LEGEND class=3Dlgnd>Dati Generali:</LEGEND>
      <TABLE cellSpacing=3D1 cellPadding=3D0 width=3D"100%" =
align=3Dcenter border=3D0>
        <TBODY>
        <TR height=3D5>
          <TD></TD></TR>
        <TR>
          <TD width=3D"30%"><LABEL class=3Dlabel>Codice Isvap =
Impresa</LABEL> </TD>
          <TD colSpan=3D3>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtCodiceIsvapImpresa_>
            <DIV class=3Dwwctrl =
id=3Dwwctrl_txtCodiceIsvapImpresa_><INPUT=20
            id=3DtxtCodiceIsvapImpresa_ size=3D15 value=3D40165=20
            name=3DtxtCodiceIsvapImpresa> </DIV></DIV></TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>Denominazione sociale</LABEL> </TD>
          <TD colSpan=3D3>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtDenominazioneSociale_1>
            <DIV class=3Dwwctrl =
id=3Dwwctrl_txtDenominazioneSociale_1><INPUT=20
            id=3DtxtDenominazioneSociale_1 size=3D95=20
            value=3D"EUROPEAN INSURANCE GROUP LIMITED"=20
            name=3DtxtDenominazioneSociale> </DIV></DIV></TD></TR>
        <TR>
          <TD class=3Dlabel id=3DlbldtpDataIscrizioneAlbo>Data di =
iscrizione=20
            all'Elenco Imprese</TD>
          <TD width=3D"16%">
            <DIV class=3Dwwgrp id=3Dwwgrp_dtpDataIscrizioneAlbo_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_dtpDataIscrizioneAlbo_1>
            <SCRIPT=20
            =
src=3D"https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar.js"=20
            type=3Dtext/javascript></SCRIPT>

            <SCRIPT=20
            =
src=3D"https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/lang/calendar-i=
t.js"=20
            type=3Dtext/javascript></SCRIPT>

            <SCRIPT=20
            =
src=3D"https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar-setup.=
js"=20
            type=3Dtext/javascript></SCRIPT>
            <INPUT onkeypress=3D"return numbersonly(this, event);"=20
            id=3DdtpDataIscrizioneAlbo_1 value=3D12/02/2008=20
            name=3DdtpDataIscrizioneAlbo> <A =
id=3DdtpDataIscrizioneAlbo_1_button=20
            =
href=3D"https://nsiv.isvap.it/Albi/Albi/anagrafica/anagraficaBaseLpsEntra=
ta.action?denominazione=3DEUROPEAN INSURANCE GROUP =
LIMITED&amp;codiceisvap=3D40165&amp;codiceMenu=3D16&amp;dataRiferimento=3D=
02/01/2009#"><IMG=20
            height=3D16 alt=3D"Cliccare per selezionare una data"=20
            =
src=3D"https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/img.gif"=20
            width=3D16 border=3D0></A>
            <SCRIPT type=3Dtext/javascript>
    Calendar.setup({
        inputField     :    "dtpDataIscrizioneAlbo_1",
        ifFormat       :    "%d/%m/%Y",
        button         :    "dtpDataIscrizioneAlbo_1_button",
        step           :    1
    });
</SCRIPT>
             </DIV></DIV></TD>
          <TD width=3D"13%"><LABEL class=3Dlabel>Numero di =
iscrizione</LABEL> </TD>
          <TD>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtNumeroOrdineAlbo_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtNumeroOrdineAlbo_1><INPUT =

            id=3DtxtNumeroOrdineAlbo_1 size=3D15 value=3DII.00883=20
            name=3DtxtNumeroOrdineAlbo>=20
      </DIV></DIV></TD></TR></TBODY></TABLE></FIELDSET> =
</TD></TR></TBODY></TABLE><!-----------------  DATI GENERALI FINE =
-----------------><!-----------------  SEDE LEGALE INIZIO =
----------------->
<TABLE width=3D"100%" align=3Dcenter>
  <TBODY>
  <TR>
    <TD>
      <FIELDSET width=3D"100%"><LEGEND class=3Dlgnd>Sede =
Legale:</LEGEND>
      <TABLE cellSpacing=3D1 cellPadding=3D0 width=3D"100%" =
align=3Dcenter border=3D0>
        <TBODY>
        <TR height=3D5>
          <TD width=3D"30%"></TD>
          <TD colSpan=3D5></TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>Via/Piazza, Numero Civico</LABEL> =
</TD>
          <TD colSpan=3D6>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtViaSL_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtViaSL_1><INPUT =
id=3DtxtViaSL_1 size=3D95=20
            value=3D"48, Old Bakery Street" name=3DtxtViaSL> =
</DIV></DIV></TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>CAP</LABEL> </TD>
          <TD width=3D"22%">
            <DIV class=3Dwwgrp id=3Dwwgrp_txtCAPSL_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtCAPSL_1><INPUT =
id=3DtxtCAPSL_1 size=3D28=20
            name=3DtxtCAPSL> </DIV></DIV></TD>
          <TD width=3D"4%"><LABEL class=3Dlabel>Citt=E0</LABEL> </TD>
          <TD width=3D"18%">
            <DIV class=3Dwwgrp id=3Dwwgrp_txtComuneSL>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtComuneSL><INPUT =
id=3DtxtComuneSL=20
            =
onchange=3D"cancellaId('hidCodiceComuneSL');cancellaId('hidCodiceProvinci=
aSL');"=20
            size=3D30 value=3DVALLETTA name=3DtxtComuneSL> =
</DIV></DIV></TD>
          <TD width=3D"10%"> <INPUT class=3Dbottonericerca =
id=3DsearchLuogoSL_1 =
onclick=3D"search_data('txtComuneSL','citta','4','')" type=3Dbutton =
alt=3D"cerca nel database" value=3DCerca name=3DsearchLuogoSL>=20
          </TD>
          <TD width=3D"7%"><LABEL=20
            =
class=3Dlabel>          =
;            =
</LABEL>=20
          </TD>
          <TD><LABEL=20
            =
class=3Dlabel>          =
;            =
</LABEL>=20
          </TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>Stato SEE</LABEL> </TD>
          <TD id=3DtrTxtStatoSL colSpan=3D5>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtStatoSL>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtStatoSL><INPUT =
id=3DtxtStatoSL size=3D28=20
            value=3DMalta name=3DtxtStatoSL> </DIV></DIV></TD>
          <TD id=3DtrSelStatoSL style=3D"DISPLAY: none" colSpan=3D5>
            <DIV class=3Dwwgrp id=3Dwwgrp_selStatoSL_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_selStatoSL_1><SELECT =
id=3DselStatoSL_1=20
            name=3DselStatoSL> <OPTION value=3D""></OPTION> <OPTION=20
              value=3D203>Austria</OPTION> <OPTION =
value=3D206>Belgio</OPTION>=20
              <OPTION value=3D209>Bulgaria</OPTION> <OPTION =
value=3D257>Ceca,=20
              Repubblica</OPTION> <OPTION value=3D315>Cipro</OPTION> =
<OPTION=20
              value=3D212>Danimarca</OPTION> <OPTION =
value=3D247>Estonia</OPTION>=20
              <OPTION value=3D214>Finlandia</OPTION> <OPTION=20
              value=3D215>Francia</OPTION> <OPTION =
value=3D216>Germania</OPTION>=20
              <OPTION value=3D800>Gibilterra</OPTION> <OPTION=20
              value=3D220>Grecia</OPTION> <OPTION =
value=3D221>Irlanda</OPTION>=20
              <OPTION value=3D223>Islanda</OPTION> <OPTION=20
              value=3D999>Italia</OPTION> <OPTION =
value=3D248>Lettonia</OPTION>=20
              <OPTION value=3D225>Liechtenstein</OPTION> <OPTION=20
              value=3D249>Lituania</OPTION> <OPTION =
value=3D226>Lussemburgo</OPTION>=20
              <OPTION value=3D227 selected>Malta</OPTION> <OPTION=20
              value=3D231>Norvegia</OPTION> <OPTION value=3D232>Paesi =
Bassi</OPTION>=20
              <OPTION value=3D233>Polonia</OPTION> <OPTION=20
              value=3D234>Portogallo</OPTION> <OPTION value=3D219>Regno=20
              Unito</OPTION> <OPTION value=3D235>Romania</OPTION> =
<OPTION=20
              value=3D255>Slovacchia</OPTION> <OPTION =
value=3D251>Slovenia</OPTION>=20
              <OPTION value=3D239>Spagna</OPTION> <OPTION=20
              value=3D240>Svezia</OPTION> <OPTION=20
            value=3D244>Ungheria</OPTION></SELECT>=20
      </DIV></DIV></TD></TR></TBODY></TABLE></FIELDSET> =
</TD></TR></TBODY></TABLE><!-----------------  SEDE LEGALE FINE =
-----------------><!-----------------  SEDE LEGALE DELLA RAPPRESENTANZA =
INIZIO ----------------->
<TABLE width=3D"100%" align=3Dcenter>
  <TBODY>
  <TR>
    <TD>
      <FIELDSET width=3D"100%"><LEGEND class=3Dlgnd>Sede Legale della=20
      Rappresentanza:</LEGEND>
      <TABLE cellSpacing=3D1 cellPadding=3D0 width=3D"100%" =
align=3Dcenter border=3D0>
        <TBODY>
        <TR height=3D5>
          <TD width=3D"30%"></TD>
          <TD colSpan=3D5></TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>Via/Piazza, Numero Civico</LABEL> =
</TD>
          <TD colSpan=3D6>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtViaSLR_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtViaSLR_1><INPUT =
id=3DtxtViaSLR_1=20
            size=3D95 name=3DtxtViaSLR> </DIV></DIV></TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>CAP</LABEL> </TD>
          <TD width=3D"22%">
            <DIV class=3Dwwgrp id=3Dwwgrp_txtCAPSLR_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtCAPSLR_1><INPUT =
id=3DtxtCAPSLR_1=20
            size=3D28 name=3DtxtCAPSLR> </DIV></DIV></TD>
          <TD width=3D"4%"><LABEL class=3Dlabel>Citt=E0</LABEL> </TD>
          <TD width=3D"18%">
            <DIV class=3Dwwgrp id=3Dwwgrp_txtComuneSLR>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtComuneSLR><INPUT =
id=3DtxtComuneSLR=20
            =
onchange=3D"cancellaId('hidCodiceComuneSLR');cancellaId('hidCodiceProvinc=
iaSLR');"=20
            size=3D30 name=3DtxtComuneSLR> </DIV></DIV></TD>
          <TD width=3D"10%"> <INPUT class=3Dbottonericerca =
id=3DsearchLuogoSLR_1 =
onclick=3D"search_data('txtComuneSLR','citta','4','')" type=3Dbutton =
alt=3D"cerca nel database" value=3DCerca name=3DsearchLuogoSLR>=20
          </TD>
          <TD width=3D"7%"><LABEL class=3Dlabel>Provincia</LABEL> </TD>
          <TD>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtProvinciaSLR>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtProvinciaSLR><INPUT=20
            id=3DtxtProvinciaSLR size=3D3 name=3DtxtProvinciaSLR> =
</DIV></DIV></TD></TR>
        <TR>
          <TD><LABEL class=3Dlabel>Stato SEE</LABEL> </TD>
          <TD id=3DtrTxtStatoSLR colSpan=3D5>
            <DIV class=3Dwwgrp id=3Dwwgrp_txtStatoSLR>
            <DIV class=3Dwwctrl id=3Dwwctrl_txtStatoSLR><INPUT =
id=3DtxtStatoSLR=20
            size=3D28 name=3DtxtStatoSLR> </DIV></DIV></TD>
          <TD id=3DtrSelStatoSLR style=3D"DISPLAY: none" colSpan=3D5>
            <DIV class=3Dwwgrp id=3Dwwgrp_selStatoSLR_1>
            <DIV class=3Dwwctrl id=3Dwwctrl_selStatoSLR_1><SELECT =
id=3DselStatoSLR_1=20
            name=3DselStatoSLR> <OPTION value=3D"" selected></OPTION> =
<OPTION=20
              value=3D203>Austria</OPTION> <OPTION =
value=3D206>Belgio</OPTION>=20
              <OPTION value=3D209>Bulgaria</OPTION> <OPTION =
value=3D257>Ceca,=20
              Repubblica</OPTION> <OPTION value=3D315>Cipro</OPTION> =
<OPTION=20
              value=3D212>Danimarca</OPTION> <OPTION =
value=3D247>Estonia</OPTION>=20
              <OPTION value=3D214>Finlandia</OPTION> <OPTION=20
              value=3D215>Francia</OPTION> <OPTION =
value=3D216>Germania</OPTION>=20
              <OPTION value=3D800>Gibilterra</OPTION> <OPTION=20
              value=3D220>Grecia</OPTION> <OPTION =
value=3D221>Irlanda</OPTION>=20
              <OPTION value=3D223>Islanda</OPTION> <OPTION=20
              value=3D999>Italia</OPTION> <OPTION =
value=3D248>Lettonia</OPTION>=20
              <OPTION value=3D225>Liechtenstein</OPTION> <OPTION=20
              value=3D249>Lituania</OPTION> <OPTION =
value=3D226>Lussemburgo</OPTION>=20
              <OPTION value=3D227>Malta</OPTION> <OPTION=20
              value=3D231>Norvegia</OPTION> <OPTION value=3D232>Paesi =
Bassi</OPTION>=20
              <OPTION value=3D233>Polonia</OPTION> <OPTION=20
              value=3D234>Portogallo</OPTION> <OPTION value=3D219>Regno=20
              Unito</OPTION> <OPTION value=3D235>Romania</OPTION> =
<OPTION=20
              value=3D255>Slovacchia</OPTION> <OPTION =
value=3D251>Slovenia</OPTION>=20
              <OPTION value=3D239>Spagna</OPTION> <OPTION=20
              value=3D240>Svezia</OPTION> <OPTION=20
            value=3D244>Ungheria</OPTION></SELECT>=20
      </DIV></DIV></TD></TR></TBODY></TABLE></FIELDSET> =
</TD></TR></TBODY></TABLE><!-----------------  SEDE LEGALE DELLA =
RAPPRESENTANZA FINE -----------------><!-----------------  =
RAPPRESENTANTE FISCALE PF INIZIO -----------------><!--  resetto i =
valori dei parametri filtro per la ricerca delle citt=E0  =
--><!-----------------  RAPPRESENTANTE PER LA GESTIONE DEI SINISTRI PG =
FINE -----------------><!-----------------  FOOTER PAGINA INIZIO =
-----------------><INPUT=20
id=3DflagInserisci type=3Dhidden> <INPUT id=3DtipoOperazione =
type=3Dhidden=20
name=3DtipoOperazione> <INPUT id=3DboolDisabilitaRicercaPersona =
type=3Dhidden=20
name=3DboolDisabilitaRicercaPersona> <!-----------------  FOOTER PAGINA =
FINE -----------------><BR><INPUT=20
id=3DisDataForm type=3Dhidden> <INPUT id=3DhidCodiceComuneSL =
type=3Dhidden value=3D227002=20
name=3DselComuneSL> <INPUT id=3DhidCodiceProvinciaSL type=3Dhidden =
value=3D000=20
name=3DselProvinciaSL> <INPUT id=3DhidCodiceComuneSLR type=3Dhidden =
name=3DselComuneSLR>=20
<INPUT id=3DhidCodiceProvinciaSLR type=3Dhidden name=3DselProvinciaSLR> =
<INPUT=20
id=3DhidIdRapprFiscale type=3Dhidden value=3DSOGG_39 =
name=3DselIdRapprFiscale> <INPUT=20
id=3DhidCodiceLuogoNascitaRapprFiscalePF type=3Dhidden=20
name=3DselLuogoNascitaRapprFiscalePF> <INPUT id=3DhidCodiceComuneRFF =
type=3Dhidden=20
value=3D061086 name=3DselComuneRFF> <INPUT id=3DhidCodiceProvinciaRFF =
type=3Dhidden=20
value=3D061 name=3DselProvinciaRFF> <INPUT id=3DhidCodiceComuneRFG =
type=3Dhidden=20
value=3D061086 name=3DselComuneRFG> <INPUT id=3DhidCodiceProvinciaRFG =
type=3Dhidden=20
value=3D061 name=3DselProvinciaRFG> <INPUT id=3DhidIdRapprGestSinistri =
type=3Dhidden=20
value=3DSOGG_39 name=3DselIdRapprGestSinistri> <INPUT=20
id=3DhidCodiceLuogoNascitaRapprGestSinistriPF type=3Dhidden=20
name=3DselLuogoNascitaRapprGestSinistriPF> <INPUT =
id=3DhidCodiceComuneGSF=20
type=3Dhidden value=3D061086 name=3DselComuneGSF> <INPUT =
id=3DhidCodiceProvinciaGSF=20
type=3Dhidden value=3D061 name=3DselProvinciaGSF> <INPUT =
id=3DhidCodiceComuneGSG=20
type=3Dhidden value=3D061086 name=3DselComuneGSG> <INPUT =
id=3DhidCodiceProvinciaGSG=20
type=3Dhidden value=3D061 name=3DselProvinciaGSG> </FORM>
<SCRIPT>
	function customOnsubmit() {
	=09
	}
</SCRIPT>

<SCRIPT>
    function validateForm_anagraficaBaseLpsEntrataUpdate() {
        form =3D =
document.getElementById("anagraficaBaseLpsEntrataUpdate");
        clearErrorMessages(form);
        clearErrorLabels(form);

        var errors =3D false;

        return !errors;
    }
</SCRIPT>
</BODY></HTML>

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: https://nsiv.isvap.it/Albi/Albi/img/Testata3.gif

R0lGODlhlwAzAPcAAPr4+KIAIN+9xb1LYrAmQdCAkKetsFF+VwAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAlwAzAAAI/wADCBxI
sKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhTqrQo4IABggZcCni5sqbN
gi1d0gwQ88ABBDtvCi0pQABPnzF3Fv2JwKfRoVBDGpiJ1ADNp0ddOsUatSvGmT2tugyAlKfVsACC
el07Malbn3DjCkgL9CzbuxJ1ukwbt6/WpjkP4B2sEKzYpn77IkaqU+1DAgQKRj44oIDlAgMkTxYI
2WDngZ89MwzNGfJmiVPhLvbZtCdc1z1bWp1YAMBc2wAAZCY4wPbl3AAKcJ57+/bugcRxB6fMlTJw
5bdzCxAOcaqB1VXDZnetV6dEAr2BC/8YcLo2dc7SJ4N/PuA46MrS3RO0fZpy7dwFwLe/b/uhVQA/
9TXVTE3xdVZgdf0020S3nTeQeQbV1lyDCvXWHEH3NURAegWFt1xDMjmF2IHXGWDgTFTBRZdjDwEn
X3j1BdCbgwHcR2NBtcU4XH8MhXdhjdI1JJt2MhVFlXQHGJmiT3Ql+eNCHhqEn3Py2ZjQjAnx15CV
EQKnI06qBfZaTsCdlRhsTyrE5UDh3QhkfWt2+aWHADTk4kH8fUmQmACMSGJ0tp0lloLXNcXglBgi
imOdi37omaMGFRUklMAhlCdDLbX22nOcdsoXXAQKFtGGucGpKIY3xpnonMHdxpCqyFX/CiJ2e3na
qYJxJSWRj12W6hCsAWzopkDBkcpoYaeCJp5DMWGHwLOAcnqdk6otFhGs/A1rUJsHzZWlAJBNmpCx
OnooX0KZbhegrbIFGtezTkFk3LbsNcRth5ASJKyM4iIUZbeyYsqdTmDVymlRA4pFYGtpPuprr7nZ
myyQWTLKq5oT85vbuQiheFZdRhr8nMchrxhTw40+aSyPFfbLL8cvC3RxQnfimzFC/+2FFHFJlhnd
XinG5pO8N2tctMwue9vxsTM79zCbwGl7UExNxgagibltCmB38BLIIs0bY1wzQqRy1RvMZ0PNMp6T
QjZAdDAnVOLcVfW8tdVvsZaaqA79/4usy5L1WxTNZgO+p3jK+aanQk69hmZSQWen97QQARv42A4z
rZulmz9oOHr4XdbeRQLUBa+ZWp31qeTv8i1k2D1GPW7Agx+0snTL+hvwRlYtifpUtiGsleNMfU22
lw5F92XZSH9p3mWWUch5vhpplZaYufoFOVOuS7z2QpfaLiv1SN9470GYb5Rpwa8NX3euiEmkKmbH
Py2ZqzkuHaPl5EqVne8DMxACclI7h6SPfMSKWP0AQIDp6M5NlrsPyiySFMDkhkjDM1HBADQihxgr
cMNiHtiCw0CEKLBXw7IcS1iDgK11x0RJ+ZRb9hagXyULS07TVgNlxzaYWS59GQHVf+aaFCAiPcuC
1+Ng99AFO8+l0H5SQt6j0gQsv3FELoLSoHWcMi2g9W54E0xgCRPlJlJJLQDSixQCgUQ+CYKkbgkL
SwxzArktTuUhVhQIcdg2wc+FR2xuSmNHUJQk7giKMa0RlGEeozycnGqHYZwLx8y1QHDZjD4iockM
t2eVZ/UuYXj0lCV35Ju3zeWMO4LYcxzEn1XKKFq4QWVFXoKidBXEKYHq3WMw0x795KdDElLcQ8az
LV768jSVAY9+RkcAzCiTPMksia5wNhbCWBM1SZJbNa/JzeR185vgDKc4x0nOcprznOcMCAA7

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/img.gif

R0lGODlhFAAOAPIEADAwMP8AANzc3P//wP///////wAAAAAAACH5BAEBAAUALAAAAAAUAA4AAAOk
WFVVhVVVVVhVVYVVBQAIAACAAAAACABVgDMzMzgzM4MzM1BYMDODMzMzODMzg1AFAAgAAIAAAAAI
AFWARERESEREhEREUFhAAIQABEAIQBGEUAVESEREhEREREgEVYAEQABIAASAFEFQWEBEhEREREhE
RIRQBQQIBECAQAAUGARVgEREREhERIRERFBYAACAAAAACAAAgFBVVVhVVYVVVVVYVZUAOw==

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar-blue.css

DIV.calendar {
	POSITION: relative
}
.calendar {
	BORDER-RIGHT: #556 1px solid; BORDER-TOP: #556 1px solid; FONT-SIZE: =
11px; BACKGROUND: #eef; BORDER-LEFT: #556 1px solid; CURSOR: default; =
COLOR: #000; BORDER-BOTTOM: #556 1px solid; FONT-FAMILY: =
tahoma,verdana,sans-serif
}
.calendar TABLE {
	BORDER-RIGHT: #556 1px solid; BORDER-TOP: #556 1px solid; FONT-SIZE: =
11px; BACKGROUND: #eef; BORDER-LEFT: #556 1px solid; CURSOR: default; =
COLOR: #000; BORDER-BOTTOM: #556 1px solid; FONT-FAMILY: =
tahoma,verdana,sans-serif
}
.calendar .button {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; =
PADDING-TOP: 2px; TEXT-ALIGN: center
}
.calendar .nav {
	BACKGROUND: url(menuarrow.gif) #778 no-repeat 100% 100%
}
.calendar THEAD .title {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-WEIGHT: bold; BACKGROUND: =
#fff; PADDING-BOTTOM: 2px; COLOR: #000; PADDING-TOP: 2px; TEXT-ALIGN: =
center
}
.calendar THEAD .headrow {
	BACKGROUND: #778; COLOR: #fff
}
.calendar THEAD .daynames {
	BACKGROUND: #bdf
}
.calendar THEAD .name {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; COLOR: =
#000; PADDING-TOP: 2px; BORDER-BOTTOM: #556 1px solid; TEXT-ALIGN: =
center
}
.calendar THEAD .weekend {
	COLOR: #a66
}
.calendar THEAD .hilite {
	BORDER-RIGHT: #04f 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #04f 1px =
solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: #04f 1px =
solid; COLOR: #000; PADDING-TOP: 1px; BORDER-BOTTOM: #04f 1px solid; =
BACKGROUND-COLOR: #aaf
}
.calendar THEAD .active {
	PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px; =
PADDING-TOP: 2px; BACKGROUND-COLOR: #77c
}
.calendar TBODY .day {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; WIDTH: 2em; =
COLOR: #456; PADDING-TOP: 2px; TEXT-ALIGN: right
}
.calendar TBODY .othermonth {
	FONT-SIZE: 80%; COLOR: #bbb
}
.calendar TBODY .oweekend {
	COLOR: #fbb
}
.calendar TABLE .wn {
	BORDER-RIGHT: #000 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 2px; =
BACKGROUND: #bdf; PADDING-BOTTOM: 2px; PADDING-TOP: 2px
}
.calendar TBODY .rowhilite TD {
	BACKGROUND: #def
}
.calendar TBODY .rowhilite TD.wn {
	BACKGROUND: #eef
}
.calendar TBODY TD.hilite {
	BORDER-RIGHT: #bbb 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #bbb 1px =
solid; PADDING-LEFT: 1px; BACKGROUND: #def; PADDING-BOTTOM: 1px; =
BORDER-LEFT: #bbb 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #bbb 1px =
solid
}
.calendar TBODY TD.active {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; BACKGROUND: #cde; =
PADDING-BOTTOM: 0px; PADDING-TOP: 2px
}
.calendar TBODY TD.selected {
	BORDER-RIGHT: #000 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #000 1px =
solid; PADDING-LEFT: 1px; FONT-WEIGHT: bold; BACKGROUND: #fff; =
PADDING-BOTTOM: 1px; BORDER-LEFT: #000 1px solid; COLOR: #000; =
PADDING-TOP: 1px; BORDER-BOTTOM: #000 1px solid
}
.calendar TBODY TD.weekend {
	COLOR: #a66
}
.calendar TBODY TD.today {
	FONT-WEIGHT: bold; COLOR: #00f
}
.calendar TBODY .disabled {
	COLOR: #999
}
.calendar TBODY .emptycell {
	VISIBILITY: hidden
}
.calendar TBODY .emptyrow {
	DISPLAY: none
}
.calendar TFOOT .footrow {
	BACKGROUND: #556; COLOR: #fff; TEXT-ALIGN: center
}
.calendar TFOOT .ttip {
	PADDING-RIGHT: 1px; BORDER-TOP: #556 1px solid; PADDING-LEFT: 1px; =
BACKGROUND: #fff; PADDING-BOTTOM: 1px; COLOR: #445; PADDING-TOP: 1px
}
.calendar TFOOT .hilite {
	BORDER-RIGHT: #04f 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #04f 1px =
solid; PADDING-LEFT: 1px; BACKGROUND: #aaf; PADDING-BOTTOM: 1px; =
BORDER-LEFT: #04f 1px solid; COLOR: #000; PADDING-TOP: 1px; =
BORDER-BOTTOM: #04f 1px solid
}
.calendar TFOOT .active {
	PADDING-RIGHT: 0px; PADDING-LEFT: 2px; BACKGROUND: #77c; =
PADDING-BOTTOM: 0px; PADDING-TOP: 2px
}
.calendar .combo {
	BORDER-RIGHT: #655 1px solid; BORDER-TOP: #655 1px solid; DISPLAY: =
none; FONT-SIZE: 90%; Z-INDEX: 100; BACKGROUND: #def; LEFT: 0px; =
BORDER-LEFT: #655 1px solid; WIDTH: 4em; CURSOR: default; COLOR: #000; =
BORDER-BOTTOM: #655 1px solid; POSITION: absolute; TOP: 0px
}
.calendar .combo .label {
	PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; =
PADDING-TOP: 1px; TEXT-ALIGN: center
}
.calendar .combo .label-IEfix {
	PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; =
PADDING-TOP: 1px; TEXT-ALIGN: center
}
.calendar .combo .label-IEfix {
	WIDTH: 4em
}
.calendar .combo .hilite {
	BACKGROUND: #acf
}
.calendar .combo .active {
	BORDER-TOP: #46a 1px solid; FONT-WEIGHT: bold; BACKGROUND: #eef; =
BORDER-BOTTOM: #46a 1px solid
}
.calendar TD.time {
	PADDING-RIGHT: 0px; BORDER-TOP: #000 1px solid; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BACKGROUND-COLOR: #f4f0e8; =
TEXT-ALIGN: center
}
.calendar TD.time .hour {
	BORDER-RIGHT: #889 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #889 1px =
solid; PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; =
BORDER-LEFT: #889 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #889 1px =
solid; BACKGROUND-COLOR: #fff
}
.calendar TD.time .minute {
	BORDER-RIGHT: #889 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #889 1px =
solid; PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; =
BORDER-LEFT: #889 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #889 1px =
solid; BACKGROUND-COLOR: #fff
}
.calendar TD.time .ampm {
	BORDER-RIGHT: #889 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #889 1px =
solid; PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; =
BORDER-LEFT: #889 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #889 1px =
solid; BACKGROUND-COLOR: #fff
}
.calendar TD.time .ampm {
	TEXT-ALIGN: center
}
.calendar TD.time .colon {
	PADDING-RIGHT: 2px; PADDING-LEFT: 3px; FONT-WEIGHT: bold; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.calendar TD.time SPAN.hilite {
	BORDER-LEFT-COLOR: #000; BORDER-BOTTOM-COLOR: #000; COLOR: #fff; =
BORDER-TOP-COLOR: #000; BACKGROUND-COLOR: #667; BORDER-RIGHT-COLOR: #000
}
.calendar TD.time SPAN.active {
	BORDER-LEFT-COLOR: #f00; BORDER-BOTTOM-COLOR: #f00; COLOR: #0f0; =
BORDER-TOP-COLOR: #f00; BACKGROUND-COLOR: #000; BORDER-RIGHT-COLOR: #f00
}

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/css/isvap.css

text {
	FONT-SIZE: 12px; BORDER-LEFT-COLOR: #eeeeee; BORDER-BOTTOM-COLOR: =
#eeeeee; BORDER-TOP-STYLE: solid; BORDER-TOP-COLOR: #eeeeee; =
FONT-FAMILY: Arial, Helvetica, sans-serif; BORDER-RIGHT-STYLE: solid; =
BORDER-LEFT-STYLE: solid; BACKGROUND-COLOR: #eeeeee; BORDER-RIGHT-COLOR: =
#eeeeee; BORDER-BOTTOM-STYLE: solid
}
.breadcrumb {
	FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: #a20020; FONT-FAMILY: Arial, =
Helvetica, sans-serif
}
.labeltestata {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; FONT-SIZE: 13px; MARGIN-BOTTOM: =
2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; VERTICAL-ALIGN: top; COLOR: =
#000000; MARGIN-RIGHT: 4px; BORDER-BOTTOM: #d3d3d3 1px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #eeeeee; TEXT-ALIGN: =
left
}
.errorMessage {
	FONT-SIZE: 12px; COLOR: green; FONT-FAMILY: Arial, Helvetica, =
sans-serif
}
.lgnd {
	FONT-SIZE: 12px; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif
}
.bottone {
	COLOR: #ffffff; HEIGHT: auto; BACKGROUND-COLOR: #a20020
}
.bottonericerca {
	WIDTH: 50px; COLOR: #ffffff; HEIGHT: 20px; BACKGROUND-COLOR: #a20020
}
.label {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; FONT-SIZE: 12px; MARGIN-BOTTOM: =
2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; VERTICAL-ALIGN: top; COLOR: =
#000000; MARGIN-RIGHT: 4px; BORDER-BOTTOM: #d3d3d3 1px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left; valign: "top"
}
.textNormal {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.textReadOnly {
	FONT-SIZE: 12px; BORDER-LEFT-COLOR: #eeeeee; BORDER-BOTTOM-COLOR: =
#eeeeee; BORDER-TOP-STYLE: solid; BORDER-TOP-COLOR: #eeeeee; =
FONT-FAMILY: Arial, Helvetica, sans-serif; BORDER-RIGHT-STYLE: solid; =
BORDER-LEFT-STYLE: solid; BACKGROUND-COLOR: #eeeeee; BORDER-RIGHT-COLOR: =
#eeeeee; BORDER-BOTTOM-STYLE: solid
}
.titolo_pagina {
	FONT-SIZE: 12pt; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif; align: center
}
.tdevidence {
	FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: Arial, =
Helvetica, sans-serif; BACKGROUND-COLOR: #a20020; TEXT-ALIGN: center
}
.topMenu {
	FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial, Helvetica, =
sans-serif
}
.titoliTesta1 {
	FONT-SIZE: 11pt; COLOR: #fff; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.titoliTesta2 {
	FONT-SIZE: 11pt; FONT-FAMILY: Arial, Helvetica, sans-serif
}
.labelTitolo {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; FONT-WEIGHT: bold; FONT-SIZE: =
14px; MARGIN-BOTTOM: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; =
VERTICAL-ALIGN: top; COLOR: #a20020; MARGIN-RIGHT: 4px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left
}
.labelLista {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; MARGIN-BOTTOM: =
0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; VERTICAL-ALIGN: top; COLOR: =
#a20020; MARGIN-RIGHT: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: left
}
.labelNotaAutorizzazione {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; MARGIN-BOTTOM: =
0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; VERTICAL-ALIGN: top; COLOR: =
#a20020; MARGIN-RIGHT: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: left
}
.elLista {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; MARGIN-BOTTOM: =
0px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 0px; VERTICAL-ALIGN: top; =
MARGIN-RIGHT: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: left
}
.labelTitoloMiddle {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; FONT-WEIGHT: bold; FONT-SIZE: =
14px; MARGIN-BOTTOM: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; =
VERTICAL-ALIGN: middle; COLOR: #a20020; MARGIN-RIGHT: 4px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left
}
.labelTitoloHigh {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; FONT-WEIGHT: bold; FONT-SIZE: =
15px; MARGIN-BOTTOM: 2px; PADDING-BOTTOM: 2px; MARGIN-LEFT: 2px; =
VERTICAL-ALIGN: middle; COLOR: #a20020; MARGIN-RIGHT: 4px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left
}
.labelbreadcrumb {
	FONT-SIZE: 14px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
BACKGROUND-COLOR: #ededed
}
.labelbreadcrumbred {
	FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #a20020; FONT-FAMILY: Arial, =
Helvetica, sans-serif; BACKGROUND-COLOR: #ededed
}
.labeltestatadisabled {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; MARGIN-BOTTOM: 2px; =
PADDING-BOTTOM: 2px; FONT: bold 10pt bold Arial, Helvetica, sans-serif; =
MARGIN-LEFT: 2px; VERTICAL-ALIGN: top; MARGIN-RIGHT: 4px; BORDER-BOTTOM: =
#d3d3d3 1px; BACKGROUND-COLOR: #f3f3f3; TEXT-ALIGN: left
}
.formBox {
	BORDER-RIGHT: #a20020 1px solid; BORDER-TOP: #a20020 1px solid; =
BORDER-LEFT: #a20020 1px solid; BORDER-BOTTOM: #a20020 1px solid
}
BODY {
	FONT-SIZE: 12px; LINE-HEIGHT: 25px; FONT-FAMILY: Arial, Helvetica, =
sans-serif; BACKGROUND-COLOR: #ffffff
}
text1 {
=09
}
H2 {
	FONT-SIZE: 14px; COLOR: #000000; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-DECORATION: none; align: left
}
HR {
	COLOR: #ffffff
}
.fieldsetList {
	BORDER-RIGHT: #a20020 1px solid; BORDER-TOP: #a20020 1px solid; =
FONT-SIZE: 12px; BORDER-LEFT: #a20020 1px solid; COLOR: #a20020; =
BORDER-BOTTOM: #a20020 1px solid; FONT-FAMILY: Arial, Helvetica, =
sans-serif
}
.fieldsetListAlbi {
	BORDER-RIGHT: #a20020 1px solid; BORDER-TOP: #a20020 1px solid; =
FONT-SIZE: 12px; BORDER-LEFT: #a20020 1px solid; COLOR: #a20020; =
BORDER-BOTTOM: #a20020 1px solid; FONT-FAMILY: Arial, Helvetica, =
sans-serif
}
.tableListAlbi {
	FONT-SIZE: 15px; FONT-FAMILY: Arial, Helvetica, sans-serif
}
STRONG {
=09
}

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/css/dropdown.css

UNKNOWN {
	FONT: 5px verdana
}
UL {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: =
0px; LINE-HEIGHT: 18px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; =
BACKGROUND-COLOR: #fffde9
}
UL LI {
	FLOAT: left; WIDTH: 123px; LINE-HEIGHT: 18px; FONT-FAMILY: verdana, =
arial, helvetica, sans-serif; POSITION: relative; BACKGROUND-COLOR: =
#fffde9
}
LI UL {
	DISPLAY: none; LEFT: 0px; LINE-HEIGHT: 18px; POSITION: absolute; TOP: =
auto; BACKGROUND-COLOR: #eeeeee
}
LI UL UL {
	DISPLAY: none; LEFT: 100%; WIDTH: 123px; LINE-HEIGHT: 18px; POSITION: =
absolute; TOP: -0.1em; BACKGROUND-COLOR: #fffde9
}
UL LI A {
	BORDER-RIGHT: #ccc 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #ccc 1px =
solid; DISPLAY: block; PADDING-LEFT: 0px; FONT-SIZE: 9px; BACKGROUND: =
#fffde9; PADDING-BOTTOM: 0px; BORDER-LEFT: #ccc 1px solid; WIDTH: 123px; =
COLOR: #333; LINE-HEIGHT: 18px; PADDING-TOP: 0px; BORDER-BOTTOM: #ccc =
1px solid; FONT-FAMILY: verdana, arial, helvetica, sans-serif; HEIGHT: =
20px; TEXT-ALIGN: center; TEXT-DECORATION: none
}
UL LI A.principale {
	BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: block; =
PADDING-LEFT: 0px; FONT-SIZE: 11px; BACKGROUND: #a20020; PADDING-BOTTOM: =
1px; BORDER-LEFT: #ccc 1px solid; WIDTH: 123px; COLOR: #fff; =
LINE-HEIGHT: 18px; PADDING-TOP: 1px; BORDER-BOTTOM: 0px; FONT-FAMILY: =
verdana, arial, helvetica, sans-serif; HEIGHT: 20px; TEXT-ALIGN: center; =
TEXT-DECORATION: none
}
* HTML UL LI A {
	HEIGHT: 1%
}
LI:hover A {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI.over A {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI:hover LI:hover A {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI.over LI.over A {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI:hover LI:hover LI:hover A {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI.over LI.over LI.over A {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI:hover LI A:hover {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI.over LI A:hover {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI:hover LI:hover LI:hover A:hover {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI.over LI LI A:hover {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI:hover LI:hover LI:hover LI:hover A:hover {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI.over LI.over LI.over LI.over A:hover {
	COLOR: #fff; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #a20020
}
LI:hover LI A {
	COLOR: #333; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #fffde9
}
LI.over LI A {
	COLOR: #333; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #fffde9
}
LI:hover LI:hover LI A {
	COLOR: #333; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #fffde9
}
LI.over LI.over LI A {
	COLOR: #333; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #fffde9
}
LI:hover LI:hover LI:hover LI A {
	COLOR: #333; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #fffde9
}
LI.over LI.over LI.over LI A {
	COLOR: #333; LINE-HEIGHT: 18px; BACKGROUND-COLOR: #fffde9
}
LI UL LI A {
	PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 2px; =
PADDING-TOP: 2px
}
UL LI:hover UL UL {
	DISPLAY: none
}
UL LI:hover UL UL UL {
	DISPLAY: none
}
UL LI.over UL UL {
	DISPLAY: none
}
UL LI.over UL UL UL {
	DISPLAY: none
}
UL LI UL.left {
	LEFT: -123px; WIDTH: 123px; LINE-HEIGHT: 18px
}
UL LI:hover UL {
	DISPLAY: block
}
UL LI LI:hover UL {
	DISPLAY: block
}
UL LI LI LI:hover UL {
	DISPLAY: block
}
UL LI.over UL {
	DISPLAY: block
}
UL LI LI.over UL {
	DISPLAY: block
}
UL LI LI LI.over UL {
	DISPLAY: block
}
#menu B {
	DISPLAY: block; OVERFLOW: hidden; HEIGHT: 1px
}
#menu B.p1 {
	BACKGROUND: #ccc; MARGIN: 0px 5px
}
#menu B.p2 {
	BORDER-RIGHT: #fff 2px solid; BORDER-TOP: #fff 0px solid; BACKGROUND: =
#a20020; MARGIN: 0px 3px; BORDER-LEFT: #000; BORDER-BOTTOM: #000; 2px: ; =
0px:=20
}
#menu B.p3 {
	BORDER-RIGHT: #fff 1px solid; BORDER-TOP: #000 0px solid; BACKGROUND: =
#a20020; MARGIN: 0px 2px; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: =
#ccc 0px solid
}
#menu B.p4 {
	BORDER-RIGHT: #fff 1px solid; BORDER-TOP: #000 0px solid; BACKGROUND: =
#a20020; MARGIN: 0px 1px; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: =
#ccc 0px solid; HEIGHT: 2px
}
#menu B.p5 {
	BACKGROUND: #ccc; MARGIN: 0px 5px
}
#menu B.p6 {
	BACKGROUND: #ccc; MARGIN: 0px 3px
}
#menu B.p7 {
	BACKGROUND: #ccc; MARGIN: 0px 2px
}
#menu B.p8 {
	BACKGROUND: #ccc; MARGIN: 0px 1px; HEIGHT: 2px
}
#menu LI:hover B.p2 {
	BACKGROUND: #a20020
}
#menu A:hover B.p2 {
	BACKGROUND: #a20020
}
#menu LI:hover B.p3 {
	BACKGROUND: #a20020
}
#menu A:hover B.p3 {
	BACKGROUND: #a20020
}
#menu LI:hover B.p4 {
	BACKGROUND: #a20020
}
#menu A:hover B.p4 {
	BACKGROUND: #a20020
}

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/css/subModal.css

#popupMask {
	DISPLAY: none; Z-INDEX: 200; FILTER: alpha(opacity=3D40); LEFT: 0px; =
BACKGROUND-IMAGE: none; WIDTH: 100%; BACKGROUND-REPEAT: repeat; =
POSITION: absolute; TOP: 0px; HEIGHT: 100%; BACKGROUND-COLOR: #333333; =
opacity: .4
}
#popupContainer {
	PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 0px; Z-INDEX: 201; =
LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; POSITION: absolute; =
TOP: 0px
}
#popupInner {
	BORDER-RIGHT: #000000 2px solid; BORDER-TOP: #000000 2px solid; =
BORDER-LEFT: #000000 2px solid; BORDER-BOTTOM: #000000 2px solid; =
BACKGROUND-COLOR: #ffffff
}
#popupFrame {
	Z-INDEX: 202; MARGIN: 0px; WIDTH: 100%; POSITION: relative; HEIGHT: =
100%
}
#popupTitleBar {
	BORDER-RIGHT: #a20020 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: =
#a20020 1px solid; PADDING-LEFT: 5px; FONT-WEIGHT: bold; Z-INDEX: 203; =
PADDING-BOTTOM: 5px; BORDER-LEFT: #a20020 1px solid; COLOR: #000000; =
PADDING-TOP: 5px; BORDER-BOTTOM: #a20020 2px solid; POSITION: relative; =
HEIGHT: 1.3em; BACKGROUND-COLOR: #a20020
}
#popupTitle {
	FONT-SIZE: 8pt; FLOAT: left; COLOR: #fff; align: center
}
#popupControls {
	FLOAT: right; CURSOR: hand
}
#popupMask1 {
	DISPLAY: none; Z-INDEX: 200; FILTER: alpha(opacity=3D40); LEFT: 0px; =
BACKGROUND-IMAGE: url(maskBG.png)! important; WIDTH: 100%; =
BACKGROUND-REPEAT: repeat; POSITION: absolute; TOP: 0px; HEIGHT: 100%; =
BACKGROUND-COLOR: #333333; opacity: .4; For: none
}
#popupContainer1 {
	PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 0px; Z-INDEX: 201; =
LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; POSITION: absolute; =
TOP: 0px
}
#popupInner1 {
	BORDER-RIGHT: #000000 2px solid; BORDER-TOP: #000000 2px solid; =
BORDER-LEFT: #000000 2px solid; BORDER-BOTTOM: #000000 2px solid; =
BACKGROUND-COLOR: #ffffff
}
#popupFrame1 {
	Z-INDEX: 202; MARGIN: 0px; WIDTH: 100%; POSITION: relative; HEIGHT: =
100%
}
#popupTitleBar1 {
	BORDER-RIGHT: #a20020 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: =
#a20020 1px solid; PADDING-LEFT: 5px; FONT-WEIGHT: bold; Z-INDEX: 203; =
PADDING-BOTTOM: 5px; BORDER-LEFT: #a20020 1px solid; COLOR: #000000; =
PADDING-TOP: 5px; BORDER-BOTTOM: #a20020 2px solid; POSITION: relative; =
HEIGHT: 1.3em; BACKGROUND-COLOR: #a20020
}
#popupTitle1 {
	FONT-SIZE: 1.1em; FLOAT: left
}
#popupControls1 {
	FLOAT: right; CURSOR: hand
}

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/css/liste.css

TABLE.lista THEAD TR {
	BACKGROUND-COLOR: #cccccc
}
TABLE.lista A {
	FONT-SIZE: 12px; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: center; align: center
}
TABLE.lista {
	BORDER-RIGHT: #a20020 1px solid; BORDER-TOP: #a20020 1px solid; =
FONT-SIZE: 12px; MARGIN-LEFT: 50px; BORDER-LEFT: #a20020 1px solid; =
MARGIN-RIGHT: 50px; BORDER-BOTTOM: #a20020 1px solid; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left; align: center; =
cellspacing: 0px
}
.found {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista TR.even {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista A:link {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista A:visited {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista A:hover {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: underline
}
TABLE.lista TR.odd {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
BACKGROUND-COLOR: #eaeaea; TEXT-ALIGN: left
}
TABLE.lista TH {
	BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px =
solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-BOTTOM: =
buttonshadow 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: center; font-color: #fffff; aling: center
}
TABLE.lista_red {
	COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
center; aling: center
}
TABLE.lista_semplice THEAD TR {
	BACKGROUND-COLOR: #ffffff
}
TABLE.lista_semplice A {
	FONT-SIZE: 12px; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: center; align: center
}
TABLE.lista_semplice {
	BORDER-RIGHT: #ffffff 0px solid; BORDER-TOP: #ffffff 0px solid; =
FONT-SIZE: 12px; BORDER-LEFT: #ffffff 0px solid; BORDER-BOTTOM: #ffffff =
0px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
center; align: center
}
TABLE.lista_semplice TR.even {
	FONT-SIZE: 12px; MARGIN-LEFT: 90px; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: left; TEXT-DECORATION: none
}
TABLE.lista_semplice A:link {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_semplice A:visited {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_semplice A:hover {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: underline
}
TABLE.lista_semplice TR.odd {
	PADDING-RIGHT: 200px; PADDING-LEFT: 200px; FONT-SIZE: 12px; =
PADDING-BOTTOM: 200px; MARGIN-LEFT: 100px; BORDER-LEFT: 300pt; =
PADDING-TOP: 200px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: left
}
TABLE.lista_semplice TH {
	FONT-SIZE: 12px; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: left
}
sortable {
	FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: center; =
font-color: #fffff
}
TABLE.lista_gruppi A {
	FONT-SIZE: 12px; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: center; align: center
}
TABLE.lista_gruppi {
	BORDER-RIGHT: #a20020 1px solid; BORDER-TOP: #a20020 1px solid; =
FONT-SIZE: 12px; BORDER-LEFT: #a20020 1px solid; BORDER-BOTTOM: #a20020 =
1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: left; =
align: center
}
table_titolo {
	FONT-SIZE: 14px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
center; align: center
}
TABLE.lista_gruppi TR.even {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_gruppi A:link {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_gruppi A:visited {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_gruppi A:hover {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: underline
}
TABLE.lista_gruppi TR.odd {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
BACKGROUND-COLOR: #eaeaea; TEXT-ALIGN: left
}
TABLE.lista_gruppi TH {
	BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px =
solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-BOTTOM: =
buttonshadow 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: center; font-color: #fffff
}
TABLE.lista_gruppi THEAD TR {
	BACKGROUND-COLOR: #cccccc
}
TABLE.lista_rami {
	FONT-SIZE: 12px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left; cellspacing: 20px
}
TABLE.lista_rami TH {
	BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px =
solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-BOTTOM: =
buttonshadow 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: center; font-color: #fffff
}
table_titolo {
	FONT-SIZE: 14px; MARGIN-LEFT: 120px; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: center; align: center
}
TABLE.lista_rami A {
	FONT-SIZE: 12px; COLOR: #a20020; FONT-FAMILY: Arial, Helvetica, =
sans-serif; TEXT-ALIGN: center; align: center
}
TABLE.lista_rami {
	FONT-SIZE: 12px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px; FONT-FAMILY: =
Arial, Helvetica, sans-serif; TEXT-ALIGN: left; align: center; =
cellspacing: 0px
}
TABLE.lista_rami THEAD TR {
	BORDER-TOP-WIDTH: 0px; DISPLAY: none; BORDER-LEFT-WIDTH: 0px; =
BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px
}
TABLE.lista_rami TR.even {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 12px; =
BORDER-BOTTOM-WIDTH: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none
}
TABLE.lista_rami TR.evencenter {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 50px; =
BORDER-BOTTOM-WIDTH: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
TEXT-ALIGN: center; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none
}
TABLE.lista_rami A:link {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_rami A:visited {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: none
}
TABLE.lista_rami A:hover {
	FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: =
left; TEXT-DECORATION: underline
}
TABLE.lista_rami TR.odd {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 12px; =
BORDER-BOTTOM-WIDTH: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif; =
BACKGROUND-COLOR: #eaeaea; TEXT-ALIGN: left; BORDER-RIGHT-WIDTH: 0px
}
TABLE.lista_rami TH {
	BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: =
0px; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-ALIGN: center; =
BORDER-RIGHT-WIDTH: 0px; font-color: #fffff; aling: center
}

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar-blue.css

DIV.calendar {
	POSITION: relative
}
.calendar {
	BORDER-RIGHT: #556 1px solid; BORDER-TOP: #556 1px solid; FONT-SIZE: =
11px; BACKGROUND: #eef; BORDER-LEFT: #556 1px solid; CURSOR: default; =
COLOR: #000; BORDER-BOTTOM: #556 1px solid; FONT-FAMILY: =
tahoma,verdana,sans-serif
}
.calendar TABLE {
	BORDER-RIGHT: #556 1px solid; BORDER-TOP: #556 1px solid; FONT-SIZE: =
11px; BACKGROUND: #eef; BORDER-LEFT: #556 1px solid; CURSOR: default; =
COLOR: #000; BORDER-BOTTOM: #556 1px solid; FONT-FAMILY: =
tahoma,verdana,sans-serif
}
.calendar .button {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; =
PADDING-TOP: 2px; TEXT-ALIGN: center
}
.calendar .nav {
	BACKGROUND: url(menuarrow.gif) #778 no-repeat 100% 100%
}
.calendar THEAD .title {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-WEIGHT: bold; BACKGROUND: =
#fff; PADDING-BOTTOM: 2px; COLOR: #000; PADDING-TOP: 2px; TEXT-ALIGN: =
center
}
.calendar THEAD .headrow {
	BACKGROUND: #778; COLOR: #fff
}
.calendar THEAD .daynames {
	BACKGROUND: #bdf
}
.calendar THEAD .name {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; COLOR: =
#000; PADDING-TOP: 2px; BORDER-BOTTOM: #556 1px solid; TEXT-ALIGN: =
center
}
.calendar THEAD .weekend {
	COLOR: #a66
}
.calendar THEAD .hilite {
	BORDER-RIGHT: #04f 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #04f 1px =
solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: #04f 1px =
solid; COLOR: #000; PADDING-TOP: 1px; BORDER-BOTTOM: #04f 1px solid; =
BACKGROUND-COLOR: #aaf
}
.calendar THEAD .active {
	PADDING-RIGHT: 0px; PADDING-LEFT: 2px; PADDING-BOTTOM: 0px; =
PADDING-TOP: 2px; BACKGROUND-COLOR: #77c
}
.calendar TBODY .day {
	PADDING-RIGHT: 4px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; WIDTH: 2em; =
COLOR: #456; PADDING-TOP: 2px; TEXT-ALIGN: right
}
.calendar TBODY .othermonth {
	FONT-SIZE: 80%; COLOR: #bbb
}
.calendar TBODY .oweekend {
	COLOR: #fbb
}
.calendar TABLE .wn {
	BORDER-RIGHT: #000 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 2px; =
BACKGROUND: #bdf; PADDING-BOTTOM: 2px; PADDING-TOP: 2px
}
.calendar TBODY .rowhilite TD {
	BACKGROUND: #def
}
.calendar TBODY .rowhilite TD.wn {
	BACKGROUND: #eef
}
.calendar TBODY TD.hilite {
	BORDER-RIGHT: #bbb 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #bbb 1px =
solid; PADDING-LEFT: 1px; BACKGROUND: #def; PADDING-BOTTOM: 1px; =
BORDER-LEFT: #bbb 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #bbb 1px =
solid
}
.calendar TBODY TD.active {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; BACKGROUND: #cde; =
PADDING-BOTTOM: 0px; PADDING-TOP: 2px
}
.calendar TBODY TD.selected {
	BORDER-RIGHT: #000 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #000 1px =
solid; PADDING-LEFT: 1px; FONT-WEIGHT: bold; BACKGROUND: #fff; =
PADDING-BOTTOM: 1px; BORDER-LEFT: #000 1px solid; COLOR: #000; =
PADDING-TOP: 1px; BORDER-BOTTOM: #000 1px solid
}
.calendar TBODY TD.weekend {
	COLOR: #a66
}
.calendar TBODY TD.today {
	FONT-WEIGHT: bold; COLOR: #00f
}
.calendar TBODY .disabled {
	COLOR: #999
}
.calendar TBODY .emptycell {
	VISIBILITY: hidden
}
.calendar TBODY .emptyrow {
	DISPLAY: none
}
.calendar TFOOT .footrow {
	BACKGROUND: #556; COLOR: #fff; TEXT-ALIGN: center
}
.calendar TFOOT .ttip {
	PADDING-RIGHT: 1px; BORDER-TOP: #556 1px solid; PADDING-LEFT: 1px; =
BACKGROUND: #fff; PADDING-BOTTOM: 1px; COLOR: #445; PADDING-TOP: 1px
}
.calendar TFOOT .hilite {
	BORDER-RIGHT: #04f 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #04f 1px =
solid; PADDING-LEFT: 1px; BACKGROUND: #aaf; PADDING-BOTTOM: 1px; =
BORDER-LEFT: #04f 1px solid; COLOR: #000; PADDING-TOP: 1px; =
BORDER-BOTTOM: #04f 1px solid
}
.calendar TFOOT .active {
	PADDING-RIGHT: 0px; PADDING-LEFT: 2px; BACKGROUND: #77c; =
PADDING-BOTTOM: 0px; PADDING-TOP: 2px
}
.calendar .combo {
	BORDER-RIGHT: #655 1px solid; BORDER-TOP: #655 1px solid; DISPLAY: =
none; FONT-SIZE: 90%; Z-INDEX: 100; BACKGROUND: #def; LEFT: 0px; =
BORDER-LEFT: #655 1px solid; WIDTH: 4em; CURSOR: default; COLOR: #000; =
BORDER-BOTTOM: #655 1px solid; POSITION: absolute; TOP: 0px
}
.calendar .combo .label {
	PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; =
PADDING-TOP: 1px; TEXT-ALIGN: center
}
.calendar .combo .label-IEfix {
	PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; =
PADDING-TOP: 1px; TEXT-ALIGN: center
}
.calendar .combo .label-IEfix {
	WIDTH: 4em
}
.calendar .combo .hilite {
	BACKGROUND: #acf
}
.calendar .combo .active {
	BORDER-TOP: #46a 1px solid; FONT-WEIGHT: bold; BACKGROUND: #eef; =
BORDER-BOTTOM: #46a 1px solid
}
.calendar TD.time {
	PADDING-RIGHT: 0px; BORDER-TOP: #000 1px solid; PADDING-LEFT: 0px; =
PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BACKGROUND-COLOR: #f4f0e8; =
TEXT-ALIGN: center
}
.calendar TD.time .hour {
	BORDER-RIGHT: #889 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #889 1px =
solid; PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; =
BORDER-LEFT: #889 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #889 1px =
solid; BACKGROUND-COLOR: #fff
}
.calendar TD.time .minute {
	BORDER-RIGHT: #889 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #889 1px =
solid; PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; =
BORDER-LEFT: #889 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #889 1px =
solid; BACKGROUND-COLOR: #fff
}
.calendar TD.time .ampm {
	BORDER-RIGHT: #889 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: #889 1px =
solid; PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; =
BORDER-LEFT: #889 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #889 1px =
solid; BACKGROUND-COLOR: #fff
}
.calendar TD.time .ampm {
	TEXT-ALIGN: center
}
.calendar TD.time .colon {
	PADDING-RIGHT: 2px; PADDING-LEFT: 3px; FONT-WEIGHT: bold; =
PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.calendar TD.time SPAN.hilite {
	BORDER-LEFT-COLOR: #000; BORDER-BOTTOM-COLOR: #000; COLOR: #fff; =
BORDER-TOP-COLOR: #000; BACKGROUND-COLOR: #667; BORDER-RIGHT-COLOR: #000
}
.calendar TD.time SPAN.active {
	BORDER-LEFT-COLOR: #f00; BORDER-BOTTOM-COLOR: #f00; COLOR: #0f0; =
BORDER-TOP-COLOR: #f00; BACKGROUND-COLOR: #000; BORDER-RIGHT-COLOR: #f00
}

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/css_xhtml/validation.js

function clearErrorMessages(form) {
	// clear out any rows with an "errorFor" attribute
	var divs =3D form.getElementsByTagName("div");
    var paragraphsToDelete =3D new Array();

    for(var i =3D 0; i < divs.length; i++) {
        var p =3D divs[i];
        if (p.getAttribute("errorFor")) {
            paragraphsToDelete.push(p);
        }
    }

    // now delete the paragraphsToDelete
    for (var i =3D 0; i < paragraphsToDelete.length; i++) {
        var r =3D paragraphsToDelete[i];
        var parent =3D r.parentNode;
        parent.removeChild(r);
    }
}

function clearErrorLabels(form) {
    // set all labels back to the normal class
    var labels =3D form.getElementsByTagName("label");
    for (var i =3D 0; i < labels.length; i++) {
        var label =3D labels[i];
        if (label) {
            if(label.getAttribute("class") =3D=3D "errorLabel"){
                label.setAttribute("class", "label");//standard way.. =
works for ie mozilla
                label.setAttribute("className", "label"); //ie hack =
cause ie does not support setAttribute
            }
        }
    }

}

function addError(e, errorText) {
    try {
        var ctrlDiv =3D e.parentNode; // wwctrl_ div or span
        var enclosingDiv =3D ctrlDiv.parentNode; // wwgrp_ div

		if (!ctrlDiv || (ctrlDiv.nodeName !=3D "DIV" && ctrlDiv.nodeName !=3D =
"SPAN") || !enclosingDiv || enclosingDiv.nodeName !=3D "DIV") {
			alert("do not validate:" + e.id);
			return;
		}
	=09
        var label =3D enclosingDiv.getElementsByTagName("label")[0];
		if (label) {
	        label.setAttribute("class", "errorLabel"); //standard way.. =
works for ie mozilla
	        label.setAttribute("className", "errorLabel"); //ie hack cause =
ie does not support setAttribute
	    }

		var firstDiv =3D enclosingDiv.getElementsByTagName("div")[0]; // =
either wwctrl_ or wwlbl_
		if (!firstDiv) {
			firstDiv =3D enclosingDiv.getElementsByTagName("span")[0];
		}
        var error =3D document.createTextNode(errorText);
        var errorDiv =3D document.createElement("div");

        errorDiv.setAttribute("class", "errorMessage");//standard way.. =
works for ie mozilla
        errorDiv.setAttribute("className", "errorMessage");//ie hack =
cause ie does not support setAttribute
        errorDiv.setAttribute("errorFor", e.id);;
        errorDiv.appendChild(error);
        enclosingDiv.insertBefore(errorDiv, firstDiv);
    } catch (e) {
        alert(e);
    }
}



------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar.js

/*  Copyright Mihai Bazon, 2002-2005  |  www.bazon.net/mishoo=0A=
 * -----------------------------------------------------------=0A=
 *=0A=
 * The DHTML Calendar, version 1.0 "It is happening again"=0A=
 *=0A=
 * Details and latest version at:=0A=
 * www.dynarch.com/projects/calendar=0A=
 *=0A=
 * This script is developed by Dynarch.com.  Visit us at www.dynarch.com.=0A=
 *=0A=
 * This script is distributed under the GNU Lesser General Public =
License.=0A=
 * Read the entire license text here: =
http://www.gnu.org/licenses/lgpl.html=0A=
 */=0A=
=0A=
// $Id: calendar.js,v 1.1 2005/12/05 22:59:55 rgielen Exp $=0A=
=0A=
/** The Calendar object constructor. */=0A=
Calendar =3D function (firstDayOfWeek, dateStr, onSelected, onClose) {=0A=
	// member variables=0A=
	this.activeDiv =3D null;=0A=
	this.currentDateEl =3D null;=0A=
	this.getDateStatus =3D null;=0A=
	this.getDateToolTip =3D null;=0A=
	this.getDateText =3D null;=0A=
	this.timeout =3D null;=0A=
	this.onSelected =3D onSelected || null;=0A=
	this.onClose =3D onClose || null;=0A=
	this.dragging =3D false;=0A=
	this.hidden =3D false;=0A=
	this.minYear =3D 1970;=0A=
	this.maxYear =3D 2050;=0A=
	this.dateFormat =3D Calendar._TT["DEF_DATE_FORMAT"];=0A=
	this.ttDateFormat =3D Calendar._TT["TT_DATE_FORMAT"];=0A=
	this.isPopup =3D true;=0A=
	this.weekNumbers =3D true;=0A=
	this.firstDayOfWeek =3D typeof firstDayOfWeek =3D=3D "number" ? =
firstDayOfWeek : Calendar._FD; // 0 for Sunday, 1 for Monday, etc.=0A=
	this.showsOtherMonths =3D false;=0A=
	this.dateStr =3D dateStr;=0A=
	this.ar_days =3D null;=0A=
	this.showsTime =3D false;=0A=
	this.time24 =3D true;=0A=
	this.yearStep =3D 2;=0A=
	this.hiliteToday =3D true;=0A=
	this.multiple =3D null;=0A=
	// HTML elements=0A=
	this.table =3D null;=0A=
	this.element =3D null;=0A=
	this.tbody =3D null;=0A=
	this.firstdayname =3D null;=0A=
	// Combo boxes=0A=
	this.monthsCombo =3D null;=0A=
	this.yearsCombo =3D null;=0A=
	this.hilitedMonth =3D null;=0A=
	this.activeMonth =3D null;=0A=
	this.hilitedYear =3D null;=0A=
	this.activeYear =3D null;=0A=
	// Information=0A=
	this.dateClicked =3D false;=0A=
=0A=
	// one-time initializations=0A=
	if (typeof Calendar._SDN =3D=3D "undefined") {=0A=
		// table of short day names=0A=
		if (typeof Calendar._SDN_len =3D=3D "undefined")=0A=
			Calendar._SDN_len =3D 3;=0A=
		var ar =3D new Array();=0A=
		for (var i =3D 8; i > 0;) {=0A=
			ar[--i] =3D Calendar._DN[i].substr(0, Calendar._SDN_len);=0A=
		}=0A=
		Calendar._SDN =3D ar;=0A=
		// table of short month names=0A=
		if (typeof Calendar._SMN_len =3D=3D "undefined")=0A=
			Calendar._SMN_len =3D 3;=0A=
		ar =3D new Array();=0A=
		for (var i =3D 12; i > 0;) {=0A=
			ar[--i] =3D Calendar._MN[i].substr(0, Calendar._SMN_len);=0A=
		}=0A=
		Calendar._SMN =3D ar;=0A=
	}=0A=
};=0A=
=0A=
// ** constants=0A=
=0A=
/// "static", needed for event handlers.=0A=
Calendar._C =3D null;=0A=
=0A=
/// detect a special case of "web browser"=0A=
Calendar.is_ie =3D ( /msie/i.test(navigator.userAgent) &&=0A=
		   !/opera/i.test(navigator.userAgent) );=0A=
=0A=
Calendar.is_ie5 =3D ( Calendar.is_ie && /msie =
5\.0/i.test(navigator.userAgent) );=0A=
=0A=
/// detect Opera browser=0A=
Calendar.is_opera =3D /opera/i.test(navigator.userAgent);=0A=
=0A=
/// detect KHTML-based browsers=0A=
Calendar.is_khtml =3D =
/Konqueror|Safari|KHTML/i.test(navigator.userAgent);=0A=
=0A=
// BEGIN: UTILITY FUNCTIONS; beware that these might be moved into a =
separate=0A=
//        library, at some point.=0A=
=0A=
Calendar.getAbsolutePos =3D function(el) {=0A=
	var SL =3D 0, ST =3D 0;=0A=
	var is_div =3D /^div$/i.test(el.tagName);=0A=
	if (is_div && el.scrollLeft)=0A=
		SL =3D el.scrollLeft;=0A=
	if (is_div && el.scrollTop)=0A=
		ST =3D el.scrollTop;=0A=
	var r =3D { x: el.offsetLeft - SL, y: el.offsetTop - ST };=0A=
	if (el.offsetParent) {=0A=
		var tmp =3D this.getAbsolutePos(el.offsetParent);=0A=
		r.x +=3D tmp.x;=0A=
		r.y +=3D tmp.y;=0A=
	}=0A=
	return r;=0A=
};=0A=
=0A=
Calendar.isRelated =3D function (el, evt) {=0A=
	var related =3D evt.relatedTarget;=0A=
	if (!related) {=0A=
		var type =3D evt.type;=0A=
		if (type =3D=3D "mouseover") {=0A=
			related =3D evt.fromElement;=0A=
		} else if (type =3D=3D "mouseout") {=0A=
			related =3D evt.toElement;=0A=
		}=0A=
	}=0A=
	while (related) {=0A=
		if (related =3D=3D el) {=0A=
			return true;=0A=
		}=0A=
		related =3D related.parentNode;=0A=
	}=0A=
	return false;=0A=
};=0A=
=0A=
Calendar.removeClass =3D function(el, className) {=0A=
	if (!(el && el.className)) {=0A=
		return;=0A=
	}=0A=
	var cls =3D el.className.split(" ");=0A=
	var ar =3D new Array();=0A=
	for (var i =3D cls.length; i > 0;) {=0A=
		if (cls[--i] !=3D className) {=0A=
			ar[ar.length] =3D cls[i];=0A=
		}=0A=
	}=0A=
	el.className =3D ar.join(" ");=0A=
};=0A=
=0A=
Calendar.addClass =3D function(el, className) {=0A=
	Calendar.removeClass(el, className);=0A=
	el.className +=3D " " + className;=0A=
};=0A=
=0A=
// FIXME: the following 2 functions totally suck, are useless and should =
be replaced immediately.=0A=
Calendar.getElement =3D function(ev) {=0A=
	var f =3D Calendar.is_ie ? window.event.srcElement : ev.currentTarget;=0A=
	while (f.nodeType !=3D 1 || /^div$/i.test(f.tagName))=0A=
		f =3D f.parentNode;=0A=
	return f;=0A=
};=0A=
=0A=
Calendar.getTargetElement =3D function(ev) {=0A=
	var f =3D Calendar.is_ie ? window.event.srcElement : ev.target;=0A=
	while (f.nodeType !=3D 1)=0A=
		f =3D f.parentNode;=0A=
	return f;=0A=
};=0A=
=0A=
Calendar.stopEvent =3D function(ev) {=0A=
	ev || (ev =3D window.event);=0A=
	if (Calendar.is_ie) {=0A=
		ev.cancelBubble =3D true;=0A=
		ev.returnValue =3D false;=0A=
	} else {=0A=
		ev.preventDefault();=0A=
		ev.stopPropagation();=0A=
	}=0A=
	return false;=0A=
};=0A=
=0A=
Calendar.addEvent =3D function(el, evname, func) {=0A=
	if (el.attachEvent) { // IE=0A=
		el.attachEvent("on" + evname, func);=0A=
	} else if (el.addEventListener) { // Gecko / W3C=0A=
		el.addEventListener(evname, func, true);=0A=
	} else {=0A=
		el["on" + evname] =3D func;=0A=
	}=0A=
};=0A=
=0A=
Calendar.removeEvent =3D function(el, evname, func) {=0A=
	if (el.detachEvent) { // IE=0A=
		el.detachEvent("on" + evname, func);=0A=
	} else if (el.removeEventListener) { // Gecko / W3C=0A=
		el.removeEventListener(evname, func, true);=0A=
	} else {=0A=
		el["on" + evname] =3D null;=0A=
	}=0A=
};=0A=
=0A=
Calendar.createElement =3D function(type, parent) {=0A=
	var el =3D null;=0A=
	if (document.createElementNS) {=0A=
		// use the XHTML namespace; IE won't normally get here unless=0A=
		// _they_ "fix" the DOM2 implementation.=0A=
		el =3D document.createElementNS("http://www.w3.org/1999/xhtml", type);=0A=
	} else {=0A=
		el =3D document.createElement(type);=0A=
	}=0A=
	if (typeof parent !=3D "undefined") {=0A=
		parent.appendChild(el);=0A=
	}=0A=
	return el;=0A=
};=0A=
=0A=
// END: UTILITY FUNCTIONS=0A=
=0A=
// BEGIN: CALENDAR STATIC FUNCTIONS=0A=
=0A=
/** Internal -- adds a set of events to make some element behave like a =
button. */=0A=
Calendar._add_evs =3D function(el) {=0A=
	with (Calendar) {=0A=
		addEvent(el, "mouseover", dayMouseOver);=0A=
		addEvent(el, "mousedown", dayMouseDown);=0A=
		addEvent(el, "mouseout", dayMouseOut);=0A=
		if (is_ie) {=0A=
			addEvent(el, "dblclick", dayMouseDblClick);=0A=
			el.setAttribute("unselectable", true);=0A=
		}=0A=
	}=0A=
};=0A=
=0A=
Calendar.findMonth =3D function(el) {=0A=
	if (typeof el.month !=3D "undefined") {=0A=
		return el;=0A=
	} else if (typeof el.parentNode.month !=3D "undefined") {=0A=
		return el.parentNode;=0A=
	}=0A=
	return null;=0A=
};=0A=
=0A=
Calendar.findYear =3D function(el) {=0A=
	if (typeof el.year !=3D "undefined") {=0A=
		return el;=0A=
	} else if (typeof el.parentNode.year !=3D "undefined") {=0A=
		return el.parentNode;=0A=
	}=0A=
	return null;=0A=
};=0A=
=0A=
Calendar.showMonthsCombo =3D function () {=0A=
	var cal =3D Calendar._C;=0A=
	if (!cal) {=0A=
		return false;=0A=
	}=0A=
	var cal =3D cal;=0A=
	var cd =3D cal.activeDiv;=0A=
	var mc =3D cal.monthsCombo;=0A=
	if (cal.hilitedMonth) {=0A=
		Calendar.removeClass(cal.hilitedMonth, "hilite");=0A=
	}=0A=
	if (cal.activeMonth) {=0A=
		Calendar.removeClass(cal.activeMonth, "active");=0A=
	}=0A=
	var mon =3D =
cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()];=0A=
	Calendar.addClass(mon, "active");=0A=
	cal.activeMonth =3D mon;=0A=
	var s =3D mc.style;=0A=
	s.display =3D "block";=0A=
	if (cd.navtype < 0)=0A=
		s.left =3D cd.offsetLeft + "px";=0A=
	else {=0A=
		var mcw =3D mc.offsetWidth;=0A=
		if (typeof mcw =3D=3D "undefined")=0A=
			// Konqueror brain-dead techniques=0A=
			mcw =3D 50;=0A=
		s.left =3D (cd.offsetLeft + cd.offsetWidth - mcw) + "px";=0A=
	}=0A=
	s.top =3D (cd.offsetTop + cd.offsetHeight) + "px";=0A=
};=0A=
=0A=
Calendar.showYearsCombo =3D function (fwd) {=0A=
	var cal =3D Calendar._C;=0A=
	if (!cal) {=0A=
		return false;=0A=
	}=0A=
	var cal =3D cal;=0A=
	var cd =3D cal.activeDiv;=0A=
	var yc =3D cal.yearsCombo;=0A=
	if (cal.hilitedYear) {=0A=
		Calendar.removeClass(cal.hilitedYear, "hilite");=0A=
	}=0A=
	if (cal.activeYear) {=0A=
		Calendar.removeClass(cal.activeYear, "active");=0A=
	}=0A=
	cal.activeYear =3D null;=0A=
	var Y =3D cal.date.getFullYear() + (fwd ? 1 : -1);=0A=
	var yr =3D yc.firstChild;=0A=
	var show =3D false;=0A=
	for (var i =3D 12; i > 0; --i) {=0A=
		if (Y >=3D cal.minYear && Y <=3D cal.maxYear) {=0A=
			yr.innerHTML =3D Y;=0A=
			yr.year =3D Y;=0A=
			yr.style.display =3D "block";=0A=
			show =3D true;=0A=
		} else {=0A=
			yr.style.display =3D "none";=0A=
		}=0A=
		yr =3D yr.nextSibling;=0A=
		Y +=3D fwd ? cal.yearStep : -cal.yearStep;=0A=
	}=0A=
	if (show) {=0A=
		var s =3D yc.style;=0A=
		s.display =3D "block";=0A=
		if (cd.navtype < 0)=0A=
			s.left =3D cd.offsetLeft + "px";=0A=
		else {=0A=
			var ycw =3D yc.offsetWidth;=0A=
			if (typeof ycw =3D=3D "undefined")=0A=
				// Konqueror brain-dead techniques=0A=
				ycw =3D 50;=0A=
			s.left =3D (cd.offsetLeft + cd.offsetWidth - ycw) + "px";=0A=
		}=0A=
		s.top =3D (cd.offsetTop + cd.offsetHeight) + "px";=0A=
	}=0A=
};=0A=
=0A=
// event handlers=0A=
=0A=
Calendar.tableMouseUp =3D function(ev) {=0A=
	var cal =3D Calendar._C;=0A=
	if (!cal) {=0A=
		return false;=0A=
	}=0A=
	if (cal.timeout) {=0A=
		clearTimeout(cal.timeout);=0A=
	}=0A=
	var el =3D cal.activeDiv;=0A=
	if (!el) {=0A=
		return false;=0A=
	}=0A=
	var target =3D Calendar.getTargetElement(ev);=0A=
	ev || (ev =3D window.event);=0A=
	Calendar.removeClass(el, "active");=0A=
	if (target =3D=3D el || target.parentNode =3D=3D el) {=0A=
		Calendar.cellClick(el, ev);=0A=
	}=0A=
	var mon =3D Calendar.findMonth(target);=0A=
	var date =3D null;=0A=
	if (mon) {=0A=
		date =3D new Date(cal.date);=0A=
		if (mon.month !=3D date.getMonth()) {=0A=
			date.setMonth(mon.month);=0A=
			cal.setDate(date);=0A=
			cal.dateClicked =3D false;=0A=
			cal.callHandler();=0A=
		}=0A=
	} else {=0A=
		var year =3D Calendar.findYear(target);=0A=
		if (year) {=0A=
			date =3D new Date(cal.date);=0A=
			if (year.year !=3D date.getFullYear()) {=0A=
				date.setFullYear(year.year);=0A=
				cal.setDate(date);=0A=
				cal.dateClicked =3D false;=0A=
				cal.callHandler();=0A=
			}=0A=
		}=0A=
	}=0A=
	with (Calendar) {=0A=
		removeEvent(document, "mouseup", tableMouseUp);=0A=
		removeEvent(document, "mouseover", tableMouseOver);=0A=
		removeEvent(document, "mousemove", tableMouseOver);=0A=
		cal._hideCombos();=0A=
		_C =3D null;=0A=
		return stopEvent(ev);=0A=
	}=0A=
};=0A=
=0A=
Calendar.tableMouseOver =3D function (ev) {=0A=
	var cal =3D Calendar._C;=0A=
	if (!cal) {=0A=
		return;=0A=
	}=0A=
	var el =3D cal.activeDiv;=0A=
	var target =3D Calendar.getTargetElement(ev);=0A=
	if (target =3D=3D el || target.parentNode =3D=3D el) {=0A=
		Calendar.addClass(el, "hilite active");=0A=
		Calendar.addClass(el.parentNode, "rowhilite");=0A=
	} else {=0A=
		if (typeof el.navtype =3D=3D "undefined" || (el.navtype !=3D 50 && =
(el.navtype =3D=3D 0 || Math.abs(el.navtype) > 2)))=0A=
			Calendar.removeClass(el, "active");=0A=
		Calendar.removeClass(el, "hilite");=0A=
		Calendar.removeClass(el.parentNode, "rowhilite");=0A=
	}=0A=
	ev || (ev =3D window.event);=0A=
	if (el.navtype =3D=3D 50 && target !=3D el) {=0A=
		var pos =3D Calendar.getAbsolutePos(el);=0A=
		var w =3D el.offsetWidth;=0A=
		var x =3D ev.clientX;=0A=
		var dx;=0A=
		var decrease =3D true;=0A=
		if (x > pos.x + w) {=0A=
			dx =3D x - pos.x - w;=0A=
			decrease =3D false;=0A=
		} else=0A=
			dx =3D pos.x - x;=0A=
=0A=
		if (dx < 0) dx =3D 0;=0A=
		var range =3D el._range;=0A=
		var current =3D el._current;=0A=
		var count =3D Math.floor(dx / 10) % range.length;=0A=
		for (var i =3D range.length; --i >=3D 0;)=0A=
			if (range[i] =3D=3D current)=0A=
				break;=0A=
		while (count-- > 0)=0A=
			if (decrease) {=0A=
				if (--i < 0)=0A=
					i =3D range.length - 1;=0A=
			} else if ( ++i >=3D range.length )=0A=
				i =3D 0;=0A=
		var newval =3D range[i];=0A=
		el.innerHTML =3D newval;=0A=
=0A=
		cal.onUpdateTime();=0A=
	}=0A=
	var mon =3D Calendar.findMonth(target);=0A=
	if (mon) {=0A=
		if (mon.month !=3D cal.date.getMonth()) {=0A=
			if (cal.hilitedMonth) {=0A=
				Calendar.removeClass(cal.hilitedMonth, "hilite");=0A=
			}=0A=
			Calendar.addClass(mon, "hilite");=0A=
			cal.hilitedMonth =3D mon;=0A=
		} else if (cal.hilitedMonth) {=0A=
			Calendar.removeClass(cal.hilitedMonth, "hilite");=0A=
		}=0A=
	} else {=0A=
		if (cal.hilitedMonth) {=0A=
			Calendar.removeClass(cal.hilitedMonth, "hilite");=0A=
		}=0A=
		var year =3D Calendar.findYear(target);=0A=
		if (year) {=0A=
			if (year.year !=3D cal.date.getFullYear()) {=0A=
				if (cal.hilitedYear) {=0A=
					Calendar.removeClass(cal.hilitedYear, "hilite");=0A=
				}=0A=
				Calendar.addClass(year, "hilite");=0A=
				cal.hilitedYear =3D year;=0A=
			} else if (cal.hilitedYear) {=0A=
				Calendar.removeClass(cal.hilitedYear, "hilite");=0A=
			}=0A=
		} else if (cal.hilitedYear) {=0A=
			Calendar.removeClass(cal.hilitedYear, "hilite");=0A=
		}=0A=
	}=0A=
	return Calendar.stopEvent(ev);=0A=
};=0A=
=0A=
Calendar.tableMouseDown =3D function (ev) {=0A=
	if (Calendar.getTargetElement(ev) =3D=3D Calendar.getElement(ev)) {=0A=
		return Calendar.stopEvent(ev);=0A=
	}=0A=
};=0A=
=0A=
Calendar.calDragIt =3D function (ev) {=0A=
	var cal =3D Calendar._C;=0A=
	if (!(cal && cal.dragging)) {=0A=
		return false;=0A=
	}=0A=
	var posX;=0A=
	var posY;=0A=
	if (Calendar.is_ie) {=0A=
		posY =3D window.event.clientY + document.body.scrollTop;=0A=
		posX =3D window.event.clientX + document.body.scrollLeft;=0A=
	} else {=0A=
		posX =3D ev.pageX;=0A=
		posY =3D ev.pageY;=0A=
	}=0A=
	cal.hideShowCovered();=0A=
	var st =3D cal.element.style;=0A=
	st.left =3D (posX - cal.xOffs) + "px";=0A=
	st.top =3D (posY - cal.yOffs) + "px";=0A=
	return Calendar.stopEvent(ev);=0A=
};=0A=
=0A=
Calendar.calDragEnd =3D function (ev) {=0A=
	var cal =3D Calendar._C;=0A=
	if (!cal) {=0A=
		return false;=0A=
	}=0A=
	cal.dragging =3D false;=0A=
	with (Calendar) {=0A=
		removeEvent(document, "mousemove", calDragIt);=0A=
		removeEvent(document, "mouseup", calDragEnd);=0A=
		tableMouseUp(ev);=0A=
	}=0A=
	cal.hideShowCovered();=0A=
};=0A=
=0A=
Calendar.dayMouseDown =3D function(ev) {=0A=
	var el =3D Calendar.getElement(ev);=0A=
	if (el.disabled) {=0A=
		return false;=0A=
	}=0A=
	var cal =3D el.calendar;=0A=
	cal.activeDiv =3D el;=0A=
	Calendar._C =3D cal;=0A=
	if (el.navtype !=3D 300) with (Calendar) {=0A=
		if (el.navtype =3D=3D 50) {=0A=
			el._current =3D el.innerHTML;=0A=
			addEvent(document, "mousemove", tableMouseOver);=0A=
		} else=0A=
			addEvent(document, Calendar.is_ie5 ? "mousemove" : "mouseover", =
tableMouseOver);=0A=
		addClass(el, "hilite active");=0A=
		addEvent(document, "mouseup", tableMouseUp);=0A=
	} else if (cal.isPopup) {=0A=
		cal._dragStart(ev);=0A=
	}=0A=
	if (el.navtype =3D=3D -1 || el.navtype =3D=3D 1) {=0A=
		if (cal.timeout) clearTimeout(cal.timeout);=0A=
		cal.timeout =3D setTimeout("Calendar.showMonthsCombo()", 250);=0A=
	} else if (el.navtype =3D=3D -2 || el.navtype =3D=3D 2) {=0A=
		if (cal.timeout) clearTimeout(cal.timeout);=0A=
		cal.timeout =3D setTimeout((el.navtype > 0) ? =
"Calendar.showYearsCombo(true)" : "Calendar.showYearsCombo(false)", 250);=0A=
	} else {=0A=
		cal.timeout =3D null;=0A=
	}=0A=
	return Calendar.stopEvent(ev);=0A=
};=0A=
=0A=
Calendar.dayMouseDblClick =3D function(ev) {=0A=
	Calendar.cellClick(Calendar.getElement(ev), ev || window.event);=0A=
	if (Calendar.is_ie) {=0A=
		document.selection.empty();=0A=
	}=0A=
};=0A=
=0A=
Calendar.dayMouseOver =3D function(ev) {=0A=
	var el =3D Calendar.getElement(ev);=0A=
	if (Calendar.isRelated(el, ev) || Calendar._C || el.disabled) {=0A=
		return false;=0A=
	}=0A=
	if (el.ttip) {=0A=
		if (el.ttip.substr(0, 1) =3D=3D "_") {=0A=
			el.ttip =3D el.caldate.print(el.calendar.ttDateFormat) + =
el.ttip.substr(1);=0A=
		}=0A=
		el.calendar.tooltips.innerHTML =3D el.ttip;=0A=
	}=0A=
	if (el.navtype !=3D 300) {=0A=
		Calendar.addClass(el, "hilite");=0A=
		if (el.caldate) {=0A=
			Calendar.addClass(el.parentNode, "rowhilite");=0A=
		}=0A=
	}=0A=
	return Calendar.stopEvent(ev);=0A=
};=0A=
=0A=
Calendar.dayMouseOut =3D function(ev) {=0A=
	with (Calendar) {=0A=
		var el =3D getElement(ev);=0A=
		if (isRelated(el, ev) || _C || el.disabled)=0A=
			return false;=0A=
		removeClass(el, "hilite");=0A=
		if (el.caldate)=0A=
			removeClass(el.parentNode, "rowhilite");=0A=
		if (el.calendar)=0A=
			el.calendar.tooltips.innerHTML =3D _TT["SEL_DATE"];=0A=
		return stopEvent(ev);=0A=
	}=0A=
};=0A=
=0A=
/**=0A=
 *  A generic "click" handler :) handles all types of buttons defined in =
this=0A=
 *  calendar.=0A=
 */=0A=
Calendar.cellClick =3D function(el, ev) {=0A=
	var cal =3D el.calendar;=0A=
	var closing =3D false;=0A=
	var newdate =3D false;=0A=
	var date =3D null;=0A=
	if (typeof el.navtype =3D=3D "undefined") {=0A=
		if (cal.currentDateEl) {=0A=
			Calendar.removeClass(cal.currentDateEl, "selected");=0A=
			Calendar.addClass(el, "selected");=0A=
			closing =3D (cal.currentDateEl =3D=3D el);=0A=
			if (!closing) {=0A=
				cal.currentDateEl =3D el;=0A=
			}=0A=
		}=0A=
		cal.date.setDateOnly(el.caldate);=0A=
		date =3D cal.date;=0A=
		var other_month =3D !(cal.dateClicked =3D !el.otherMonth);=0A=
		if (!other_month && !cal.currentDateEl)=0A=
			cal._toggleMultipleDate(new Date(date));=0A=
		else=0A=
			newdate =3D !el.disabled;=0A=
		// a date was clicked=0A=
		if (other_month)=0A=
			cal._init(cal.firstDayOfWeek, date);=0A=
	} else {=0A=
		if (el.navtype =3D=3D 200) {=0A=
			Calendar.removeClass(el, "hilite");=0A=
			cal.callCloseHandler();=0A=
			return;=0A=
		}=0A=
		date =3D new Date(cal.date);=0A=
		if (el.navtype =3D=3D 0)=0A=
			date.setDateOnly(new Date()); // TODAY=0A=
		// unless "today" was clicked, we assume no date was clicked so=0A=
		// the selected handler will know not to close the calenar when=0A=
		// in single-click mode.=0A=
		// cal.dateClicked =3D (el.navtype =3D=3D 0);=0A=
		cal.dateClicked =3D false;=0A=
		var year =3D date.getFullYear();=0A=
		var mon =3D date.getMonth();=0A=
		function setMonth(m) {=0A=
			var day =3D date.getDate();=0A=
			var max =3D date.getMonthDays(m);=0A=
			if (day > max) {=0A=
				date.setDate(max);=0A=
			}=0A=
			date.setMonth(m);=0A=
		};=0A=
		switch (el.navtype) {=0A=
		    case 400:=0A=
			Calendar.removeClass(el, "hilite");=0A=
			var text =3D Calendar._TT["ABOUT"];=0A=
			if (typeof text !=3D "undefined") {=0A=
				text +=3D cal.showsTime ? Calendar._TT["ABOUT_TIME"] : "";=0A=
			} else {=0A=
				// FIXME: this should be removed as soon as lang files get updated!=0A=
				text =3D "Help and about box text is not translated into this =
language.\n" +=0A=
					"If you know this language and you feel generous please update\n" +=0A=
					"the corresponding file in \"lang\" subdir to match =
calendar-en.js\n" +=0A=
					"and send it back to <mihai_bazon@yahoo.com> to get it into the =
distribution  ;-)\n\n" +=0A=
					"Thank you!\n" +=0A=
					"http://dynarch.com/mishoo/calendar.epl\n";=0A=
			}=0A=
			alert(text);=0A=
			return;=0A=
		    case -2:=0A=
			if (year > cal.minYear) {=0A=
				date.setFullYear(year - 1);=0A=
			}=0A=
			break;=0A=
		    case -1:=0A=
			if (mon > 0) {=0A=
				setMonth(mon - 1);=0A=
			} else if (year-- > cal.minYear) {=0A=
				date.setFullYear(year);=0A=
				setMonth(11);=0A=
			}=0A=
			break;=0A=
		    case 1:=0A=
			if (mon < 11) {=0A=
				setMonth(mon + 1);=0A=
			} else if (year < cal.maxYear) {=0A=
				date.setFullYear(year + 1);=0A=
				setMonth(0);=0A=
			}=0A=
			break;=0A=
		    case 2:=0A=
			if (year < cal.maxYear) {=0A=
				date.setFullYear(year + 1);=0A=
			}=0A=
			break;=0A=
		    case 100:=0A=
			cal.setFirstDayOfWeek(el.fdow);=0A=
			return;=0A=
		    case 50:=0A=
			var range =3D el._range;=0A=
			var current =3D el.innerHTML;=0A=
			for (var i =3D range.length; --i >=3D 0;)=0A=
				if (range[i] =3D=3D current)=0A=
					break;=0A=
			if (ev && ev.shiftKey) {=0A=
				if (--i < 0)=0A=
					i =3D range.length - 1;=0A=
			} else if ( ++i >=3D range.length )=0A=
				i =3D 0;=0A=
			var newval =3D range[i];=0A=
			el.innerHTML =3D newval;=0A=
			cal.onUpdateTime();=0A=
			return;=0A=
		    case 0:=0A=
			// TODAY will bring us here=0A=
			if ((typeof cal.getDateStatus =3D=3D "function") &&=0A=
			    cal.getDateStatus(date, date.getFullYear(), date.getMonth(), =
date.getDate())) {=0A=
				return false;=0A=
			}=0A=
			break;=0A=
		}=0A=
		if (!date.equalsTo(cal.date)) {=0A=
			cal.setDate(date);=0A=
			newdate =3D true;=0A=
		} else if (el.navtype =3D=3D 0)=0A=
			newdate =3D closing =3D true;=0A=
	}=0A=
	if (newdate) {=0A=
		ev && cal.callHandler();=0A=
	}=0A=
	if (closing) {=0A=
		Calendar.removeClass(el, "hilite");=0A=
		ev && cal.callCloseHandler();=0A=
	}=0A=
};=0A=
=0A=
// END: CALENDAR STATIC FUNCTIONS=0A=
=0A=
// BEGIN: CALENDAR OBJECT FUNCTIONS=0A=
=0A=
/**=0A=
 *  This function creates the calendar inside the given parent.  If _par =
is=0A=
 *  null than it creates a popup calendar inside the BODY element.  If =
_par is=0A=
 *  an element, be it BODY, then it creates a non-popup calendar (still=0A=
 *  hidden).  Some properties need to be set before calling this =
function.=0A=
 */=0A=
Calendar.prototype.create =3D function (_par) {=0A=
	var parent =3D null;=0A=
	if (! _par) {=0A=
		// default parent is the document body, in which case we create=0A=
		// a popup calendar.=0A=
		parent =3D document.getElementsByTagName("body")[0];=0A=
		this.isPopup =3D true;=0A=
	} else {=0A=
		parent =3D _par;=0A=
		this.isPopup =3D false;=0A=
	}=0A=
	this.date =3D this.dateStr ? new Date(this.dateStr) : new Date();=0A=
=0A=
	var table =3D Calendar.createElement("table");=0A=
	this.table =3D table;=0A=
	table.cellSpacing =3D 0;=0A=
	table.cellPadding =3D 0;=0A=
	table.calendar =3D this;=0A=
	Calendar.addEvent(table, "mousedown", Calendar.tableMouseDown);=0A=
=0A=
	var div =3D Calendar.createElement("div");=0A=
	this.element =3D div;=0A=
	div.className =3D "calendar";=0A=
	if (this.isPopup) {=0A=
		div.style.position =3D "absolute";=0A=
		div.style.display =3D "none";=0A=
	}=0A=
	div.appendChild(table);=0A=
=0A=
	var thead =3D Calendar.createElement("thead", table);=0A=
	var cell =3D null;=0A=
	var row =3D null;=0A=
=0A=
	var cal =3D this;=0A=
	var hh =3D function (text, cs, navtype) {=0A=
		cell =3D Calendar.createElement("td", row);=0A=
		cell.colSpan =3D cs;=0A=
		cell.className =3D "button";=0A=
		if (navtype !=3D 0 && Math.abs(navtype) <=3D 2)=0A=
			cell.className +=3D " nav";=0A=
		Calendar._add_evs(cell);=0A=
		cell.calendar =3D cal;=0A=
		cell.navtype =3D navtype;=0A=
		cell.innerHTML =3D "<div unselectable=3D'on'>" + text + "</div>";=0A=
		return cell;=0A=
	};=0A=
=0A=
	row =3D Calendar.createElement("tr", thead);=0A=
	var title_length =3D 6;=0A=
	(this.isPopup) && --title_length;=0A=
	(this.weekNumbers) && ++title_length;=0A=
=0A=
	hh("?", 1, 400).ttip =3D Calendar._TT["INFO"];=0A=
	this.title =3D hh("", title_length, 300);=0A=
	this.title.className =3D "title";=0A=
	if (this.isPopup) {=0A=
		this.title.ttip =3D Calendar._TT["DRAG_TO_MOVE"];=0A=
		this.title.style.cursor =3D "move";=0A=
		hh("×", 1, 200).ttip =3D Calendar._TT["CLOSE"];=0A=
	}=0A=
=0A=
	row =3D Calendar.createElement("tr", thead);=0A=
	row.className =3D "headrow";=0A=
=0A=
	this._nav_py =3D hh("«", 1, -2);=0A=
	this._nav_py.ttip =3D Calendar._TT["PREV_YEAR"];=0A=
=0A=
	this._nav_pm =3D hh("‹", 1, -1);=0A=
	this._nav_pm.ttip =3D Calendar._TT["PREV_MONTH"];=0A=
=0A=
	this._nav_now =3D hh(Calendar._TT["TODAY"], this.weekNumbers ? 4 : 3, =
0);=0A=
	this._nav_now.ttip =3D Calendar._TT["GO_TODAY"];=0A=
=0A=
	this._nav_nm =3D hh("›", 1, 1);=0A=
	this._nav_nm.ttip =3D Calendar._TT["NEXT_MONTH"];=0A=
=0A=
	this._nav_ny =3D hh("»", 1, 2);=0A=
	this._nav_ny.ttip =3D Calendar._TT["NEXT_YEAR"];=0A=
=0A=
	// day names=0A=
	row =3D Calendar.createElement("tr", thead);=0A=
	row.className =3D "daynames";=0A=
	if (this.weekNumbers) {=0A=
		cell =3D Calendar.createElement("td", row);=0A=
		cell.className =3D "name wn";=0A=
		cell.innerHTML =3D Calendar._TT["WK"];=0A=
	}=0A=
	for (var i =3D 7; i > 0; --i) {=0A=
		cell =3D Calendar.createElement("td", row);=0A=
		if (!i) {=0A=
			cell.navtype =3D 100;=0A=
			cell.calendar =3D this;=0A=
			Calendar._add_evs(cell);=0A=
		}=0A=
	}=0A=
	this.firstdayname =3D (this.weekNumbers) ? row.firstChild.nextSibling : =
row.firstChild;=0A=
	this._displayWeekdays();=0A=
=0A=
	var tbody =3D Calendar.createElement("tbody", table);=0A=
	this.tbody =3D tbody;=0A=
=0A=
	for (i =3D 6; i > 0; --i) {=0A=
		row =3D Calendar.createElement("tr", tbody);=0A=
		if (this.weekNumbers) {=0A=
			cell =3D Calendar.createElement("td", row);=0A=
		}=0A=
		for (var j =3D 7; j > 0; --j) {=0A=
			cell =3D Calendar.createElement("td", row);=0A=
			cell.calendar =3D this;=0A=
			Calendar._add_evs(cell);=0A=
		}=0A=
	}=0A=
=0A=
	if (this.showsTime) {=0A=
		row =3D Calendar.createElement("tr", tbody);=0A=
		row.className =3D "time";=0A=
=0A=
		cell =3D Calendar.createElement("td", row);=0A=
		cell.className =3D "time";=0A=
		cell.colSpan =3D 2;=0A=
		cell.innerHTML =3D Calendar._TT["TIME"] || " ";=0A=
=0A=
		cell =3D Calendar.createElement("td", row);=0A=
		cell.className =3D "time";=0A=
		cell.colSpan =3D this.weekNumbers ? 4 : 3;=0A=
=0A=
		(function(){=0A=
			function makeTimePart(className, init, range_start, range_end) {=0A=
				var part =3D Calendar.createElement("span", cell);=0A=
				part.className =3D className;=0A=
				part.innerHTML =3D init;=0A=
				part.calendar =3D cal;=0A=
				part.ttip =3D Calendar._TT["TIME_PART"];=0A=
				part.navtype =3D 50;=0A=
				part._range =3D [];=0A=
				if (typeof range_start !=3D "number")=0A=
					part._range =3D range_start;=0A=
				else {=0A=
					for (var i =3D range_start; i <=3D range_end; ++i) {=0A=
						var txt;=0A=
						if (i < 10 && range_end >=3D 10) txt =3D '0' + i;=0A=
						else txt =3D '' + i;=0A=
						part._range[part._range.length] =3D txt;=0A=
					}=0A=
				}=0A=
				Calendar._add_evs(part);=0A=
				return part;=0A=
			};=0A=
			var hrs =3D cal.date.getHours();=0A=
			var mins =3D cal.date.getMinutes();=0A=
			var t12 =3D !cal.time24;=0A=
			var pm =3D (hrs > 12);=0A=
			if (t12 && pm) hrs -=3D 12;=0A=
			var H =3D makeTimePart("hour", hrs, t12 ? 1 : 0, t12 ? 12 : 23);=0A=
			var span =3D Calendar.createElement("span", cell);=0A=
			span.innerHTML =3D ":";=0A=
			span.className =3D "colon";=0A=
			var M =3D makeTimePart("minute", mins, 0, 59);=0A=
			var AP =3D null;=0A=
			cell =3D Calendar.createElement("td", row);=0A=
			cell.className =3D "time";=0A=
			cell.colSpan =3D 2;=0A=
			if (t12)=0A=
				AP =3D makeTimePart("ampm", pm ? "pm" : "am", ["am", "pm"]);=0A=
			else=0A=
				cell.innerHTML =3D " ";=0A=
=0A=
			cal.onSetTime =3D function() {=0A=
				var pm, hrs =3D this.date.getHours(),=0A=
					mins =3D this.date.getMinutes();=0A=
				if (t12) {=0A=
					pm =3D (hrs >=3D 12);=0A=
					if (pm) hrs -=3D 12;=0A=
					if (hrs =3D=3D 0) hrs =3D 12;=0A=
					AP.innerHTML =3D pm ? "pm" : "am";=0A=
				}=0A=
				H.innerHTML =3D (hrs < 10) ? ("0" + hrs) : hrs;=0A=
				M.innerHTML =3D (mins < 10) ? ("0" + mins) : mins;=0A=
			};=0A=
=0A=
			cal.onUpdateTime =3D function() {=0A=
				var date =3D this.date;=0A=
				var h =3D parseInt(H.innerHTML, 10);=0A=
				if (t12) {=0A=
					if (/pm/i.test(AP.innerHTML) && h < 12)=0A=
						h +=3D 12;=0A=
					else if (/am/i.test(AP.innerHTML) && h =3D=3D 12)=0A=
						h =3D 0;=0A=
				}=0A=
				var d =3D date.getDate();=0A=
				var m =3D date.getMonth();=0A=
				var y =3D date.getFullYear();=0A=
				date.setHours(h);=0A=
				date.setMinutes(parseInt(M.innerHTML, 10));=0A=
				date.setFullYear(y);=0A=
				date.setMonth(m);=0A=
				date.setDate(d);=0A=
				this.dateClicked =3D false;=0A=
				this.callHandler();=0A=
			};=0A=
		})();=0A=
	} else {=0A=
		this.onSetTime =3D this.onUpdateTime =3D function() {};=0A=
	}=0A=
=0A=
	var tfoot =3D Calendar.createElement("tfoot", table);=0A=
=0A=
	row =3D Calendar.createElement("tr", tfoot);=0A=
	row.className =3D "footrow";=0A=
=0A=
	cell =3D hh(Calendar._TT["SEL_DATE"], this.weekNumbers ? 8 : 7, 300);=0A=
	cell.className =3D "ttip";=0A=
	if (this.isPopup) {=0A=
		cell.ttip =3D Calendar._TT["DRAG_TO_MOVE"];=0A=
		cell.style.cursor =3D "move";=0A=
	}=0A=
	this.tooltips =3D cell;=0A=
=0A=
	div =3D Calendar.createElement("div", this.element);=0A=
	this.monthsCombo =3D div;=0A=
	div.className =3D "combo";=0A=
	for (i =3D 0; i < Calendar._MN.length; ++i) {=0A=
		var mn =3D Calendar.createElement("div");=0A=
		mn.className =3D Calendar.is_ie ? "label-IEfix" : "label";=0A=
		mn.month =3D i;=0A=
		mn.innerHTML =3D Calendar._SMN[i];=0A=
		div.appendChild(mn);=0A=
	}=0A=
=0A=
	div =3D Calendar.createElement("div", this.element);=0A=
	this.yearsCombo =3D div;=0A=
	div.className =3D "combo";=0A=
	for (i =3D 12; i > 0; --i) {=0A=
		var yr =3D Calendar.createElement("div");=0A=
		yr.className =3D Calendar.is_ie ? "label-IEfix" : "label";=0A=
		div.appendChild(yr);=0A=
	}=0A=
=0A=
	this._init(this.firstDayOfWeek, this.date);=0A=
	parent.appendChild(this.element);=0A=
};=0A=
=0A=
/** keyboard navigation, only for popup calendars */=0A=
Calendar._keyEvent =3D function(ev) {=0A=
	var cal =3D window._dynarch_popupCalendar;=0A=
	if (!cal || cal.multiple)=0A=
		return false;=0A=
	(Calendar.is_ie) && (ev =3D window.event);=0A=
	var act =3D (Calendar.is_ie || ev.type =3D=3D "keypress"),=0A=
		K =3D ev.keyCode;=0A=
	if (ev.ctrlKey) {=0A=
		switch (K) {=0A=
		    case 37: // KEY left=0A=
			act && Calendar.cellClick(cal._nav_pm);=0A=
			break;=0A=
		    case 38: // KEY up=0A=
			act && Calendar.cellClick(cal._nav_py);=0A=
			break;=0A=
		    case 39: // KEY right=0A=
			act && Calendar.cellClick(cal._nav_nm);=0A=
			break;=0A=
		    case 40: // KEY down=0A=
			act && Calendar.cellClick(cal._nav_ny);=0A=
			break;=0A=
		    default:=0A=
			return false;=0A=
		}=0A=
	} else switch (K) {=0A=
	    case 32: // KEY space (now)=0A=
		Calendar.cellClick(cal._nav_now);=0A=
		break;=0A=
	    case 27: // KEY esc=0A=
		act && cal.callCloseHandler();=0A=
		break;=0A=
	    case 37: // KEY left=0A=
	    case 38: // KEY up=0A=
	    case 39: // KEY right=0A=
	    case 40: // KEY down=0A=
		if (act) {=0A=
			var prev, x, y, ne, el, step;=0A=
			prev =3D K =3D=3D 37 || K =3D=3D 38;=0A=
			step =3D (K =3D=3D 37 || K =3D=3D 39) ? 1 : 7;=0A=
			function setVars() {=0A=
				el =3D cal.currentDateEl;=0A=
				var p =3D el.pos;=0A=
				x =3D p & 15;=0A=
				y =3D p >> 4;=0A=
				ne =3D cal.ar_days[y][x];=0A=
			};setVars();=0A=
			function prevMonth() {=0A=
				var date =3D new Date(cal.date);=0A=
				date.setDate(date.getDate() - step);=0A=
				cal.setDate(date);=0A=
			};=0A=
			function nextMonth() {=0A=
				var date =3D new Date(cal.date);=0A=
				date.setDate(date.getDate() + step);=0A=
				cal.setDate(date);=0A=
			};=0A=
			while (1) {=0A=
				switch (K) {=0A=
				    case 37: // KEY left=0A=
					if (--x >=3D 0)=0A=
						ne =3D cal.ar_days[y][x];=0A=
					else {=0A=
						x =3D 6;=0A=
						K =3D 38;=0A=
						continue;=0A=
					}=0A=
					break;=0A=
				    case 38: // KEY up=0A=
					if (--y >=3D 0)=0A=
						ne =3D cal.ar_days[y][x];=0A=
					else {=0A=
						prevMonth();=0A=
						setVars();=0A=
					}=0A=
					break;=0A=
				    case 39: // KEY right=0A=
					if (++x < 7)=0A=
						ne =3D cal.ar_days[y][x];=0A=
					else {=0A=
						x =3D 0;=0A=
						K =3D 40;=0A=
						continue;=0A=
					}=0A=
					break;=0A=
				    case 40: // KEY down=0A=
					if (++y < cal.ar_days.length)=0A=
						ne =3D cal.ar_days[y][x];=0A=
					else {=0A=
						nextMonth();=0A=
						setVars();=0A=
					}=0A=
					break;=0A=
				}=0A=
				break;=0A=
			}=0A=
			if (ne) {=0A=
				if (!ne.disabled)=0A=
					Calendar.cellClick(ne);=0A=
				else if (prev)=0A=
					prevMonth();=0A=
				else=0A=
					nextMonth();=0A=
			}=0A=
		}=0A=
		break;=0A=
	    case 13: // KEY enter=0A=
		if (act)=0A=
			Calendar.cellClick(cal.currentDateEl, ev);=0A=
		break;=0A=
	    default:=0A=
		return false;=0A=
	}=0A=
	return Calendar.stopEvent(ev);=0A=
};=0A=
=0A=
/**=0A=
 *  (RE)Initializes the calendar to the given date and firstDayOfWeek=0A=
 */=0A=
Calendar.prototype._init =3D function (firstDayOfWeek, date) {=0A=
	var today =3D new Date(),=0A=
		TY =3D today.getFullYear(),=0A=
		TM =3D today.getMonth(),=0A=
		TD =3D today.getDate();=0A=
	this.table.style.visibility =3D "hidden";=0A=
	var year =3D date.getFullYear();=0A=
	if (year < this.minYear) {=0A=
		year =3D this.minYear;=0A=
		date.setFullYear(year);=0A=
	} else if (year > this.maxYear) {=0A=
		year =3D this.maxYear;=0A=
		date.setFullYear(year);=0A=
	}=0A=
	this.firstDayOfWeek =3D firstDayOfWeek;=0A=
	this.date =3D new Date(date);=0A=
	var month =3D date.getMonth();=0A=
	var mday =3D date.getDate();=0A=
	var no_days =3D date.getMonthDays();=0A=
=0A=
	// calendar voodoo for computing the first day that would actually be=0A=
	// displayed in the calendar, even if it's from the previous month.=0A=
	// WARNING: this is magic. ;-)=0A=
	date.setDate(1);=0A=
	var day1 =3D (date.getDay() - this.firstDayOfWeek) % 7;=0A=
	if (day1 < 0)=0A=
		day1 +=3D 7;=0A=
	date.setDate(-day1);=0A=
	date.setDate(date.getDate() + 1);=0A=
=0A=
	var row =3D this.tbody.firstChild;=0A=
	var MN =3D Calendar._SMN[month];=0A=
	var ar_days =3D this.ar_days =3D new Array();=0A=
	var weekend =3D Calendar._TT["WEEKEND"];=0A=
	var dates =3D this.multiple ? (this.datesCells =3D {}) : null;=0A=
	for (var i =3D 0; i < 6; ++i, row =3D row.nextSibling) {=0A=
		var cell =3D row.firstChild;=0A=
		if (this.weekNumbers) {=0A=
			cell.className =3D "day wn";=0A=
			cell.innerHTML =3D date.getWeekNumber();=0A=
			cell =3D cell.nextSibling;=0A=
		}=0A=
		row.className =3D "daysrow";=0A=
		var hasdays =3D false, iday, dpos =3D ar_days[i] =3D [];=0A=
		for (var j =3D 0; j < 7; ++j, cell =3D cell.nextSibling, =
date.setDate(iday + 1)) {=0A=
			iday =3D date.getDate();=0A=
			var wday =3D date.getDay();=0A=
			cell.className =3D "day";=0A=
			cell.pos =3D i << 4 | j;=0A=
			dpos[j] =3D cell;=0A=
			var current_month =3D (date.getMonth() =3D=3D month);=0A=
			if (!current_month) {=0A=
				if (this.showsOtherMonths) {=0A=
					cell.className +=3D " othermonth";=0A=
					cell.otherMonth =3D true;=0A=
				} else {=0A=
					cell.className =3D "emptycell";=0A=
					cell.innerHTML =3D " ";=0A=
					cell.disabled =3D true;=0A=
					continue;=0A=
				}=0A=
			} else {=0A=
				cell.otherMonth =3D false;=0A=
				hasdays =3D true;=0A=
			}=0A=
			cell.disabled =3D false;=0A=
			cell.innerHTML =3D this.getDateText ? this.getDateText(date, iday) : =
iday;=0A=
			if (dates)=0A=
				dates[date.print("%Y%m%d")] =3D cell;=0A=
			if (this.getDateStatus) {=0A=
				var status =3D this.getDateStatus(date, year, month, iday);=0A=
				if (this.getDateToolTip) {=0A=
					var toolTip =3D this.getDateToolTip(date, year, month, iday);=0A=
					if (toolTip)=0A=
						cell.title =3D toolTip;=0A=
				}=0A=
				if (status =3D=3D=3D true) {=0A=
					cell.className +=3D " disabled";=0A=
					cell.disabled =3D true;=0A=
				} else {=0A=
					if (/disabled/i.test(status))=0A=
						cell.disabled =3D true;=0A=
					cell.className +=3D " " + status;=0A=
				}=0A=
			}=0A=
			if (!cell.disabled) {=0A=
				cell.caldate =3D new Date(date);=0A=
				cell.ttip =3D "_";=0A=
				if (!this.multiple && current_month=0A=
				    && iday =3D=3D mday && this.hiliteToday) {=0A=
					cell.className +=3D " selected";=0A=
					this.currentDateEl =3D cell;=0A=
				}=0A=
				if (date.getFullYear() =3D=3D TY &&=0A=
				    date.getMonth() =3D=3D TM &&=0A=
				    iday =3D=3D TD) {=0A=
					cell.className +=3D " today";=0A=
					cell.ttip +=3D Calendar._TT["PART_TODAY"];=0A=
				}=0A=
				if (weekend.indexOf(wday.toString()) !=3D -1)=0A=
					cell.className +=3D cell.otherMonth ? " oweekend" : " weekend";=0A=
			}=0A=
		}=0A=
		if (!(hasdays || this.showsOtherMonths))=0A=
			row.className =3D "emptyrow";=0A=
	}=0A=
	this.title.innerHTML =3D Calendar._MN[month] + ", " + year;=0A=
	this.onSetTime();=0A=
	this.table.style.visibility =3D "visible";=0A=
	this._initMultipleDates();=0A=
	// PROFILE=0A=
	// this.tooltips.innerHTML =3D "Generated in " + ((new Date()) - today) =
+ " ms";=0A=
};=0A=
=0A=
Calendar.prototype._initMultipleDates =3D function() {=0A=
	if (this.multiple) {=0A=
		for (var i in this.multiple) {=0A=
			var cell =3D this.datesCells[i];=0A=
			var d =3D this.multiple[i];=0A=
			if (!d)=0A=
				continue;=0A=
			if (cell)=0A=
				cell.className +=3D " selected";=0A=
		}=0A=
	}=0A=
};=0A=
=0A=
Calendar.prototype._toggleMultipleDate =3D function(date) {=0A=
	if (this.multiple) {=0A=
		var ds =3D date.print("%Y%m%d");=0A=
		var cell =3D this.datesCells[ds];=0A=
		if (cell) {=0A=
			var d =3D this.multiple[ds];=0A=
			if (!d) {=0A=
				Calendar.addClass(cell, "selected");=0A=
				this.multiple[ds] =3D date;=0A=
			} else {=0A=
				Calendar.removeClass(cell, "selected");=0A=
				delete this.multiple[ds];=0A=
			}=0A=
		}=0A=
	}=0A=
};=0A=
=0A=
Calendar.prototype.setDateToolTipHandler =3D function (unaryFunction) {=0A=
	this.getDateToolTip =3D unaryFunction;=0A=
};=0A=
=0A=
/**=0A=
 *  Calls _init function above for going to a certain date (but only if =
the=0A=
 *  date is different than the currently selected one).=0A=
 */=0A=
Calendar.prototype.setDate =3D function (date) {=0A=
	if (!date.equalsTo(this.date)) {=0A=
		this._init(this.firstDayOfWeek, date);=0A=
	}=0A=
};=0A=
=0A=
/**=0A=
 *  Refreshes the calendar.  Useful if the "disabledHandler" function is=0A=
 *  dynamic, meaning that the list of disabled date can change at =
runtime.=0A=
 *  Just * call this function if you think that the list of disabled =
dates=0A=
 *  should * change.=0A=
 */=0A=
Calendar.prototype.refresh =3D function () {=0A=
	this._init(this.firstDayOfWeek, this.date);=0A=
};=0A=
=0A=
/** Modifies the "firstDayOfWeek" parameter (pass 0 for Synday, 1 for =
Monday, etc.). */=0A=
Calendar.prototype.setFirstDayOfWeek =3D function (firstDayOfWeek) {=0A=
	this._init(firstDayOfWeek, this.date);=0A=
	this._displayWeekdays();=0A=
};=0A=
=0A=
/**=0A=
 *  Allows customization of what dates are enabled.  The "unaryFunction"=0A=
 *  parameter must be a function object that receives the date (as a JS =
Date=0A=
 *  object) and returns a boolean value.  If the returned value is true =
then=0A=
 *  the passed date will be marked as disabled.=0A=
 */=0A=
Calendar.prototype.setDateStatusHandler =3D =
Calendar.prototype.setDisabledHandler =3D function (unaryFunction) {=0A=
	this.getDateStatus =3D unaryFunction;=0A=
};=0A=
=0A=
/** Customization of allowed year range for the calendar. */=0A=
Calendar.prototype.setRange =3D function (a, z) {=0A=
	this.minYear =3D a;=0A=
	this.maxYear =3D z;=0A=
};=0A=
=0A=
/** Calls the first user handler (selectedHandler). */=0A=
Calendar.prototype.callHandler =3D function () {=0A=
	if (this.onSelected) {=0A=
		this.onSelected(this, this.date.print(this.dateFormat));=0A=
	}=0A=
};=0A=
=0A=
/** Calls the second user handler (closeHandler). */=0A=
Calendar.prototype.callCloseHandler =3D function () {=0A=
	if (this.onClose) {=0A=
		this.onClose(this);=0A=
	}=0A=
	this.hideShowCovered();=0A=
};=0A=
=0A=
/** Removes the calendar object from the DOM tree and destroys it. */=0A=
Calendar.prototype.destroy =3D function () {=0A=
	var el =3D this.element.parentNode;=0A=
	el.removeChild(this.element);=0A=
	Calendar._C =3D null;=0A=
	window._dynarch_popupCalendar =3D null;=0A=
};=0A=
=0A=
/**=0A=
 *  Moves the calendar element to a different section in the DOM tree =
(changes=0A=
 *  its parent).=0A=
 */=0A=
Calendar.prototype.reparent =3D function (new_parent) {=0A=
	var el =3D this.element;=0A=
	el.parentNode.removeChild(el);=0A=
	new_parent.appendChild(el);=0A=
};=0A=
=0A=
// This gets called when the user presses a mouse button anywhere in the=0A=
// document, if the calendar is shown.  If the click was outside the open=0A=
// calendar this function closes it.=0A=
Calendar._checkCalendar =3D function(ev) {=0A=
	var calendar =3D window._dynarch_popupCalendar;=0A=
	if (!calendar) {=0A=
		return false;=0A=
	}=0A=
	var el =3D Calendar.is_ie ? Calendar.getElement(ev) : =
Calendar.getTargetElement(ev);=0A=
	for (; el !=3D null && el !=3D calendar.element; el =3D el.parentNode);=0A=
	if (el =3D=3D null) {=0A=
		// calls closeHandler which should hide the calendar.=0A=
		window._dynarch_popupCalendar.callCloseHandler();=0A=
		return Calendar.stopEvent(ev);=0A=
	}=0A=
};=0A=
=0A=
/** Shows the calendar. */=0A=
Calendar.prototype.show =3D function () {=0A=
	var rows =3D this.table.getElementsByTagName("tr");=0A=
	for (var i =3D rows.length; i > 0;) {=0A=
		var row =3D rows[--i];=0A=
		Calendar.removeClass(row, "rowhilite");=0A=
		var cells =3D row.getElementsByTagName("td");=0A=
		for (var j =3D cells.length; j > 0;) {=0A=
			var cell =3D cells[--j];=0A=
			Calendar.removeClass(cell, "hilite");=0A=
			Calendar.removeClass(cell, "active");=0A=
		}=0A=
	}=0A=
	this.element.style.display =3D "block";=0A=
	this.hidden =3D false;=0A=
	if (this.isPopup) {=0A=
		window._dynarch_popupCalendar =3D this;=0A=
		Calendar.addEvent(document, "keydown", Calendar._keyEvent);=0A=
		Calendar.addEvent(document, "keypress", Calendar._keyEvent);=0A=
		Calendar.addEvent(document, "mousedown", Calendar._checkCalendar);=0A=
	}=0A=
	this.hideShowCovered();=0A=
};=0A=
=0A=
/**=0A=
 *  Hides the calendar.  Also removes any "hilite" from the class of any =
TD=0A=
 *  element.=0A=
 */=0A=
Calendar.prototype.hide =3D function () {=0A=
	if (this.isPopup) {=0A=
		Calendar.removeEvent(document, "keydown", Calendar._keyEvent);=0A=
		Calendar.removeEvent(document, "keypress", Calendar._keyEvent);=0A=
		Calendar.removeEvent(document, "mousedown", Calendar._checkCalendar);=0A=
	}=0A=
	this.element.style.display =3D "none";=0A=
	this.hidden =3D true;=0A=
	this.hideShowCovered();=0A=
};=0A=
=0A=
/**=0A=
 *  Shows the calendar at a given absolute position (beware that, =
depending on=0A=
 *  the calendar element style -- position property -- this might be =
relative=0A=
 *  to the parent's containing rectangle).=0A=
 */=0A=
Calendar.prototype.showAt =3D function (x, y) {=0A=
	var s =3D this.element.style;=0A=
	s.left =3D x + "px";=0A=
	s.top =3D y + "px";=0A=
	this.show();=0A=
};=0A=
=0A=
/** Shows the calendar near a given element. */=0A=
Calendar.prototype.showAtElement =3D function (el, opts) {=0A=
	var self =3D this;=0A=
	var p =3D Calendar.getAbsolutePos(el);=0A=
	if (!opts || typeof opts !=3D "string") {=0A=
		this.showAt(p.x, p.y + el.offsetHeight);=0A=
		return true;=0A=
	}=0A=
	function fixPosition(box) {=0A=
		if (box.x < 0)=0A=
			box.x =3D 0;=0A=
		if (box.y < 0)=0A=
			box.y =3D 0;=0A=
		var cp =3D document.createElement("div");=0A=
		var s =3D cp.style;=0A=
		s.position =3D "absolute";=0A=
		s.right =3D s.bottom =3D s.width =3D s.height =3D "0px";=0A=
		document.body.appendChild(cp);=0A=
		var br =3D Calendar.getAbsolutePos(cp);=0A=
		document.body.removeChild(cp);=0A=
		if (Calendar.is_ie) {=0A=
			br.y +=3D document.body.scrollTop;=0A=
			br.x +=3D document.body.scrollLeft;=0A=
		} else {=0A=
			br.y +=3D window.scrollY;=0A=
			br.x +=3D window.scrollX;=0A=
		}=0A=
		var tmp =3D box.x + box.width - br.x;=0A=
		if (tmp > 0) box.x -=3D tmp;=0A=
		tmp =3D box.y + box.height - br.y;=0A=
		if (tmp > 0) box.y -=3D tmp;=0A=
	};=0A=
	this.element.style.display =3D "block";=0A=
	Calendar.continuation_for_the_fucking_khtml_browser =3D function() {=0A=
		var w =3D self.element.offsetWidth;=0A=
		var h =3D self.element.offsetHeight;=0A=
		self.element.style.display =3D "none";=0A=
		var valign =3D opts.substr(0, 1);=0A=
		var halign =3D "l";=0A=
		if (opts.length > 1) {=0A=
			halign =3D opts.substr(1, 1);=0A=
		}=0A=
		// vertical alignment=0A=
		switch (valign) {=0A=
		    case "T": p.y -=3D h; break;=0A=
		    case "B": p.y +=3D el.offsetHeight; break;=0A=
		    case "C": p.y +=3D (el.offsetHeight - h) / 2; break;=0A=
		    case "t": p.y +=3D el.offsetHeight - h; break;=0A=
		    case "b": break; // already there=0A=
		}=0A=
		// horizontal alignment=0A=
		switch (halign) {=0A=
		    case "L": p.x -=3D w; break;=0A=
		    case "R": p.x +=3D el.offsetWidth; break;=0A=
		    case "C": p.x +=3D (el.offsetWidth - w) / 2; break;=0A=
		    case "l": p.x +=3D el.offsetWidth - w; break;=0A=
		    case "r": break; // already there=0A=
		}=0A=
		p.width =3D w;=0A=
		p.height =3D h + 40;=0A=
		self.monthsCombo.style.display =3D "none";=0A=
		fixPosition(p);=0A=
		self.showAt(p.x, p.y);=0A=
	};=0A=
	if (Calendar.is_khtml)=0A=
		setTimeout("Calendar.continuation_for_the_fucking_khtml_browser()", =
10);=0A=
	else=0A=
		Calendar.continuation_for_the_fucking_khtml_browser();=0A=
};=0A=
=0A=
/** Customizes the date format. */=0A=
Calendar.prototype.setDateFormat =3D function (str) {=0A=
	this.dateFormat =3D str;=0A=
};=0A=
=0A=
/** Customizes the tooltip date format. */=0A=
Calendar.prototype.setTtDateFormat =3D function (str) {=0A=
	this.ttDateFormat =3D str;=0A=
};=0A=
=0A=
/**=0A=
 *  Tries to identify the date represented in a string.  If successful =
it also=0A=
 *  calls this.setDate which moves the calendar to the given date.=0A=
 */=0A=
Calendar.prototype.parseDate =3D function(str, fmt) {=0A=
	if (!fmt)=0A=
		fmt =3D this.dateFormat;=0A=
	this.setDate(Date.parseDate(str, fmt));=0A=
};=0A=
=0A=
Calendar.prototype.hideShowCovered =3D function () {=0A=
	if (!Calendar.is_ie && !Calendar.is_opera)=0A=
		return;=0A=
	function getVisib(obj){=0A=
		var value =3D obj.style.visibility;=0A=
		if (!value) {=0A=
			if (document.defaultView && typeof =
(document.defaultView.getComputedStyle) =3D=3D "function") { // Gecko, =
W3C=0A=
				if (!Calendar.is_khtml)=0A=
					value =3D document.defaultView.=0A=
						getComputedStyle(obj, "").getPropertyValue("visibility");=0A=
				else=0A=
					value =3D '';=0A=
			} else if (obj.currentStyle) { // IE=0A=
				value =3D obj.currentStyle.visibility;=0A=
			} else=0A=
				value =3D '';=0A=
		}=0A=
		return value;=0A=
	};=0A=
=0A=
	var tags =3D new Array("applet", "iframe", "select");=0A=
	var el =3D this.element;=0A=
=0A=
	var p =3D Calendar.getAbsolutePos(el);=0A=
	var EX1 =3D p.x;=0A=
	var EX2 =3D el.offsetWidth + EX1;=0A=
	var EY1 =3D p.y;=0A=
	var EY2 =3D el.offsetHeight + EY1;=0A=
=0A=
	for (var k =3D tags.length; k > 0; ) {=0A=
		var ar =3D document.getElementsByTagName(tags[--k]);=0A=
		var cc =3D null;=0A=
=0A=
		for (var i =3D ar.length; i > 0;) {=0A=
			cc =3D ar[--i];=0A=
=0A=
			p =3D Calendar.getAbsolutePos(cc);=0A=
			var CX1 =3D p.x;=0A=
			var CX2 =3D cc.offsetWidth + CX1;=0A=
			var CY1 =3D p.y;=0A=
			var CY2 =3D cc.offsetHeight + CY1;=0A=
=0A=
			if (this.hidden || (CX1 > EX2) || (CX2 < EX1) || (CY1 > EY2) || (CY2 =
< EY1)) {=0A=
				if (!cc.__msh_save_visibility) {=0A=
					cc.__msh_save_visibility =3D getVisib(cc);=0A=
				}=0A=
				cc.style.visibility =3D cc.__msh_save_visibility;=0A=
			} else {=0A=
				if (!cc.__msh_save_visibility) {=0A=
					cc.__msh_save_visibility =3D getVisib(cc);=0A=
				}=0A=
				cc.style.visibility =3D "hidden";=0A=
			}=0A=
		}=0A=
	}=0A=
};=0A=
=0A=
/** Internal function; it displays the bar with the names of the =
weekday. */=0A=
Calendar.prototype._displayWeekdays =3D function () {=0A=
	var fdow =3D this.firstDayOfWeek;=0A=
	var cell =3D this.firstdayname;=0A=
	var weekend =3D Calendar._TT["WEEKEND"];=0A=
	for (var i =3D 0; i < 7; ++i) {=0A=
		cell.className =3D "day name";=0A=
		var realday =3D (i + fdow) % 7;=0A=
		if (i) {=0A=
			cell.ttip =3D Calendar._TT["DAY_FIRST"].replace("%s", =
Calendar._DN[realday]);=0A=
			cell.navtype =3D 100;=0A=
			cell.calendar =3D this;=0A=
			cell.fdow =3D realday;=0A=
			Calendar._add_evs(cell);=0A=
		}=0A=
		if (weekend.indexOf(realday.toString()) !=3D -1) {=0A=
			Calendar.addClass(cell, "weekend");=0A=
		}=0A=
		cell.innerHTML =3D Calendar._SDN[(i + fdow) % 7];=0A=
		cell =3D cell.nextSibling;=0A=
	}=0A=
};=0A=
=0A=
/** Internal function.  Hides all combo boxes that might be displayed. */=0A=
Calendar.prototype._hideCombos =3D function () {=0A=
	this.monthsCombo.style.display =3D "none";=0A=
	this.yearsCombo.style.display =3D "none";=0A=
};=0A=
=0A=
/** Internal function.  Starts dragging the element. */=0A=
Calendar.prototype._dragStart =3D function (ev) {=0A=
	if (this.dragging) {=0A=
		return;=0A=
	}=0A=
	this.dragging =3D true;=0A=
	var posX;=0A=
	var posY;=0A=
	if (Calendar.is_ie) {=0A=
		posY =3D window.event.clientY + document.body.scrollTop;=0A=
		posX =3D window.event.clientX + document.body.scrollLeft;=0A=
	} else {=0A=
		posY =3D ev.clientY + window.scrollY;=0A=
		posX =3D ev.clientX + window.scrollX;=0A=
	}=0A=
	var st =3D this.element.style;=0A=
	this.xOffs =3D posX - parseInt(st.left);=0A=
	this.yOffs =3D posY - parseInt(st.top);=0A=
	with (Calendar) {=0A=
		addEvent(document, "mousemove", calDragIt);=0A=
		addEvent(document, "mouseup", calDragEnd);=0A=
	}=0A=
};=0A=
=0A=
// BEGIN: DATE OBJECT PATCHES=0A=
=0A=
/** Adds the number of days array to the Date object. */=0A=
Date._MD =3D new Array(31,28,31,30,31,30,31,31,30,31,30,31);=0A=
=0A=
/** Constants used for time computations */=0A=
Date.SECOND =3D 1000 /* milliseconds */;=0A=
Date.MINUTE =3D 60 * Date.SECOND;=0A=
Date.HOUR   =3D 60 * Date.MINUTE;=0A=
Date.DAY    =3D 24 * Date.HOUR;=0A=
Date.WEEK   =3D  7 * Date.DAY;=0A=
=0A=
Date.parseDate =3D function(str, fmt) {=0A=
	var today =3D new Date();=0A=
	var y =3D 0;=0A=
	var m =3D -1;=0A=
	var d =3D 0;=0A=
	var a =3D str.split(/\W+/);=0A=
	var b =3D fmt.match(/%./g);=0A=
	var i =3D 0, j =3D 0;=0A=
	var hr =3D 0;=0A=
	var min =3D 0;=0A=
	for (i =3D 0; i < a.length; ++i) {=0A=
		if (!a[i])=0A=
			continue;=0A=
		switch (b[i]) {=0A=
		    case "%d":=0A=
		    case "%e":=0A=
			d =3D parseInt(a[i], 10);=0A=
			break;=0A=
=0A=
		    case "%m":=0A=
			m =3D parseInt(a[i], 10) - 1;=0A=
			break;=0A=
=0A=
		    case "%Y":=0A=
		    case "%y":=0A=
			y =3D parseInt(a[i], 10);=0A=
			(y < 100) && (y +=3D (y > 29) ? 1900 : 2000);=0A=
			break;=0A=
=0A=
		    case "%b":=0A=
		    case "%B":=0A=
			for (j =3D 0; j < 12; ++j) {=0A=
				if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() =3D=3D =
a[i].toLowerCase()) { m =3D j; break; }=0A=
			}=0A=
			break;=0A=
=0A=
		    case "%H":=0A=
		    case "%I":=0A=
		    case "%k":=0A=
		    case "%l":=0A=
			hr =3D parseInt(a[i], 10);=0A=
			break;=0A=
=0A=
		    case "%P":=0A=
		    case "%p":=0A=
			if (/pm/i.test(a[i]) && hr < 12)=0A=
				hr +=3D 12;=0A=
			else if (/am/i.test(a[i]) && hr >=3D 12)=0A=
				hr -=3D 12;=0A=
			break;=0A=
=0A=
		    case "%M":=0A=
			min =3D parseInt(a[i], 10);=0A=
			break;=0A=
		}=0A=
	}=0A=
	if (isNaN(y)) y =3D today.getFullYear();=0A=
	if (isNaN(m)) m =3D today.getMonth();=0A=
	if (isNaN(d)) d =3D today.getDate();=0A=
	if (isNaN(hr)) hr =3D today.getHours();=0A=
	if (isNaN(min)) min =3D today.getMinutes();=0A=
	if (y !=3D 0 && m !=3D -1 && d !=3D 0)=0A=
		return new Date(y, m, d, hr, min, 0);=0A=
	y =3D 0; m =3D -1; d =3D 0;=0A=
	for (i =3D 0; i < a.length; ++i) {=0A=
		if (a[i].search(/[a-zA-Z]+/) !=3D -1) {=0A=
			var t =3D -1;=0A=
			for (j =3D 0; j < 12; ++j) {=0A=
				if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() =3D=3D =
a[i].toLowerCase()) { t =3D j; break; }=0A=
			}=0A=
			if (t !=3D -1) {=0A=
				if (m !=3D -1) {=0A=
					d =3D m+1;=0A=
				}=0A=
				m =3D t;=0A=
			}=0A=
		} else if (parseInt(a[i], 10) <=3D 12 && m =3D=3D -1) {=0A=
			m =3D a[i]-1;=0A=
		} else if (parseInt(a[i], 10) > 31 && y =3D=3D 0) {=0A=
			y =3D parseInt(a[i], 10);=0A=
			(y < 100) && (y +=3D (y > 29) ? 1900 : 2000);=0A=
		} else if (d =3D=3D 0) {=0A=
			d =3D a[i];=0A=
		}=0A=
	}=0A=
	if (y =3D=3D 0)=0A=
		y =3D today.getFullYear();=0A=
	if (m !=3D -1 && d !=3D 0)=0A=
		return new Date(y, m, d, hr, min, 0);=0A=
	return today;=0A=
};=0A=
=0A=
/** Returns the number of days in the current month */=0A=
Date.prototype.getMonthDays =3D function(month) {=0A=
	var year =3D this.getFullYear();=0A=
	if (typeof month =3D=3D "undefined") {=0A=
		month =3D this.getMonth();=0A=
	}=0A=
	if (((0 =3D=3D (year%4)) && ( (0 !=3D (year%100)) || (0 =3D=3D =
(year%400)))) && month =3D=3D 1) {=0A=
		return 29;=0A=
	} else {=0A=
		return Date._MD[month];=0A=
	}=0A=
};=0A=
=0A=
/** Returns the number of day in the year. */=0A=
Date.prototype.getDayOfYear =3D function() {=0A=
	var now =3D new Date(this.getFullYear(), this.getMonth(), =
this.getDate(), 0, 0, 0);=0A=
	var then =3D new Date(this.getFullYear(), 0, 0, 0, 0, 0);=0A=
	var time =3D now - then;=0A=
	return Math.floor(time / Date.DAY);=0A=
};=0A=
=0A=
/** Returns the number of the week in year, as defined in ISO 8601. */=0A=
Date.prototype.getWeekNumber =3D function() {=0A=
	var d =3D new Date(this.getFullYear(), this.getMonth(), this.getDate(), =
0, 0, 0);=0A=
	var DoW =3D d.getDay();=0A=
	d.setDate(d.getDate() - (DoW + 6) % 7 + 3); // Nearest Thu=0A=
	var ms =3D d.valueOf(); // GMT=0A=
	d.setMonth(0);=0A=
	d.setDate(4); // Thu in Week 1=0A=
	return Math.round((ms - d.valueOf()) / (7 * 864e5)) + 1;=0A=
};=0A=
=0A=
/** Checks date and time equality */=0A=
Date.prototype.equalsTo =3D function(date) {=0A=
	return ((this.getFullYear() =3D=3D date.getFullYear()) &&=0A=
		(this.getMonth() =3D=3D date.getMonth()) &&=0A=
		(this.getDate() =3D=3D date.getDate()) &&=0A=
		(this.getHours() =3D=3D date.getHours()) &&=0A=
		(this.getMinutes() =3D=3D date.getMinutes()));=0A=
};=0A=
=0A=
/** Set only the year, month, date parts (keep existing time) */=0A=
Date.prototype.setDateOnly =3D function(date) {=0A=
	var tmp =3D new Date(date);=0A=
	this.setDate(1);=0A=
	this.setFullYear(tmp.getFullYear());=0A=
	this.setMonth(tmp.getMonth());=0A=
	this.setDate(tmp.getDate());=0A=
};=0A=
=0A=
/** Prints the date in a string according to the given format. */=0A=
Date.prototype.print =3D function (str) {=0A=
	var m =3D this.getMonth();=0A=
	var d =3D this.getDate();=0A=
	var y =3D this.getFullYear();=0A=
	var wn =3D this.getWeekNumber();=0A=
	var w =3D this.getDay();=0A=
	var s =3D {};=0A=
	var hr =3D this.getHours();=0A=
	var pm =3D (hr >=3D 12);=0A=
	var ir =3D (pm) ? (hr - 12) : hr;=0A=
	var dy =3D this.getDayOfYear();=0A=
	if (ir =3D=3D 0)=0A=
		ir =3D 12;=0A=
	var min =3D this.getMinutes();=0A=
	var sec =3D this.getSeconds();=0A=
	s["%a"] =3D Calendar._SDN[w]; // abbreviated weekday name [FIXME: I18N]=0A=
	s["%A"] =3D Calendar._DN[w]; // full weekday name=0A=
	s["%b"] =3D Calendar._SMN[m]; // abbreviated month name [FIXME: I18N]=0A=
	s["%B"] =3D Calendar._MN[m]; // full month name=0A=
	// FIXME: %c : preferred date and time representation for the current =
locale=0A=
	s["%C"] =3D 1 + Math.floor(y / 100); // the century number=0A=
	s["%d"] =3D (d < 10) ? ("0" + d) : d; // the day of the month (range 01 =
to 31)=0A=
	s["%e"] =3D d; // the day of the month (range 1 to 31)=0A=
	// FIXME: %D : american date style: %m/%d/%y=0A=
	// FIXME: %E, %F, %G, %g, %h (man strftime)=0A=
	s["%H"] =3D (hr < 10) ? ("0" + hr) : hr; // hour, range 00 to 23 (24h =
format)=0A=
	s["%I"] =3D (ir < 10) ? ("0" + ir) : ir; // hour, range 01 to 12 (12h =
format)=0A=
	s["%j"] =3D (dy < 100) ? ((dy < 10) ? ("00" + dy) : ("0" + dy)) : dy; =
// day of the year (range 001 to 366)=0A=
	s["%k"] =3D hr;		// hour, range 0 to 23 (24h format)=0A=
	s["%l"] =3D ir;		// hour, range 1 to 12 (12h format)=0A=
	s["%m"] =3D (m < 9) ? ("0" + (1+m)) : (1+m); // month, range 01 to 12=0A=
	s["%M"] =3D (min < 10) ? ("0" + min) : min; // minute, range 00 to 59=0A=
	s["%n"] =3D "\n";		// a newline character=0A=
	s["%p"] =3D pm ? "PM" : "AM";=0A=
	s["%P"] =3D pm ? "pm" : "am";=0A=
	// FIXME: %r : the time in am/pm notation %I:%M:%S %p=0A=
	// FIXME: %R : the time in 24-hour notation %H:%M=0A=
	s["%s"] =3D Math.floor(this.getTime() / 1000);=0A=
	s["%S"] =3D (sec < 10) ? ("0" + sec) : sec; // seconds, range 00 to 59=0A=
	s["%t"] =3D "\t";		// a tab character=0A=
	// FIXME: %T : the time in 24-hour notation (%H:%M:%S)=0A=
	s["%U"] =3D s["%W"] =3D s["%V"] =3D (wn < 10) ? ("0" + wn) : wn;=0A=
	s["%u"] =3D w + 1;	// the day of the week (range 1 to 7, 1 =3D MON)=0A=
	s["%w"] =3D w;		// the day of the week (range 0 to 6, 0 =3D SUN)=0A=
	// FIXME: %x : preferred date representation for the current locale =
without the time=0A=
	// FIXME: %X : preferred time representation for the current locale =
without the date=0A=
	s["%y"] =3D ('' + y).substr(2, 2); // year without the century (range =
00 to 99)=0A=
	s["%Y"] =3D y;		// year with the century=0A=
	s["%%"] =3D "%";		// a literal '%' character=0A=
=0A=
	var re =3D /%./g;=0A=
	if (!Calendar.is_ie5 && !Calendar.is_khtml)=0A=
		return str.replace(re, function (par) { return s[par] || par; });=0A=
=0A=
	var a =3D str.match(re);=0A=
	for (var i =3D 0; i < a.length; i++) {=0A=
		var tmp =3D s[a[i]];=0A=
		if (tmp) {=0A=
			re =3D new RegExp(a[i], 'g');=0A=
			str =3D str.replace(re, tmp);=0A=
		}=0A=
	}=0A=
=0A=
	return str;=0A=
};=0A=
=0A=
Date.prototype.__msh_oldSetFullYear =3D Date.prototype.setFullYear;=0A=
Date.prototype.setFullYear =3D function(y) {=0A=
	var d =3D new Date(this);=0A=
	d.__msh_oldSetFullYear(y);=0A=
	if (d.getMonth() !=3D this.getMonth())=0A=
		this.setDate(28);=0A=
	this.__msh_oldSetFullYear(y);=0A=
};=0A=
=0A=
// END: DATE OBJECT PATCHES=0A=
=0A=
=0A=
// global object that remembers the calendar=0A=
window._dynarch_popupCalendar =3D null;=0A=

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/lang/calendar-it.js

// ** I18N=0A=
=0A=
// Calendar EN language=0A=
// Author: Mihai Bazon, <mihai_bazon@yahoo.com>=0A=
// Translator: Fabio Di Bernardini, <altraqua@email.it>=0A=
// Encoding: any=0A=
// Distributed under the same terms as the calendar itself.=0A=
=0A=
// For translators: please use UTF-8 if possible.  We strongly believe =
that=0A=
// Unicode is the answer to a real internationalized world.  Also please=0A=
// include your contact information in the header, as can be seen above.=0A=
=0A=
// full day names=0A=
Calendar._DN =3D new Array=0A=
("Domenica",=0A=
 "Luned=C3=AC",=0A=
 "Marted=C3=AC",=0A=
 "Mercoled=C3=AC",=0A=
 "Gioved=C3=AC",=0A=
 "Venerd=C3=AC",=0A=
 "Sabato",=0A=
 "Domenica");=0A=
=0A=
// Please note that the following array of short day names (and the same =
goes=0A=
// for short month names, _SMN) isn't absolutely necessary.  We give it =
here=0A=
// for exemplification on how one can customize the short day names, but =
if=0A=
// they are simply the first N letters of the full name you can simply =
say:=0A=
//=0A=
//   Calendar._SDN_len =3D N; // short day name length=0A=
//   Calendar._SMN_len =3D N; // short month name length=0A=
//=0A=
// If N =3D 3 then this is not needed either since we assume a value of =
3 if not=0A=
// present, to be compatible with translation files that were written =
before=0A=
// this feature.=0A=
=0A=
// short day names=0A=
Calendar._SDN =3D new Array=0A=
("Dom",=0A=
 "Lun",=0A=
 "Mar",=0A=
 "Mer",=0A=
 "Gio",=0A=
 "Ven",=0A=
 "Sab",=0A=
 "Dom");=0A=
=0A=
// full month names=0A=
Calendar._MN =3D new Array=0A=
("Gennaio",=0A=
 "Febbraio",=0A=
 "Marzo",=0A=
 "Aprile",=0A=
 "Maggio",=0A=
 "Giugno",=0A=
 "Luglio",=0A=
 "Augosto",=0A=
 "Settembre",=0A=
 "Ottobre",=0A=
 "Novembre",=0A=
 "Dicembre");=0A=
=0A=
// short month names=0A=
Calendar._SMN =3D new Array=0A=
("Gen",=0A=
 "Feb",=0A=
 "Mar",=0A=
 "Apr",=0A=
 "Mag",=0A=
 "Giu",=0A=
 "Lug",=0A=
 "Ago",=0A=
 "Set",=0A=
 "Ott",=0A=
 "Nov",=0A=
 "Dic");=0A=
=0A=
// First day of the week. "0" means display Sunday first, "1" means =
display=0A=
// Monday first, etc.=0A=
Calendar._FD =3D 1;=0A=
=0A=
// tooltips=0A=
Calendar._TT =3D {};=0A=
Calendar._TT["INFO"] =3D "Informazioni sul calendario";=0A=
=0A=
Calendar._TT["ABOUT"] =3D=0A=
"DHTML Date/Time Selector\n" +=0A=
"(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate =
this this ;-)=0A=
"Per gli aggiornamenti: http://www.dynarch.com/projects/calendar/\n" +=0A=
"Distribuito sotto licenza GNU LGPL.  Vedi =
http://gnu.org/licenses/lgpl.html per i dettagli." +=0A=
"\n\n" +=0A=
"Selezione data:\n" +=0A=
"- Usa \xab, \xbb per selezionare l'anno\n" +=0A=
"- Usa  " + String.fromCharCode(0x2039) + ", " + =
String.fromCharCode(0x203a) + " per i mesi\n" +=0A=
"- Tieni premuto a lungo il mouse per accedere alle funzioni di =
selezione veloce.";=0A=
Calendar._TT["ABOUT_TIME"] =3D "\n\n" +=0A=
"Selezione orario:\n" +=0A=
"- Clicca sul numero per incrementarlo\n" +=0A=
"- o Shift+click per decrementarlo\n" +=0A=
"- o click e sinistra o destra per variarlo.";=0A=
=0A=
Calendar._TT["PREV_YEAR"] =3D "Anno prec.(clicca a lungo per il =
men=C3=B9)";=0A=
Calendar._TT["PREV_MONTH"] =3D "Mese prec. (clicca a lungo per il =
men=C3=B9)";=0A=
Calendar._TT["GO_TODAY"] =3D "Oggi";=0A=
Calendar._TT["NEXT_MONTH"] =3D "Pross. mese (clicca a lungo per il =
men=C3=B9)";=0A=
Calendar._TT["NEXT_YEAR"] =3D "Pross. anno (clicca a lungo per il =
men=C3=B9)";=0A=
Calendar._TT["SEL_DATE"] =3D "Seleziona data";=0A=
Calendar._TT["DRAG_TO_MOVE"] =3D "Trascina per spostarlo";=0A=
Calendar._TT["PART_TODAY"] =3D " (oggi)";=0A=
=0A=
// the following is to inform that "%s" is to be the first day of week=0A=
// %s will be replaced with the day name.=0A=
Calendar._TT["DAY_FIRST"] =3D "Mostra prima %s";=0A=
=0A=
// This may be locale-dependent.  It specifies the week-end days, as an =
array=0A=
// of comma-separated numbers.  The numbers are from 0 to 6: 0 means =
Sunday, 1=0A=
// means Monday, etc.=0A=
Calendar._TT["WEEKEND"] =3D "0,6";=0A=
=0A=
Calendar._TT["CLOSE"] =3D "Chiudi";=0A=
Calendar._TT["TODAY"] =3D "Oggi";=0A=
Calendar._TT["TIME_PART"] =3D "(Shift-)Click o trascina per cambiare il =
valore";=0A=
=0A=
// date formats=0A=
Calendar._TT["DEF_DATE_FORMAT"] =3D "%d-%m-%Y";=0A=
Calendar._TT["TT_DATE_FORMAT"] =3D "%a:%b:%e";=0A=
=0A=
Calendar._TT["WK"] =3D "set";=0A=
Calendar._TT["TIME"] =3D "Ora:";=0A=

------=_NextPart_000_0000_01C96CC7.15F8AC00
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: https://nsiv.isvap.it/Albi/Albi/webwork/jscalendar/calendar-setup.js

/*  Copyright Mihai Bazon, 2002, 2003  |  http://dynarch.com/mishoo/=0A=
 * =
-------------------------------------------------------------------------=
--=0A=
 *=0A=
 * The DHTML Calendar=0A=
 *=0A=
 * Details and latest version at:=0A=
 * http://dynarch.com/mishoo/calendar.epl=0A=
 *=0A=
 * This script is distributed under the GNU Lesser General Public =
License.=0A=
 * Read the entire license text here: =
http://www.gnu.org/licenses/lgpl.html=0A=
 *=0A=
 * This file defines helper functions for setting up the calendar.  They =
are=0A=
 * intended to help non-programmers get a working calendar on their site=0A=
 * quickly.  This script should not be seen as part of the calendar.  It =
just=0A=
 * shows you what one can do with the calendar, while in the same time=0A=
 * providing a quick and simple method for setting it up.  If you need=0A=
 * exhaustive customization of the calendar creation process feel free to=0A=
 * modify this code to suit your needs (this is recommended and much =
better=0A=
 * than modifying calendar.js itself).=0A=
 */=0A=
=0A=
// $Id: calendar-setup.js,v 1.1 2005/12/05 22:59:50 rgielen Exp $=0A=
=0A=
/**=0A=
 *  This function "patches" an input field (or other element) to use a =
calendar=0A=
 *  widget for date selection.=0A=
 *=0A=
 *  The "params" is a single object that can have the following =
properties:=0A=
 *=0A=
 *    prop. name   | description=0A=
 *  =
-------------------------------------------------------------------------=
------------------------=0A=
 *   inputField    | the ID of an input field to store the date=0A=
 *   displayArea   | the ID of a DIV or other element to show the date=0A=
 *   button        | ID of a button or other element that will trigger =
the calendar=0A=
 *   eventName     | event that will trigger the calendar, without the =
"on" prefix (default: "click")=0A=
 *   ifFormat      | date format that will be stored in the input field=0A=
 *   daFormat      | the date format that will be used to display the =
date in displayArea=0A=
 *   singleClick   | (true/false) wether the calendar is in single click =
mode or not (default: true)=0A=
 *   firstDay      | numeric: 0 to 6.  "0" means display Sunday first, =
"1" means display Monday first, etc.=0A=
 *   align         | alignment (default: "Br"); if you don't know what's =
this see the calendar documentation=0A=
 *   range         | array with 2 elements.  Default: [1900, 2999] -- =
the range of years available=0A=
 *   weekNumbers   | (true/false) if it's true (default) the calendar =
will display week numbers=0A=
 *   flat          | null or element ID; if not null the calendar will =
be a flat calendar having the parent with the given ID=0A=
 *   flatCallback  | function that receives a JS Date object and returns =
an URL to point the browser to (for flat calendar)=0A=
 *   disableFunc   | function that receives a JS Date object and should =
return true if that date has to be disabled in the calendar=0A=
 *   onSelect      | function that gets called when a date is selected.  =
You don't _have_ to supply this (the default is generally okay)=0A=
 *   onClose       | function that gets called when the calendar is =
closed.  [default]=0A=
 *   onUpdate      | function that gets called after the date is updated =
in the input field.  Receives a reference to the calendar.=0A=
 *   date          | the date that the calendar will be initially =
displayed to=0A=
 *   showsTime     | default: false; if true the calendar will include a =
time selector=0A=
 *   timeFormat    | the time format; can be "12" or "24", default is =
"12"=0A=
 *   electric      | if true (default) then given fields/date areas are =
updated for each move; otherwise they're updated only on close=0A=
 *   step          | configures the step of the years in drop-down =
boxes; default: 2=0A=
 *   position      | configures the calendar absolute position; default: =
null=0A=
 *   cache         | if "true" (but default: "false") it will reuse the =
same calendar object, where possible=0A=
 *   showOthers    | if "true" (but default: "false") it will show days =
from other months too=0A=
 *=0A=
 *  None of them is required, they all have default values.  However, if =
you=0A=
 *  pass none of "inputField", "displayArea" or "button" you'll get a =
warning=0A=
 *  saying "nothing to setup".=0A=
 */=0A=
Calendar.setup =3D function (params) {=0A=
	function param_default(pname, def) { if (typeof params[pname] =3D=3D =
"undefined") { params[pname] =3D def; } };=0A=
=0A=
	param_default("inputField",     null);=0A=
	param_default("displayArea",    null);=0A=
	param_default("button",         null);=0A=
	param_default("eventName",      "click");=0A=
	param_default("ifFormat",       Calendar._TT["DEF_DATE_FORMAT"]);=0A=
	param_default("daFormat",       Calendar._TT["DEF_DATE_FORMAT"]);=0A=
	param_default("singleClick",    true);=0A=
	param_default("disableFunc",    null);=0A=
	param_default("dateStatusFunc", params["disableFunc"]);	// takes =
precedence if both are defined=0A=
	param_default("dateText",       null);=0A=
	param_default("firstDay",       null);=0A=
	param_default("align",          "Br");=0A=
	param_default("range",          [1900, 2999]);=0A=
	param_default("weekNumbers",    true);=0A=
	param_default("flat",           null);=0A=
	param_default("flatCallback",   null);=0A=
	param_default("onSelect",       null);=0A=
	param_default("onClose",        null);=0A=
	param_default("onUpdate",       null);=0A=
	param_default("date",           null);=0A=
	param_default("showsTime",      false);=0A=
	param_default("timeFormat",     "24");=0A=
	param_default("electric",       true);=0A=
	param_default("step",           2);=0A=
	param_default("position",       null);=0A=
	param_default("cache",          false);=0A=
	param_default("showOthers",     false);=0A=
	param_default("multiple",       null);=0A=
=0A=
	var tmp =3D ["inputField", "displayArea", "button"];=0A=
	for (var i in tmp) {=0A=
		if (typeof params[tmp[i]] =3D=3D "string") {=0A=
			params[tmp[i]] =3D document.getElementById(params[tmp[i]]);=0A=
		}=0A=
	}=0A=
	if (!(params.flat || params.multiple || params.inputField || =
params.displayArea || params.button)) {=0A=
		alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please =
check your code");=0A=
		return false;=0A=
	}=0A=
=0A=
	function onSelect(cal) {=0A=
		var p =3D cal.params;=0A=
		var update =3D (cal.dateClicked || p.electric);=0A=
		if (update && p.inputField) {=0A=
			p.inputField.value =3D cal.date.print(p.ifFormat);=0A=
			if (typeof p.inputField.onchange =3D=3D "function")=0A=
				p.inputField.onchange();=0A=
		}=0A=
		if (update && p.displayArea)=0A=
			p.displayArea.innerHTML =3D cal.date.print(p.daFormat);=0A=
		if (update && typeof p.onUpdate =3D=3D "function")=0A=
			p.onUpdate(cal);=0A=
		if (update && p.flat) {=0A=
			if (typeof p.flatCallback =3D=3D "function")=0A=
				p.flatCallback(cal);=0A=
		}=0A=
		if (update && p.singleClick && cal.dateClicked)=0A=
			cal.callCloseHandler();=0A=
	};=0A=
=0A=
	if (params.flat !=3D null) {=0A=
		if (typeof params.flat =3D=3D "string")=0A=
			params.flat =3D document.getElementById(params.flat);=0A=
		if (!params.flat) {=0A=
			alert("Calendar.setup:\n  Flat specified but can't find parent.");=0A=
			return false;=0A=
		}=0A=
		var cal =3D new Calendar(params.firstDay, params.date, params.onSelect =
|| onSelect);=0A=
		cal.showsOtherMonths =3D params.showOthers;=0A=
		cal.showsTime =3D params.showsTime;=0A=
		cal.time24 =3D (params.timeFormat =3D=3D "24");=0A=
		cal.params =3D params;=0A=
		cal.weekNumbers =3D params.weekNumbers;=0A=
		cal.setRange(params.range[0], params.range[1]);=0A=
		cal.setDateStatusHandler(params.dateStatusFunc);=0A=
		cal.getDateText =3D params.dateText;=0A=
		if (params.ifFormat) {=0A=
			cal.setDateFormat(params.ifFormat);=0A=
		}=0A=
		if (params.inputField && typeof params.inputField.value =3D=3D =
"string") {=0A=
			cal.parseDate(params.inputField.value);=0A=
		}=0A=
		cal.create(params.flat);=0A=
		cal.show();=0A=
		return false;=0A=
	}=0A=
=0A=
	var triggerEl =3D params.button || params.displayArea || =
params.inputField;=0A=
	triggerEl["on" + params.eventName] =3D function() {=0A=
		var dateEl =3D params.inputField || params.displayArea;=0A=
		var dateFmt =3D params.inputField ? params.ifFormat : params.daFormat;=0A=
		var mustCreate =3D false;=0A=
		var cal =3D window.calendar;=0A=
		if (dateEl)=0A=
			params.date =3D Date.parseDate(dateEl.value || dateEl.innerHTML, =
dateFmt);=0A=
		if (!(cal && params.cache)) {=0A=
			window.calendar =3D cal =3D new Calendar(params.firstDay,=0A=
							     params.date,=0A=
							     params.onSelect || onSelect,=0A=
							     params.onClose || function(cal) { cal.hide(); });=0A=
			cal.showsTime =3D params.showsTime;=0A=
			cal.time24 =3D (params.timeFormat =3D=3D "24");=0A=
			cal.weekNumbers =3D params.weekNumbers;=0A=
			mustCreate =3D true;=0A=
		} else {=0A=
			if (params.date)=0A=
				cal.setDate(params.date);=0A=
			cal.hide();=0A=
		}=0A=
		if (params.multiple) {=0A=
			cal.multiple =3D {};=0A=
			for (var i =3D params.multiple.length; --i >=3D 0;) {=0A=
				var d =3D params.multiple[i];=0A=
				var ds =3D d.print("%Y%m%d");=0A=
				cal.multiple[ds] =3D d;=0A=
			}=0A=
		}=0A=
		cal.showsOtherMonths =3D params.showOthers;=0A=
		cal.yearStep =3D params.step;=0A=
		cal.setRange(params.range[0], params.range[1]);=0A=
		cal.params =3D params;=0A=
		cal.setDateStatusHandler(params.dateStatusFunc);=0A=
		cal.getDateText =3D params.dateText;=0A=
		cal.setDateFormat(dateFmt);=0A=
		if (mustCreate)=0A=
			cal.create();=0A=
		cal.refresh();=0A=
		if (!params.position)=0A=
			cal.showAtElement(params.button || params.displayArea || =
params.inputField, params.align);=0A=
		else=0A=
			cal.showAt(params.position[0], params.position[1]);=0A=
		return false;=0A=
	};=0A=
=0A=
	return cal;=0A=
};=0A=

------=_NextPart_000_0000_01C96CC7.15F8AC00--

