function fnGetObj(pId){return document.getElementById(pId);}function fnWrite(pText){document.write(pText);}function fnWriteln(pText){document.writeln(pText);}function fnGetObjHeight(pEl){var lhg=0;if(pEl){if(pEl.offsetHeight){lhg=pEl.offsetHeight;}else{if(pEl.style.pixelHeight){lhg=pEl.style.pixelHeight;}}}return lhg;}function fnGetHeight(pId){var lem=fnGetObj(pId);return fnGetObjHeight(lem);}function fnGetObjWidth(pEl){var lwd=0;if(pEl){if(pEl.offsetWidth){lwd=pEl.offsetWidth;}else{if(pEl.style.pixelWidth){lwd=pEl.pixelWidth;}}}return lwd;}function fnGetWidth(pId){var lem=fnGetObj(pId);return fnGetObjWidth(lem);}function fnGetObjTop(pEl){var ltp=0;if(pEl){ltp=pEl.offsetTop;if(pEl.clientTop){ltp=ltp+pEl.clientTop;}if(pEl.offsetParent){if(pEl.offsetParent.tagName!='BODY'){ltp=ltp+fnGetObjTop(pEl.offsetParent);}else{ltp=ltp+pEl.offsetParent.offsetTop;if(pEl.offsetParent.clientTop){ltp=ltp+pEl.offsetParent.clientTop;}}}}return ltp;}function fnGetTop(pId){var lem=fnGetObj(pId);return fnGetObjTop(lem);}function fnGetObjLeft(pEl){var lft=0;if(pEl){lft=pEl.offsetLeft;if(pEl.clientLeft){lft=lft+pEl.clientLeft;}if(pEl.offsetParent){if(pEl.offsetParent.tagName!='BODY'){lft=lft+fnGetObjLeft(pEl.offsetParent);}else{lft=lft+pEl.offsetParent.offsetLeft;if(pEl.offsetParent.clientLeft){lft=lft+pEl.offsetParent.clientLeft;}}}}return lft;}function fnGetLeft(pId){var lem=fnGetObj(pId);return fnGetObjLeft(lem);}function toggle(id){var lem=fnGetObj(id);if(lem.style.display=='none'){lem.style.display='';}else{lem.style.display='none';}}function visualizzaElemento(pId){var lem=fnGetObj(pId);if(lem){if(lem.style.display=='none'){lem.style.display='';}}}function nascondiElemento(pId){var lem=fnGetObj(pId);if(lem){if(lem.style.display!='none'){lem.style.display='none';}}}function fnSetRelativeObjPos(pObjRel,pObjAbs,pVPosType,pVPosPX,pHPosType,pHPosPX){var ltp=0;var lft=0;var ltpRel=0;var lftRel=0;if(pObjAbs){if(pObjRel){ltp=fnGetObjTop(pObjAbs);lft=fnGetObjLeft(pObjAbs);switch(pVPosType){case 'UP':
ltpRel=ltp-pVPosPX-fnGetObjHeight(pObjRel);break;case 'DOWN':
ltpRel=ltp+pVPosPX+fnGetObjHeight(pObjAbs);break;case 'ALIGNU':
ltpRel=ltp+pVPosPX;break;case 'ALIGND':
ltpRel=ltp+pVPosPX-fnGetObjHeight(pObjRel)+fnGetObjHeight(pObjAbs);break;default:
ltpRel=fnGetObjTop(pObjRel)+pVPosPX;break;}switch(pHPosType){case 'LEFT':
lftRel=lft-pHPosPX-fnGetObjWidth(pObjRel);break;case 'RIGHT':
lftRel=lft+pHPosPX+fnGetObjWidth(pObjAbs);break;case 'ALIGNL':
lftRel=lft+pHPosPX;break;case 'ALIGNR':
lftRel=lft+pHPosPX-fnGetObjWidth(pObjRel)+fnGetObjWidth(pObjAbs);break;default:
lftRel=fnGetObjLeft(pObjRel)+pHPosPX;break;}pObjRel.style.top=ltpRel+'px';pObjRel.style.left=lftRel+'px';return true;}}return false;}function fnPOIMouseOver(){var POItag;var loc_re=/PoiImg/g;var loc_poiId;this.style.zIndex=80;loc_poiId=this.id.replace(loc_re,'');POItag=document.getElementById(loc_poiId+'PoiTxt');if(POItag) POItag.style.zIndex=70;POItag=document.getElementById(loc_poiId+'PoiBackImg');if(POItag) POItag.style.zIndex=60;visualizzaElemento(loc_poiId+'PoiTxt');visualizzaElemento(loc_poiId+'PoiBackImg');fnGetObj(loc_poiId+'PoiBackImg').style.width=(fnGetWidth(loc_poiId+'PoiTxt')+25)+'px';fnGetObj(loc_poiId+'PoiBackImg').style.height=(fnGetHeight(loc_poiId+'PoiTxt')+20)+'px';}function fnPOIClick(){var loc_re=/PoiImg/g;var loc_poiId;loc_poiId=this.id.replace(loc_re,'');if(this.fisso){this.fisso=false;}else{this.fisso=true;}}function fnPOIMouseOut(){var POItag;var loc_re=/PoiImg/g;var loc_poiId;if(this.fisso){return;}loc_poiId=this.id.replace(loc_re,'');POItag=document.getElementById(loc_poiId+'PoiTxt');if(POItag) POItag.style.zIndex=5;POItag=document.getElementById(loc_poiId+'PoiBackImg');if(POItag) POItag.style.zIndex=4;nascondiElemento(loc_poiId+'PoiTxt');nascondiElemento(loc_poiId+'PoiBackImg');this.style.zIndex=50;}function fnAddImgPOI(pImgId,pDivId,pText,pX,pY,pPOISrc,pPOIBackSrc,pPOIId){var newTag;var loc_img=fnGetObj(pImgId);var lDv=fnGetObj(pDivId);if(loc_img){if(lDv){newTag=document.createElement('IMG');newTag.id=pPOIId+'PoiBackImg';newTag.style.display='none';newTag.style.position='absolute';newTag.style.left='-50px';newTag.style.top='-50px';newTag.style.zIndex=4;try {newTag.style.filter='alpha(opacity=80)';} catch(e){}try {newTag.style.opacity=0.8;} catch(e){}newTag.src=pPOIBackSrc;lDv.appendChild(newTag);newTag=document.createElement('IMG');newTag.id=pPOIId+'PoiImg';newTag.style.position='absolute';newTag.style.left='-50px';newTag.style.top='-50px';newTag.style.zIndex=50;newTag.src=pPOISrc;newTag.onmouseover=fnPOIMouseOver;newTag.onmouseout=fnPOIMouseOut;newTag.onclick=fnPOIClick;lDv.appendChild(newTag);newTag=document.createElement('DIV');newTag.style.display='none';newTag.id=pPOIId+'PoiTxt';newTag.style.position='absolute';newTag.style.left='-50px';newTag.style.top='-50px';newTag.style.zIndex=5;newTag.className='POITXTCLASS';newTag.innerHTML=pText;newTag.fisso=false;lDv.appendChild(newTag);fnSetRelativeObjPos(fnGetObj(pPOIId+'PoiImg'),loc_img,'ALIGNU',pY,'ALIGNL',pX);fnSetRelativeObjPos(fnGetObj(pPOIId+'PoiBackImg'),loc_img,'ALIGNU',pY,'ALIGNL',pX);fnSetRelativeObjPos(fnGetObj(pPOIId+'PoiTxt'),loc_img,'ALIGNU',pY+10,'ALIGNL',pX+15);}}}var mtgM=new Array();var mtgMVisible=new Array();var mtgMCount=new Array();function fnAddToggleMenu(pMenuId,pTM){if(!mtgM[pMenuId]){mtgM[pMenuId]=new Array();mtgMVisible[pMenuId]=false;mtgMCount[pMenuId]=0;}mtgM[pMenuId][mtgMCount[pMenuId]]=pTM;mtgMCount[pMenuId]++;}function fnToggleMenu(pMenuId,pTM){var loc_i;var lem;if(mtgM[pMenuId]){for(loc_i=0; loc_i<mtgMCount[pMenuId]; loc_i++){if(mtgM[pMenuId][loc_i]!=pTM){if(mtgM[mtgM[pMenuId][loc_i]]){fnHideMenu(mtgM[pMenuId][loc_i]);}nascondiElemento(mtgM[pMenuId][loc_i]);}}}if(mtgM[pTM]){if(mtgMVisible[pTM]){fnHideMenu(pTM);mtgMVisible[pMenuId]=false;}else{fnShowMenu(pTM);mtgMVisible[pMenuId]=true;}}lem=document.getElementById(pTM);if(lem){if(lem.style.display=='none'){lem.style.display='';mtgMVisible[pMenuId]=true;}else{lem.style.display='none';mtgMVisible[pMenuId]=false;}}else{if(!mtgM[pTM]){mtgMVisible[pMenuId]=false;}}}function fnShowMenu(pMenuId){var loc_i;if(mtgM[pMenuId]){for(loc_i=0; loc_i<mtgMCount[pMenuId]; loc_i++){if(mtgM[mtgM[pMenuId][loc_i]]){fnShowMenu(mtgM[pMenuId][loc_i]);}visualizzaElemento(mtgM[pMenuId][loc_i]);}mtgMVisible[pMenuId]=true;}}function fnHideMenu(pMenuId){var loc_i;if(mtgM[pMenuId]){for(loc_i=0; loc_i<mtgMCount[pMenuId]; loc_i++){if(mtgM[mtgM[pMenuId][loc_i]]){fnHideMenu(mtgM[pMenuId][loc_i]);}nascondiElemento(mtgM[pMenuId][loc_i]);}mtgMVisible[pMenuId]=false;}}function fnFade(pId,pOpacity,pFreq,pStep){var loc_ele=document.getElementById(pId);if(!loc_ele) return;try {loc_ele.style.filter='alpha(opacity='+pOpacity+')';} catch(e){}try {newTag.style.opacity=pOpacity/100.;} catch(e){}if(pFreq>0){if(pStep==0) return;if((pStep<0) && (pOpacity<=0)) return;if((pStep>0) && (pOpacity>=100)) return;var loc_opacity=pOpacity+pStep;var timer=setTimeout("fnFade('"+pId+"',"+loc_opacity+","+pFreq+","+pStep+")",pFreq);}}function fnScrollEffect(pDivId,pIdOut,pIdIn,pTop,pFreq,pStep){var lDv=fnGetObj(pDivId);var loc_eleOut=fnGetObj(pIdOut);var loc_eleIn=fnGetObj(pIdIn);if(!lDv) return;if((!loc_eleOut) && (!loc_eleIn)) return;if(loc_eleOut){loc_eleOut.style.top=pTop;}if(loc_eleIn){loc_eleIn.style.top=fnGetHeight(pDivId)+pTop;}if(pFreq>0){if(pStep==0) return;if((pTop+fnGetHeight(pDivId))<=0){nascondiElemento(pIdOut);return;}var ltp=pTop+pStep;var timer=setTimeout("fnScrollEffect('"+pDivId+"','"+pIdOut+"','"+pIdIn+"',"+ltp+","+pFreq+","+pStep+")",pFreq);}}var mod_banner;function fnBannerAdd(pShowId,pId){if(!mod_banner){mod_banner=new Array();}if(!mod_banner[pShowId+'Count']){mod_banner[pShowId+'Count']=0;mod_banner[pShowId+'Index']=-1;mod_banner[pShowId+'Visible']=false;mod_banner[pShowId+'Show']=false;mod_banner[pShowId+'List']=new Array();}mod_banner[pShowId+'List'][mod_banner[pShowId+'Count']]=pId;mod_banner[pShowId+'Count']++;}function fnBannerStart(pShowId,pTime,pEffect){if(!mod_banner) return;if(!mod_banner[pShowId+'Count']) return;if(mod_banner[pShowId+'Show']) return;if(mod_banner[pShowId+'Count']>1){mod_banner[pShowId+'Show']=true;mod_banner[pShowId+'Index']=-1;mod_banner[pShowId+'Visible']=false;mod_banner[pShowId+'Effect']=pEffect;fnBannerShow(pShowId,pTime);}else if(mod_banner[pShowId+'Count']==1){visualizzaElemento(mod_banner[pShowId+'List'][0]);}}function fnBannerStop(pShowId){if(!mod_banner) return;if(!mod_banner[pShowId+'Count']) return;mod_banner[pShowId+'Show']=false;}function fnBannerShow(pShowId,pTime){if(!mod_banner) return;if(!mod_banner[pShowId+'Count']) return;var loc_idOut='';var loc_idIn='';if(mod_banner[pShowId+'Index']>=0){loc_idOut=mod_banner[pShowId+'List'][mod_banner[pShowId+'Index']];if(mod_banner[pShowId+'Effect']=='fade'){if(mod_banner[pShowId+'Visible']){mod_banner[pShowId+'Visible']=false;var timer1=setTimeout("fnFade('"+loc_idOut+"',100,200,-10)",200);var timer2=setTimeout("fnBannerShow('"+pShowId+"',"+pTime+")",2000);return;}else{nascondiElemento(loc_idOut);}}mod_banner[pShowId+'Index']++;if(mod_banner[pShowId+'Index']>=mod_banner[pShowId+'Count']){mod_banner[pShowId+'Index']=0;}}else{mod_banner[pShowId+'Index']=0;}if(mod_banner[pShowId+'Show']){loc_idIn=mod_banner[pShowId+'List'][mod_banner[pShowId+'Index']];if(mod_banner[pShowId+'Effect']=='fade'){fnGetObj(loc_idIn).style.position='';fnFade(loc_idIn,0,0,0);}else{fnGetObj(loc_idIn).style.position='absolute';fnScrollEffect('DIV'+pShowId,loc_idOut,loc_idIn,0,15,-1);}visualizzaElemento(loc_idIn);mod_banner[pShowId+'Visible']=true;if(mod_banner[pShowId+'Effect']=='fade'){var timer1=setTimeout("fnFade('"+loc_idIn+"',0,200,10)",200);var timer2=setTimeout("fnBannerShow('"+pShowId+"',"+pTime+")",pTime+2000);}else{var timer2=setTimeout("fnBannerShow('"+pShowId+"',"+pTime+")",pTime);}}else{if(mod_banner[pShowId+'Effect']=='scroll'){if(loc_idOut>''){fnScrollEffect('DIV'+pShowId,loc_idOut,loc_idIn,0,15,-1);}}}}function fnStump(pId,pSuWidth,pSuHeight,pSuStep,pSuLeft,pSuColor,pSuOpacity,pSuFactor){var i;var lSuMax;var lSuFactor;var lSuTotalWidth;var lft;var loc_opacity;}var mod_countList=new Array();var mod_textList=new Array();var mod_valueList=new Array();var mod_urlList=new Array();var mod_winList=new Array();var mod_selList=new Array();function fnListURL(pLN,pURL,pDivClass){mod_urlList[pLN]=pURL;mod_winList[pLN]=pLN+'_query';mod_selList[pLN]='';fnWrite('<form name="'+pLN+'_form" id="'+pLN+'_form" action="" method="POST" target="'+pLN+'_query" >');fnWrite('<input type=hidden name="lista" id="'+pLN+'_lista">');fnWrite('<input type=hidden name="'+pLN+'_sel" id="'+pLN+'_sel">');fnWrite('</form>');fnWrite('<div style="display:none" id="'+pLN+'_div" class="'+pDivClass+'"></div>');fnWrite('<iframe name="'+pLN+'_query" src="" noresize marginwidth="0" marginheight="0" border=0 style="position:absolute;left:-20px" width="0" height="0"></iframe>');}function fnListLoad(pLN,pSelection){var loc_reList;var loc_reSel;var loc_url;if(mod_winList[pLN]){if(!mod_countList[pLN]){mod_countList[pLN]=0;mod_textList[pLN]=new Array();mod_valueList[pLN]=new Array();}else{mod_countList[pLN]=0;}fnGetObj(pLN+'_lista').value=pLN;fnGetObj(pLN+'_sel').value=pSelection;fnGetObj(pLN+'_form').action=mod_urlList[pLN];fnGetObj(pLN+'_form').submit();}}function fnListAdd(pLN,pIndex,pText,pVe){var i;var lix;if(!mod_countList[pLN]){mod_countList[pLN]=0;mod_textList[pLN]=new Array();mod_valueList[pLN]=new Array();}if(pIndex>=0 && pIndex<mod_countList[pLN]){for(i=mod_countList[pLN];i>pIndex;i--){mod_textList[pLN][i]=mod_textList[pLN][i-1];mod_valueList[pLN][i]=mod_valueList[pLN][i-1];}lix=pIndex;}else{lix=mod_countList[pLN];}mod_textList[pLN][lix]=pText;mod_valueList[pLN][lix]=pVe;mod_countList[pLN]++;}function fnListRemoveByIndex(pLN,pIndex){var i;if(!mod_countList[pLN]){return false;}if(pIndex>=0 && pIndex<mod_countList[pLN]){for(i=pIndex;i<(mod_countList[pLN]-1);i++){mod_textList[pLN][i]=mod_textList[pLN][i+1];mod_valueList[pLN][i]=mod_valueList[pLN][i+1];}mod_countList[pLN]--;return true;}return false;}function fnListRemoveByValue(pLN,pVe){var i;var lix;var ltv=false;if(!mod_countList[pLN]){return false;}for(lix=0;lix<mod_countList[pLN];lix++){if(mod_valueList[pLN][lix]==pVe) break;}if(lix>=0 && lix<mod_countList[pLN]){for(i=lix;i<(mod_countList[pLN]-1);i++){mod_textList[pLN][i]=mod_textList[pLN][i+1];mod_valueList[pLN][i]=mod_valueList[pLN][i+1];}mod_countList[pLN]--;return true;}return false;}function fnSetProp(pArrayProp,pProperty,pVe){try {if(pArrayProp){pArrayProp[pProperty]=pVe;return true;}}catch(e){}return false;}function fnGetProp(pArrayProp,pProperty){try {if(pArrayProp){if(pArrayProp[pProperty]){return pArrayProp[pProperty];}}}catch(e){}return null;}function fnGetPropJS(pOpsVar,pOps){var loc_JS='';if(pOpsVar>''){loc_JS=loc_JS+pOpsVar+'=new Array();\n';if(pOps){if(fnGetProp(pOps,CO_TBLOPT_NAME)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_NAME,\''+fnGetProp(pOps,CO_TBLOPT_NAME)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_ID)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_ID,\''+fnGetProp(pOps,CO_TBLOPT_ID)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_COLSPAN)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_COLSPAN,\''+fnGetProp(pOps,CO_TBLOPT_COLSPAN)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_ROWSPAN)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_ROWSPAN,\''+fnGetProp(pOps,CO_TBLOPT_ROWSPAN)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_CLASS)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_CLASS,\''+fnGetProp(pOps,CO_TBLOPT_CLASS)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_WIDTH)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_WIDTH,\''+fnGetProp(pOps,CO_TBLOPT_WIDTH)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_HEIGHT)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_HEIGHT,\''+fnGetProp(pOps,CO_TBLOPT_HEIGHT)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_ALIGN)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_ALIGN,\''+fnGetProp(pOps,CO_TBLOPT_ALIGN)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_VALIGN)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_VALIGN,\''+fnGetProp(pOps,CO_TBLOPT_VALIGN)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_OTHER)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_OTHER,\''+fnGetProp(pOps,CO_TBLOPT_OTHER)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_DESCRIPTION)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_DESCRIPTION,\''+fnGetProp(pOps,CO_TBLOPT_DESCRIPTION)+'\');\n';}if(fnGetProp(pOps,CO_TBLOPT_DESCRDISPLAY)){loc_JS=loc_JS+'fnSetProp('+pOpsVar+',CO_TBLOPT_DESCRDISPLAY,\''+fnGetProp(pOps,CO_TBLOPT_DESCRDISPLAY)+'\');\n';}}}return loc_JS;}function fnSetValueText(pId,pVe){var lem=fnGetObj(pId);if(lem){lem.value=pVe;}}function setSelectValue(pId,pVe){var i;var lem=fnGetObj(pId);if(lem){for(i=0;(i<lem.length) && (lem[i].value!=pVe) ;i++);if(i<lem.length){lem.selectedIndex=i;}}}function fnAddSelectValue(pId,pVe,pDs){var i;var lem=fnGetObj(pId);var lop;if(lem){for(i=0;(i<lem.length) && (lem[i].value!=pVe) ;i++);if(i<lem.length){lem.selectedIndex=i;}else{lop=document.createElement("OPTION");lem.options.add(lop);lop.text=pDs;lop.value=pVe;}}}function fnDeleteSelectValue(pId,pVe){var i;var lem=fnGetObj(pId);var lop;if(lem){for(i=0;(i<lem.length) && (lem[i].value!=pVe) ;i++);if(i<lem.length){lem.options.remove(i);}}}function fnRemoveAllSelectOptions(pId){var i;var lem;lem=fnGetObj(pId);if(lem){for(i=lem.length-1;i>=0;i--){lem.options.remove(i);}}}function fnSetSelectOptions(pId,pLN,pSearch){var loc_ok;var i;fnRemoveAllSelectOptions(pId);for(i=0;i<mod_countList[pLN];i++){if(pSearch){loc_ok=mod_textList[pLN][i].search(pSearch);}else{loc_ok=0;}if(loc_ok>=0){fnAddSelectValue(pId,mod_textList[pLN][i],mod_valueList[pLN][i]);}}}function fnGetHtmlList(pTemplateHtml,pHtmlSep,pLN,pSearch,pOddClass,pEvenClass){var loc_ok;var lh='';var lhRow;var loc_reText;var loc_reValue;var loc_reClass;var i;var loc_pari;loc_reText=/TEXTTAG/g;loc_reValue=/VALUETAG/g;loc_reClass=/CLASSTAG/g;loc_pari=false;for(i=0;i<mod_countList[pLN];i++){if(pSearch){loc_ok=mod_textList[pLN][i].search(pSearch);}else{loc_ok=0;}if(loc_ok>=0){lhRow=pTemplateHtml.replace(loc_reText,mod_textList[pLN][i]);lhRow=lhRow.replace(loc_reValue,mod_valueList[pLN][i]);if(loc_pari){lhRow=lhRow.replace(loc_reClass,pEvenClass);loc_pari=false;}else{lhRow=lhRow.replace(loc_reClass,pOddClass);loc_pari=true;}if(lh>'') lh=lh+pHtmlSep;lh=lh+lhRow;}}return lh;}function fnSetHtmlListRelPos(pLN,pObjAbs,pVPosType,pVPosPX,pHPosType,pHPosPX){fnSetRelativeObjPos(fnGetObj(pLN+'_div'),pObjAbs,pVPosType,pVPosPX,pHPosType,pHPosPX);}function fnRefreshHtmlList(pLN,pTemplateHtml,pSep,pSearchValue,pSearchStart,pOddClass,pEvenClass){var loc_re=null;if(pSearchStart){if(pSearchStart>0){if(pSearchValue.length>=pSearchStart){if(pSearchValue.substr(0,pSearchStart).toLowerCase()!=mod_selList[pLN].toLowerCase()){mod_selList[pLN]=pSearchValue.substr(0,pSearchStart);fnListLoad(pLN,mod_selList[pLN]);}loc_re=new RegExp('^'+pSearchValue,'i');}else{loc_re=new RegExp('^$','i');}}}lh=fnGetHtmlList(pTemplateHtml,pSep,pLN,loc_re,pOddClass,pEvenClass);fnGetObj(pLN+'_div').innerHTML=lh;if(lh>''){visualizzaElemento(pLN+'_div');}else{nascondiElemento(pLN+'_div');}}function fnRefreshSelectList(pId,pLN,pSearchValue,pSearchStart){var loc_re=null;if(pSearchStart){if(pSearchStart>0){if(pSearchValue.length>=pSearchStart){if(pSearchValue.substr(0,pSearchStart).toLowerCase()!=mod_selList[pLN].toLowerCase()){mod_selList[pLN]=pSearchValue.substr(0,pSearchStart);fnListLoad(pLN,mod_selList[pLN]);}loc_re=new RegExp('^'+pSearchValue,'i');}else{loc_re=new RegExp('^$','i');}}}fnSetSelectOptions(pId,pLN,loc_re);}function fnInsertText(pObj,pText){var loc_rng=new TextRange();if(pObj){loc_rng.text=pText;loc_rng.execCommand('copy');pObj.focus();document.execCommand('paste');return true;}return false;}function fnInsertDate(pObj,pDateObj){if(pDateObj){if(pDateObj.value){if(pDateObj.value>''){return fnInsertText(pObj,' #'+pDateObj.value+'#');}}}return false;}function fnInsertString(pObj,pStringObj){if(pStringObj){if(pStringObj.value){if(pStringObj.value>''){return fnInsertText(pObj,' \''+pStringObj.value+'\'');}}}return false;}function fnInsertNumber(pObj,pNumberObj){if(pNumberObj){if(pNumberObj.value){if(pNumberObj.value>''){return fnInsertText(pObj,' %'+pNumberObj.value+'%');}}}return false;}function fnInsertList(pObj,pListObj,pPrevText,pPostText){var lIs;var lCn;var i;lIs=false;lCn=0;if(pListObj){for(i=0;i<pListObj.length;i++){if(pListObj[i].selected){lCn++;}}if(lCn>0){for(i=0;i<pListObj.length;i++){if(pListObj[i].selected){if(!lIs){if(lCn==1 ){if(!fnInsertText(pObj,pPrevText+pListObj[i].value+pPostText)) return false;}else{if(!fnInsertText(pObj,'(('+pPrevText+pListObj[i].value+pPostText+')')) return false;}lIs=true;}else{if(!fnInsertText(pObj,' || ('+pPrevText+pListObj[i].value+pPostText+')')) return false;}}}}}if(lIs && (lCn>1)){if(!fnInsertText(pObj,')')) return false;}}function fnInsertList2(pObj,pSelectObj,pListObj,pPrevText,pIncludeText,pPostText){var lIs;var lCn;var i;lIs=false;lCn=0;if(pSelectObj && pListObj){if(pSelectObj.selectedIndex>=0){for(i=0;i<pListObj.length;i++){if(pListObj[i].selected){lCn++;}}if(lCn>0){for(i=0;i<pListObj.length;i++){if(pListObj[i].selected){if(!lIs){if(lCn==1 ){if(!fnInsertText(pObj,pPrevText+pSelectObj[pSelectObj.selectedIndex].value+pIncludeText+pListObj[i].value+pPostText)) return false;}else{if(!fnInsertText(pObj,'(('+pPrevText+pSelectObj[pSelectObj.selectedIndex].value+pIncludeText+pListObj[i].value+pPostText+')')) return false;}lIs=true;}else{if(!fnInsertText(pObj,' || ('+pPrevText+pSelectObj[pSelectObj.selectedIndex].value+pIncludeText+pListObj[i].value+pPostText+')')) return false;}}}}}}if(lIs && (lCn>1)){if(!fnInsertText(pObj,')')) return false;}}var CO_LANGSNUM=0;var CO_LANGSID=1;var CO_LANGSDESCR=2;var CO_LANGSICON=3;var CO_LANGSSELECTED=4;var mod_lang=new Array();function fnAddLang(pId,pLang,pIcon){if(!mod_lang[CO_LANGSNUM]){mod_lang[CO_LANGSNUM]=0;mod_lang[CO_LANGSSELECTED]=new Array();mod_lang[CO_LANGSID]=new Array();mod_lang[CO_LANGSDESCR]=new Array();mod_lang[CO_LANGSICON]=new Array();}i=mod_lang[CO_LANGSNUM];mod_lang[CO_LANGSNUM]++;mod_lang[CO_LANGSID][i]=pId;mod_lang[CO_LANGSDESCR][i]=pLang;mod_lang[CO_LANGSICON][i]=pIcon;}function fnGetLangSelectHTML(pSelId,pIcon,pOnSelect){var i;var lh='';if(mod_lang[CO_LANGSNUM]){if(!mod_lang[CO_LANGSSELECTED][pSelId]){mod_lang[CO_LANGSSELECTED][pSelId]=0;}if(pIcon){}else{lh=lh+'<select name="'+pSelId+'Lang" id="'+pSelId+'Lang" onChange="javascript: fnLangSelectOnSelect(\''+pSelId+'\','+pOnSelect+');">\n';for(i=0;i<mod_lang[CO_LANGSNUM];i++){if(mod_lang[CO_LANGSSELECTED][pSelId]==i){lh=lh+'<option selected value="'+mod_lang[CO_LANGSID][i]+'">'+mod_lang[CO_LANGSDESCR][i]+'</option>\n';}else{lh=lh+'<option value="'+mod_lang[CO_LANGSID][i]+'">'+mod_lang[CO_LANGSDESCR][i]+'</option>\n';}}lh=lh+'</select>\n';}}return lh;}function fnLangSelectOnSelect(pSelId,pfnOnSelect){var lem=fnGetObj(pSelId+'Lang');if(lem){if(lem.selectedIndex>=0){mod_lang[CO_LANGSSELECTED][pSelId]=lem.selectedIndex;pfnOnSelect(pSelId,lem[lem.selectedIndex].value);}}}function fnSelectLangIndex(pSelId,pIndex){var lem=fnGetObj(pSelId+'Lang');if(mod_lang[CO_LANGSNUM]){if(!mod_lang[CO_LANGSSELECTED]){mod_lang[CO_LANGSSELECTED]=new Array();}mod_lang[CO_LANGSSELECTED][pSelId]=pIndex;if(lem){lem.selectedIndex=pIndex;}}}function fnSetLang(pSelId,pId){var i;mod_lang[CO_LANGSSELECTED][pSelId]=0;if(mod_lang[CO_LANGSNUM]){if(!mod_lang[CO_LANGSSELECTED]){mod_lang[CO_LANGSSELECTED]=new Array();}for(i=0; i<mod_lang[CO_LANGSNUM];i++){if(mod_lang[CO_LANGSID][i]==pId){mod_lang[CO_LANGSSELECTED][pSelId]=i;}}}}function fnGetSelectFormHTML(pId,pSelectText,pDescrText,pAddText,pCopyText,pDeleteText,pDeleteConfirmText,pCancelText,pOnSelect,pOnInsert,pOnDelete,pOnCopy){var lh='';lh=lh+'<b>'+pSelectText+'</b>&nbsp;<select name="'+pId+'" id="'+pId+'" onChange="javascript: fnSelectFormOnSelect(\''+pId+'\','+pOnSelect+');"></select>\n';lh=lh+'&nbsp;<a href="javascript: fnSelectFormOnInsertReq(\''+pId+'\');">'+pAddText+'</a>\n';lh=lh+'&nbsp;<a href="javascript: fnSelectFormOnCopyReq(\''+pId+'\');">'+pCopyText+'</a>\n';lh=lh+'&nbsp;<a href="javascript: fnSelectFormOnDelete(\''+pId+'\',\''+pDeleteConfirmText+'\','+pOnDelete+','+pOnSelect+');">'+pDeleteText+'</a>\n';lh=lh+'<br>\n';lh=lh+'<div id="'+pId+'DivIns" style="display:none">\n';lh=lh+pDescrText+'&nbsp;<input type=text name="'+pId+'Insert" id="'+pId+'Insert" size=50>\n';lh=lh+'<input type="button" onclick="javascript: fnSelectFormOnInsert(\''+pId+'\','+pOnInsert+','+pOnSelect+');" value="'+pAddText+'" >\n';lh=lh+'<input type="button" onclick="javascript: fnSelectFormOnCancel(\''+pId+'\');" value="'+pCancelText+'" >\n';lh=lh+'</div><br>\n';lh=lh+'<div id="'+pId+'DivCpy" style="display:none">\n';lh=lh+pDescrText+'&nbsp;<input type=text name="'+pId+'Copy" id="'+pId+'Copy" size=50>\n';lh=lh+'<input type="button" onclick="javascript: fnSelectFormOnCopy(\''+pId+'\','+pOnCopy+','+pOnSelect+');" value="'+pCopyText+'" >\n';lh=lh+'<input type="button" onclick="javascript: fnSelectFormOnCancel(\''+pId+'\');" value="'+pCancelText+'" >\n';lh=lh+'</div><br>\n';return lh;}function fnSelectFormOnSelect(pId,pfnOnSelect){var lem=fnGetObj(pId);if(lem){if(lem.selectedIndex>=0){fnSelectFormOnCancel(pId);pfnOnSelect(pId,lem[lem.selectedIndex].value);}}}function fnSelectFormOnDelete(pId,pDeleteConfirmText,pfnOnDelete,pfnOnSelect){var lVl;var lem=fnGetObj(pId);if(lem){if(lem.selectedIndex>=0){if(window.confirm(pDeleteConfirmText)){fnSelectFormOnCancel(pId);lVl=lem[lem.selectedIndex].value;if(pfnOnDelete(pId,lVl)){fnDeleteSelectValue(pId,lVl);if(lem.selectedIndex>=0){pfnOnSelect(pId,lem[lem.selectedIndex].value);}else{pfnOnSelect(pId,null);}}}}}}function fnSelectFormOnInsert(pId,pfnOnInsert,pfnOnSelect){var lVl;var lDs;var lem=fnGetObj(pId+'Insert');if(lem){lDs=lem.value;if(lDs>''){fnSelectFormOnCancel(pId);lVl=pfnOnInsert(pId,lDs);if(lVl){fnAddSelectValue(pId,lVl,lDs)
setSelectValue(pId,lVl);pfnOnSelect(pId,lVl);}}}}function fnSelectFormOnCancel(pId){var lemI=fnGetObj(pId+'Insert');var lemC=fnGetObj(pId+'Copy');var lemS=fnGetObj(pId);nascondiElemento(pId+'DivIns');nascondiElemento(pId+'DivCpy');if(lemI){lemI.value='';}if(lemC){lemC.value='';}}function fnSelectFormOnCopyReq(pId){var lemS=fnGetObj(pId);fnSelectFormOnCancel(pId);if(lemS){if(lemS.selectedIndex>=0){visualizzaElemento(pId+'DivCpy');}}}function fnSelectFormOnInsertReq(pId){var lemS=fnGetObj(pId);fnSelectFormOnCancel(pId);if(lemS){visualizzaElemento(pId+'DivIns');}}function fnSelectFormOnCopy(pId,pfnOnCopy,pfnOnSelect){var lVl;var lDs;var lemS=fnGetObj(pId);var lem=fnGetObj(pId+'Copy');if(lemS){if(lemS.selectedIndex>=0){if(lem){lDs=lem.value;if(lDs>''){fnSelectFormOnCancel(pId);lVl=lemS[lemS.selectedIndex].value;lVl=pfnOnCopy(pId,lDs,lVl);if(lVl){fnAddSelectValue(pId,lVl,lDs);setSelectValue(pId,lVl);pfnOnSelect(pId,lVl);}}}}}}var ScrollImgCount=new Array();var ScrollImgWidth=new Array();var ScrollImgStop=new Array();function fnMouseMoveScrollImg(pId){ScrollImgStop[pId]=true;}function fnMouseOutScrollImg(pId){ScrollImgStop[pId]=false;}function fnDivScrollImg(pId,pWidth,pHeight,pStyle,pSuWidth,pSuColor,pSuOpacity){ScrollImgStop[pId]=false;ScrollImgCount[pId]=0;ScrollImgWidth[pId]=0;document.write('<div id="'+pId+'" style="position:relative;width:'+pWidth+';height:'+pHeight+';overflow:hidden;'+pStyle+'">');document.write('<div id="'+pId+'Img" onmousemove="javascript: fnMouseMoveScrollImg(\''+pId+'\')" onmouseout="javascript: fnMouseOutScrollImg(\''+pId+'\')" style="position:absolute;top:0px;left:'+pWidth+';height:'+pHeight+';"></div>');fnStump(pId+'Left',pSuWidth,pHeight,1,0,pSuColor,pSuOpacity,-1);fnStump(pId+'Right',pSuWidth,pHeight,1,pWidth,pSuColor,pSuOpacity,1);document.write('</div>');}function fnScrollImgLoad(pId,pIconSrc,pAlt,pUrl,pPopUp,pOpzioniHtml){var lDv=document.getElementById(pId+'Img');var loc_img;if(lDv){ScrollImgCount[pId]++ ;loc_img=new Image();loc_img.src=pIconSrc;if(pUrl>''){if(pPopUp){lh='<a id='+pId+'Href'+ScrollImgCount[pId]+' href="javascript: fnPopUpImg(\''+pUrl+'\',\''+pAlt+'\');">';lh=lh+'<img id='+pId+'Img'+ScrollImgCount[pId]+' '+pOpzioniHtml+' alt="'+pAlt+'" src="'+pIconSrc+'" border=0>';lh=lh+'</a>';}else{lh='<a id='+pId+'Href'+ScrollImgCount[pId]+' href="'+pUrl+'">';lh=lh+'<img id='+pId+'Img'+ScrollImgCount[pId]+' '+pOpzioniHtml+' alt="'+pAlt+'" src="'+pIconSrc+'" border=0>';lh=lh+'</a>';}}else{lh='<img id='+pId+'Img'+ScrollImgCount[pId]+' '+pOpzioniHtml+' alt="'+pAlt+'" src="'+pIconSrc+'" border=0>';}ScrollImgWidth[pId]=ScrollImgWidth[pId]+loc_img.width+4;lDv.style.width=ScrollImgWidth[pId]+'px';lDv.innerHTML=lDv.innerHTML+lh;}}function fnScrollImgSlide(pId,pStep,pTimer){var lDvSup=document.getElementById(pId);var lDv=document.getElementById(pId+'Img');if(lDv){if(ScrollImgCount[pId]>0){if(!ScrollImgStop[pId]){lDv.style.left=(parseInt(lDv.style.left)+pStep)+'px';if(parseInt(lDv.style.left)<(-parseInt(lDv.style.width))){lDv.style.left=lDvSup.style.width;}}var timer=setTimeout("fnScrollImgSlide('"+pId+"',"+pStep+","+pTimer+")",pTimer);}}}function fnPrintHtml(pTitle,pHtml,pBodyHead){var loc_winReport;var lh='';lh=lh+'<HTML>';lh=lh+'<HEAD>';if(pTitle>''){    lh=lh+'<TITLE>'+pTitle+'</TITLE>';}lh=lh+'</HEAD>';lh=lh+'<BODY leftmargin=0 topmargin=0 bottomMargin=0 rightMargin=0>';lh=lh+pBodyHead;lh=lh+pHtml;lh=lh+'</BODY>';lh=lh+'</HTML>';loc_winReport=window.open("","loc_winReport","menubar=0,toolbar=1,scrollbars=1");if(loc_winReport==null) return false;loc_winReport.document.write(lh);}function fnTipoCorretto(pVl,pTipo,pObb,pMinChk,pMin,pMaxChk,pMax,pDatoOk,pTipoErr,pObbErr,pMinErr,pMaxErr)  {var re;if(pObb){if(pVl==''){return pObbErr;}}switch(pTipo){case 'E':
if((pVl.indexOf("@")<=1) || (pVl.indexOf("@")>=(pVl.length-5)) || (pVl.indexOf(".")<=0)){return pTipoErr;}else{return pDatoOk;}break;case 'I':
re="[^0-9\-]";if(pVl.search(re)>=0){return pTipoErr;}else{if(pMinChk){if(pVl<pMin){return pMinErr;}else{if(pMaxChk){if(pVl>pMax){return pMaxErr;}else{return pDatoOk;}}}}return pDatoOk;}break;case 'R':
re="[^0-9\-\.\,]";if(pVl.search(re)>=0){return pTipoErr;}else{if(pMinChk){if(pVl<pMin){return pMinErr;}else{if(pMaxChk){if(pVl>pMax){return pMaxErr;}else{return pDatoOk;}}}}return pDatoOk;}break;case 'D':
return pDatoOk;break;case 'T':
return pDatoOk;break;default:
return pDatoOk;break;}}var PAR_models=new Array();function fn_PAR_SetModel(pModel,pHTML){PAR_models[pModel]=pHTML;}function fn_PAR_LoadModel(pModel,pTitle,pText,pUrl,pImgSrc,pIconSrc,pPopUpImg,pTitleAlign,pTextAlign,pImgAlign,pOps){var lh='';var loc_tag='';if(PAR_models[pModel]>''){lh=PAR_models[pModel];loc_tag=/££TITLE££/gim;lh=lh.replace(loc_tag,pTitle);loc_tag=/££TEXT££/gim;lh=lh.replace(loc_tag,pText);loc_tag=/££URL££/gim;lh=lh.replace(loc_tag,pUrl);loc_tag=/££IMGSRC££/gim;lh=lh.replace(loc_tag,pImgSrc);loc_tag=/££POPUPIMG££/gim;lh=lh.replace(loc_tag,pPopUpImg);loc_tag=/££ICONSRC££/gim;lh=lh.replace(loc_tag,pIconSrc);loc_tag=/££TITLEALIGN££/gim;lh=lh.replace(loc_tag,pTitleAlign);loc_tag=/££TEXTALIGN££/gim;lh=lh.replace(loc_tag,pTextAlign);loc_tag=/££IMGALIGN££/gim;lh=lh.replace(loc_tag,pImgAlign);loc_tag=/££OPTIONS££/gim;lh=lh.replace(loc_tag,pOps);}return lh;}function fn_PAR_GetUrl(pDocument,pUrl,pArtId,pArtUrl,pImgSrc){var loc_link='';if(pDocument>''){loc_link=pDocument;}else if(pUrl>''){loc_link=pUrl;}else if(pArtId>''){loc_link=pArtUrl;}else if(pImgSrc>''){loc_link=pImgSrc;}else{loc_link='';}return loc_link;}function fn_PAR_GetText(pText,pArtId,pSelArt,pPrArt){var loc_testo='';loc_testo=pText;if(pArtId>''){loc_testo='<table><tr><td colspan=2>'+loc_testo+'</td></tr><tr><td>'+pSelArt+'</td><td>'+pPrArt+'</td></tr></table>';}return loc_testo;}function fn_PAR_GetImgSrc(pImgUrl,pDirUrl){var loc_img;loc_img=pImgUrl;if(loc_img==pDirUrl) loc_img='';return loc_img;}function fnHTMLIcon(pIcon,pUrl,pAlt,pImg,pPopUp,pId){var loc_idIcon='';var loc_idHref='';var lh='';if(pIcon>''){if(pId>''){loc_idIcon=' id="'+pId+'"';loc_idHref=' id="HREF'+pId+'"';}if(pUrl>''){if(pImg){if(pPopUp){lh='<a'+loc_idHref+' href="javascript: fnPopUpImg(\''+pUrl+'\',\''+pAlt+'\');">';lh=lh+'<img'+loc_idIcon+' alt="'+pAlt+'" src="'+pIcon+'" border=0>';lh=lh+'</a>';}else{lh='<a'+loc_idHref+' href="'+pUrl+'">';lh=lh+'<img'+loc_idIcon+' alt="'+pAlt+'" src="'+pIcon+'" border=0>';lh=lh+'</a>';}}else{if(pPopUp){lh='<a'+loc_idHref+' href="'+pUrl+'" target="_new">';lh=lh+'<img'+loc_idIcon+' alt="'+pAlt+'" src="'+pIcon+'" border=0>';lh=lh+'</a>';}else{lh='<a'+loc_idHref+' href="'+pUrl+'" target="_self">';lh=lh+'<img'+loc_idIcon+' alt="'+pAlt+'" src="'+pIcon+'" border=0>';lh=lh+'</a>';}}}else{lh='<img'+loc_idIcon+' alt="'+pAlt+'" src="'+pIcon+'" border=0>';}}return lh;}function fnPopUpImg(URL,pTitle){day=new Date();id=day.getTime();var imgG=new Image();imgG.src=URL;if(imgG.width>100){eval("page"+id+"=window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,width="+(imgG.width+20)+",height="+(imgG.height+20)+"');");}else{eval("page"+id+"=window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,width=500,height=500');");}}var popUpMenu=new Array();function fnPopUpMenuOpen(pId){var elePopUp=fnGetObj(pId);if(elePopUp){popUpMenu[pId]=true;visualizzaElemento(pId);}}function fnPopUpMenuOver(pId){popUpMenu[pId]=true;}function fnPopUpMenuOut(pId){popUpMenu[pId]=false;window.setTimeout("fnPopUpMenuTOUT('"+pId+"');",100);}function fnPopUpMenuTOUT(pId){if(!popUpMenu[pId])
{nascondiElemento(pId);}}function fnPopUpMenuClose(pId){nascondiElemento(pId);popUpMenu[pId]=false;}function fnEliminaRigaInput(pIdRiga){var lDvRiga;lDvRiga=fnGetObj(pIdRiga);if(lDvRiga){lDvRiga.style.display='none';lDvRiga.innerHTML='';}}function fnAggiungiRigaInput(pIdDiv,pNumRighe,pTemplate,pEliminazione){var lDvLista;var lDvTemplate;lDvLista=fnGetObj(pIdDiv);if(lDvLista){loc_template="<div id=riga"+pNumRighe+">";loc_template=loc_template+pTemplate;if(pEliminazione){loc_template=loc_template+'<input type=button value=Elimina onclick="javascript: fnEliminaRigaInput(\'riga'+pNumRighe+'\');">';}loc_template=loc_template+"</div>";lDvLista.innerHTML=lDvLista.innerHTML+loc_template;}else{pNumRighe--;}return pNumRighe;}var listaId=new Array();var textBackup=new Array();function fnAddId(pGroupId,pId){if(!listaId[pGroupId]){listaId[pGroupId]=0;listaId[pGroupId+'Index']=0;}listaId[pGroupId]++;listaId[pGroupId+listaId[pGroupId]]=pId;return listaId[pGroupId];}function fnPrevId(pGroupId){if(!listaId[pGroupId]){listaId[pGroupId]=0;listaId[pGroupId+'Index']=0;}if(listaId[pGroupId+'Index']>1){listaId[pGroupId+'Index']--;return listaId[pGroupId+listaId[pGroupId+'Index']];}else{return '';}}function fnNextId(pGroupId){if(!listaId[pGroupId]){listaId[pGroupId]=0;listaId[pGroupId+'Index']=0;}if(listaId[pGroupId+'Index']<listaId[pGroupId]){listaId[pGroupId+'Index']++;return listaId[pGroupId+listaId[pGroupId+'Index']];}else{return '';}}function fnSetCurrentIdx(pGroupId,pIdx){listaId[pGroupId+'Index']=pIdx;}function fnSaveText(pId,pType,pText){textBackup['TEXT'+pId+pType]=pText;}function fnLoadText(pId,pType){return textBackup['TEXT'+pId+pType];}var par_imgList=new Array();var par_txtList=new Array();var par_dscrList=new Array();var par_linkList=new Array();var par_idxList=new Array();var par_countList=new Array();var par_indexList=new Array();var par_preloadedImages=new Array();function fnSaveIconList(pLN,pImg,pTesto,pDescr,pLink,pIdx){if(!par_countList[pLN]){par_countList[pLN]=0;par_indexList[pLN]=0;}var loc_indice=pLN+par_countList[pLN];par_preloadedImages[loc_indice]=new Image();par_preloadedImages[loc_indice].src=pImg;par_imgList[loc_indice]=pImg;par_txtList[loc_indice]=pTesto;par_dscrList[loc_indice]=pDescr;par_linkList[loc_indice]=pLink;par_idxList[loc_indice]=pIdx;par_countList[pLN]=par_countList[pLN]+1;}function fnStartClickIconTimer(pLN,pTempoInizio,pTempoCiclo){if(!par_countList[pLN]) return;var timer=setTimeout("fnClickIconTimer('"+pLN+"',"+pTempoCiclo+")",pTempoInizio);}function fnClickIconTimer(pLN,pTempo){if(!par_countList[pLN]) return;var loc_indice=pLN+par_indexList[pLN];par_indexList[pLN]=par_indexList[pLN]+1;if(par_indexList[pLN]>=par_countList[pLN]) par_indexList[pLN]=0;fnClickIcon(par_imgList[loc_indice],par_txtList[loc_indice],par_dscrList[loc_indice],par_linkList[loc_indice]);fnSetCurrentIdx('ICONE',par_idxList[loc_indice]);var timer=setTimeout("fnClickIconTimer('"+pLN+"',"+pTempo+")",pTempo);}function fnClickIcon(pImg,pTesto,pDescr,pLink){MM_swapImage('IMMAGINECENTRALE','',pImg,1);fnSwapText('DIV_TESTOIMMAGINE',pTesto);fnSwapText('DIV_TITOLOIMMAGINE',pDescr);fnSwapLink('LINKCENTRALE',pLink);}function fnSwapText(pDiv,pText){var lem=fnGetObj(pDiv);if(lem){textBackup[pDiv]=lem.innerHTML;lem.innerHTML=pText;}}function fnRestoreText(pDiv){var lem=fnGetObj(pDiv);if(lem){if(textBackup[pDiv]){lem.innerHTML=textBackup[pDiv];}else
{lem.innerHTML='';}}}function fnSwapLink(pA,pText){var lem=fnGetObj(pA);if(lem){textBackup[pA]=lem.href;textBackup[pA+'cursor']=lem.style.cursor;textBackup[pA+'target']=lem.target;if(pText){if(pText=='javascript:;' || pText==''){hrefvuoto=document.createElement('a');lem.target='_self';lem.style.cursor='default';lem.href=hrefvuoto.href;}else{lem.style.cursor='hand';lem.target='_new';lem.href=pText;}}else{hrefvuoto=document.createElement('a');lem.target='_self';lem.style.cursor='default';lem.href=hrefvuoto.href;}}}function fnRestoreLink(pA){var lem=fnGetObj(pA);if(lem){if(textBackup[pA+'cursor']){lem.href=textBackup[pA];lem.style.cursor=textBackup[pA+'cursor'];lem.target=textBackup[pA+'target'];}else
{hrefvuoto=document.createElement('a');lem.target='_self';lem.style.cursor='default';lem.href=hrefvuoto.href;}}}function elementoVisibile(id){var lem=fnGetObj(id);if(lem){if(lem.style.display=='none'){return(false);}else{return(true);}}else{return(false);}}function fnWriteCampoData(pForm,pCampo,pAnno,pMese,pGiorno,pTesto){fnWriteln('<input type="hidden" name="'+pCampo+'" id="'+pForm+pCampo+'" value="">');fnWriteln('<div style="display:none" class=DIVCALENDARIO id="'+pForm+pCampo+'CAL"></div>');fnWriteln('<input type="text" size="2" onblur="javascript: fnGetCampoData(\''+pForm+pCampo+'\');" name="'+pCampo+'GG" ID="'+pForm+pCampo+'GG">/<input type="text" size="2" onblur="javascript: fnGetCampoData(\''+pForm+pCampo+'\');" name="'+pCampo+'MM" ID="'+pForm+pCampo+'MM">/<input type="text" size="4" onblur="javascript: fnGetCampoData(\''+pForm+pCampo+'\');" name="'+pCampo+'AAAA" ID="'+pForm+pCampo+'AAAA">');fnWriteln(pTesto+'<img onclick="javascript: fnVisualizzaCalendario('+pForm+'.'+pForm+pCampo+'AAAA.value,'+pForm+'.'+pForm+pCampo+'MM.value,'+pForm+'.'+pForm+pCampo+'GG.value,\''+pForm+pCampo+'\');" src="modelli/STANDARD/immaginiComuni/calendar.gif">');fnSetCampoData(pAnno,pMese,pGiorno,pForm+pCampo);}function fnIsDate(pAnno,pMese,pGiorno){try {loc_data=new Date(pAnno,pMese-1,pGiorno);if(loc_data==null){return false;}else if(loc_data.getDate()==pGiorno){return true;}else{return false;}}catch(e){return false;}}function fnChiudiCalendario(pCampo){lDvEle=fnGetObj(pCampo+'CAL');if(lDvEle==null) return;lDvEle.innerHTML="";lDvEle.style.display='none';}function fnGetCampoData(pCampo){loc_campoEle=fnGetObj(pCampo);if(loc_campoEle==null) return;loc_campoEleGG=fnGetObj(pCampo+'GG');if(loc_campoEleGG==null) return;loc_campoEleMM=fnGetObj(pCampo+'MM');if(loc_campoEleMM==null) return;loc_campoEleAAAA=fnGetObj(pCampo+'AAAA');if(loc_campoEleAAAA==null) return;fnChiudiCalendario(pCampo);if(loc_campoEleAAAA.value>'' && loc_campoEleMM.value>'' && loc_campoEleGG.value>''){loc_anno=loc_campoEleAAAA.value*1;loc_mese=loc_campoEleMM.value*1;loc_giorno=loc_campoEleGG.value*1;if(fnIsDate(loc_anno,loc_mese,loc_giorno)){if(loc_mese<10){loc_campoEle.value="0"+loc_mese+"/";loc_campoEleMM.value="0"+loc_mese;}else{loc_campoEle.value=loc_mese+"/";loc_campoEleMM.value=loc_mese;}if(loc_giorno<10){loc_campoEle.value=loc_campoEle.value+"0"+loc_giorno+"/"+loc_anno;loc_campoEleGG.value="0"+loc_giorno;}else{loc_campoEle.value=loc_campoEle.value+loc_giorno+"/"+loc_anno;loc_campoEleGG.value=loc_giorno;}loc_campoEleAAAA.value=loc_anno;}else{loc_campoEle.value="";}}else{loc_campoEle.value="";}}function fnSetCampoDataInizioSettimana(pForm,pCampo){var d, t;var MinMilli=1000*60;var HrMilli=MinMilli*60;var DyMilli=HrMilli*24;d=new Date();g=d.getDay()-1;if(g==-1) g=6;t=d.getTime()-g*DyMilli;d.setTime(t);fnSetCampoData(d.getFullYear(),(d.getMonth()+1),d.getDate(),pForm+pCampo);}function fnSetCampoDataInizioAnno(pForm,pCampo){d=new Date();fnSetCampoData(d.getFullYear(),1,1,pForm+pCampo);}function fnSetCampoDataInizioMese(pForm,pCampo){d=new Date();fnSetCampoData(d.getFullYear(),(d.getMonth()+1),1,pForm+pCampo);}function fnSetCampoDataOggi(pForm,pCampo){d=new Date();fnSetCampoData(d.getFullYear(),(d.getMonth()+1),d.getDate(),pForm+pCampo);}function fnSetCampoDataNullo(pForm,pCampo){fnSetCampoData(0,0,0,pForm+pCampo);}function fnSetCampoData(pAnno,pMese,pGiorno,pCampo){loc_campoEle=fnGetObj(pCampo);if(loc_campoEle==null) return;loc_campoEleGG=fnGetObj(pCampo+'GG');if(loc_campoEleGG==null) return;loc_campoEleMM=fnGetObj(pCampo+'MM');if(loc_campoEleMM==null) return;loc_campoEleAAAA=fnGetObj(pCampo+'AAAA');if(loc_campoEleAAAA==null) return;fnChiudiCalendario(pCampo);if(fnIsDate(pAnno,pMese,pGiorno)){loc_anno=pAnno*1;loc_mese=pMese*1;loc_giorno=pGiorno*1;if(loc_mese<10){loc_campoEle.value="0"+loc_mese+"/";loc_campoEleMM.value="0"+loc_mese;}else{loc_campoEle.value=loc_mese+"/";loc_campoEleMM.value=loc_mese;}if(loc_giorno<10){loc_campoEle.value=loc_campoEle.value+"0"+loc_giorno+"/"+loc_anno;loc_campoEleGG.value="0"+loc_giorno;}else{loc_campoEle.value=loc_campoEle.value+loc_giorno+"/"+loc_anno;loc_campoEleGG.value=loc_giorno;}loc_campoEleAAAA.value=loc_anno;}else{loc_campoEle.value="";loc_campoEleGG.value="";loc_campoEleMM.value="";loc_campoEleAAAA.value="";}}function fnSetMonth(pMonth,pDesc,pMonthSel){var lVl='<option ';if(pMonthSel==pMonth){lVl += 'selected ';}if(pMonth<10){lVl += 'value="0'+pMonth+'">'+pDesc+'</option>';}else{lVl += 'value="'+pMonth+'">'+pDesc+'</option>';}return lVl;}function fnVisualizzaCalendario(pAnno,pMese,pGiorno,pCampo){var lVl;var lVlPrimo;var loc_mese;var loc_anno;var loc_giornoSet;var loc_giornoMese;var loc_ng;var loc_g;if(fnIsDate(pAnno,pMese,pGiorno)){lVl=new Date(pAnno,pMese-1,pGiorno);}else{lVl=new Date();}loc_mese=lVl.getMonth()+1;loc_anno=lVl.getYear();lVlPrimo=new Date(loc_anno,loc_mese-1,1);loc_giornoSet=lVlPrimo.getDay();loc_giornoMese=lVl.getDate();if(loc_giornoSet==0) loc_giornoSet=7;htmlCal='<table class=CALETABLE><tr class=CALETR1><td class=CALETD1 colspan=7><select name="C_MESE" id="C_MESE" onChange="javascript: fnVisualizzaCalendario('+loc_anno+',this[this.selectedIndex].value,1,\''+pCampo+'\');">';htmlCal += fnSetMonth(1,'Gennaio',loc_mese);htmlCal += fnSetMonth(2,'Febbraio',loc_mese);htmlCal += fnSetMonth(3,'Marzo',loc_mese);htmlCal += fnSetMonth(4,'Aprile',loc_mese);htmlCal += fnSetMonth(5,'Maggio',loc_mese);htmlCal += fnSetMonth(6,'Giugno',loc_mese);htmlCal += fnSetMonth(7,'Luglio',loc_mese);htmlCal += fnSetMonth(8,'Agosto',loc_mese);htmlCal += fnSetMonth(9,'Settembre',loc_mese);htmlCal += fnSetMonth(10,'Ottobre',loc_mese);htmlCal += fnSetMonth(11,'Novembre',loc_mese);htmlCal += fnSetMonth(12,'Dicembre',loc_mese);switch(loc_mese){case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
loc_ng=31;break;case 4:
case 6:
case 9:
case 11:
loc_ng=30;break;case 2:
if(fnIsDate("qq",loc_mese,29)){loc_ng=29;}else{loc_ng=28;}break;}htmlCal += '</select>&nbsp;&nbsp;<span class=CALEANNOMENO onclick="javascript: fnVisualizzaCalendario('+(loc_anno-1)+','+loc_mese+',1,\''+pCampo+'\');"><</span>';htmlCal += '<input type="text" size="4" name="C_ANNO" ID="C_ANNO" value="'+loc_anno+'" readonly>';htmlCal += '<span class=CALEANNOPIU onclick="javascript: fnVisualizzaCalendario('+(loc_anno+1)+','+loc_mese+',1,\''+pCampo+'\');">></span><span class=CALECLOSE onclick="javascript: fnChiudiCalendario(\''+pCampo+'\');">X</span>';htmlCal += '</td></tr><tr class=CALETR2><td class=CALETDLUN>Lun</td><td class=CALETDMAR>Mar</td><td class=CALETDMER>Mer</td><td class=CALETDGIO>Gio</td><td class=CALETDVEN>Ven</td><td class=CALETDSAB>Sab</td><td class=CALETDDOM>Dom</td></tr>';loc_g=1;htmlCal += '<tr class=CALETRGIORNI>';for(g=1;g<=7;g++){if(loc_giornoSet>g){htmlCal += '<td class=CALETDGIORNI>&nbsp;</td>';}else{if(loc_g<10){if(loc_g==loc_giornoMese){htmlCal += '<td class=CALETDGIORNOSEL><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">0'+loc_g+'</span></td>';}else{htmlCal += '<td class=CALETDGIORNI><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">0'+loc_g+'</span></td>';}}else{if(loc_g==loc_giornoMese){htmlCal += '<td class=CALETDGIORNOSEL><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">'+loc_g+'</span></td>';}else{htmlCal += '<td class=CALETDGIORNI><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">'+loc_g+'</span></td>';}}loc_g++;}}htmlCal += '</tr>';while (loc_g<=loc_ng){htmlCal += '<tr class=CALETRGIORNI>';for(g=1;g<=7;g++){if(loc_g>loc_ng){htmlCal += '<td class=CALETDGIORNI>&nbsp;</td>';}else{if(loc_g<10){if(loc_g==loc_giornoMese){htmlCal += '<td class=CALETDGIORNOSEL><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">0'+loc_g+'</span></td>';}else{htmlCal += '<td class=CALETDGIORNI><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">0'+loc_g+'</span></td>';}}else{if(loc_g==loc_giornoMese){htmlCal += '<td class=CALETDGIORNOSEL><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">'+loc_g+'</span></td>';}else{htmlCal += '<td class=CALETDGIORNI><span onclick="javascript: fnSetCampoData('+loc_anno+','+loc_mese+','+loc_g+',\''+pCampo+'\');">'+loc_g+'</span></td>';}}loc_g++;}}htmlCal += '</tr>';}htmlCal += '</table>';divCal=fnGetObj(pCampo+'CAL');divCal.innerHTML=htmlCal;divCal.style.display='';}function MM_preloadImages(){var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if(a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore(){var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d){var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}if(!(x=d[n])&&d.all) x=d.all[n]; for(i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function setTarget(pId,pTarget){ele=fnGetObj(pId);if(ele){ele.target=pTarget;}}function setCookie(name, value, expires, path, domain, secure)
{document.cookie= name+"="+escape(value) +
((expires) ? "; expires="+expires.toGMTString() : "") +
((path) ? "; path="+path : "") +
((domain) ? "; domain="+domain : "") +
((secure) ? "; secure" : "");}function getCookie(name)
{var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1)
{begin=dc.indexOf(prefix);if(begin!=0) return null;}else
{begin += 2;}var end=document.cookie.indexOf(";", begin);if(end==-1)
{end=dc.length;}return unescape(dc.substring(begin+prefix.length, end));}function deleteCookie(name, path, domain)
{if(getCookie(name))
{document.cookie=name+"=" +
((path) ? "; path="+path : "") +
((domain) ? "; domain="+domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}function setCheckedValue(pId,pVe){eleChecked=fnGetObj(pId);if(eleChecked){eleChecked.checked=pVe;}}function fnClasseElemento(pId,pNomeClasse){var lem=fnGetObj(pId);if(lem){lem.className=pNomeClasse;}}function fnSchede(pCount,pAttiva,pIdScheda,pIdTitolo,pClasseAttiva,pClasseDisattiva){for(i=1;i<=pCount;i++){fnClasseElemento(pIdTitolo+i,pClasseDisattiva);nascondiElemento(pIdScheda+i);}if(pAttiva>0 && pAttiva<=pCount){fnClasseElemento(pIdTitolo+pAttiva,pClasseAttiva);visualizzaElemento(pIdScheda+pAttiva);}}function fnParagrafo(pModello,pTitolo,pTesto,pImmagine,pLink,
pClasseTitolo,pClasseTesto,pOpzioniImg,
pAllineamentoTitolo,pAllineamentoTesto,pAllineamentoImmagine,
pOpzioniLink){if(pTitolo>''){if(pClasseTitolo>''){loc_titolo='<span class="'+pClasseTitolo+'">'+pTitolo+'</span>';}else{loc_titolo='<span>'+pTitolo+'</span>';}if(pAllineamentoTitolo=='left'){loc_allineamentoTitolo=' align="left" ';}else if(pAllineamentoTitolo=='center'){loc_allineamentoTitolo=' align="center" ';}else if(pAllineamentoTitolo=='right'){loc_allineamentoTitolo=' align="right" ';}else{loc_allineamentoTitolo='';}}else{loc_titolo='';loc_allineamentoTitolo='';}if(pTesto>''){if(pClasseTesto>''){loc_testo='<span class="'+pClasseTesto+'">'+pTesto+'</span>';}else{loc_testo='<span>'+pTesto+'</span>';}if(pAllineamentoTesto=='top'){loc_allineamentoTesto=' valign="top" ';}else if(pAllineamentoTesto=='middle'){loc_allineamentoTesto=' valign="middle" ';}else if(pAllineamentoTesto=='bottom'){loc_allineamentoTesto=' valign="bottom" ';}else{loc_allineamentoTesto='';}}else{loc_testo='';loc_allineamentoTesto='';}if(pImmagine>''){switch(pModello){case '80':
case '81':
case '1':
case '2':
case '3':
loc_alignImg='';if(pAllineamentoImmagine=='top'){loc_allineamentoImmagine=' valign="top" ';}else if(pAllineamentoImmagine=='middle'){loc_allineamentoImmagine=' valign="middle" ';}else if(pAllineamentoImmagine=='bottom'){loc_allineamentoImmagine=' valign="bottom" ';}else{loc_allineamentoImmagine='';}break;case '60':
loc_alignImg='align="left"';loc_allineamentoImmagine='';break;default:
loc_alignImg='';loc_allineamentoImmagine='';break;}if(pOpzioniLink>''){loc_opzioniLink=pOpzioniLink;}else{loc_opzioniLink='target="_new"';}if(pModello==2 || pModello==60){loc_immagine='<img id=IMMAGINECENTRALE name=IMMAGINECENTRALE src="'+pImmagine+'" '+pOpzioniImg+' '+loc_alignImg+'>';if(pLink>''){loc_immagine='<a href="'+pLink+'" id=LINKCENTRALE '+loc_opzioniLink+'>'+loc_immagine+'</a>';}else{loc_immagine='<a style="cursor:default" id=LINKCENTRALE>'+loc_immagine+'</a>';}}else{loc_immagine='<img src="'+pImmagine+'" '+pOpzioniImg+' '+loc_alignImg+'>';if(pLink>''){loc_immagine='<a href="'+pLink+'" '+loc_opzioniLink+'>'+loc_immagine+'</a>';}}}else{loc_immagine='';loc_allineamentoImmagine='';}if(loc_testo=='' && loc_titolo=='' && loc_immagine=='') return;switch(pModello){case '80':
fnWriteln('<tr>');fnWriteln('<td colspan="3" heigth="30" align="left" valign="top">&nbsp;</td>');fnWriteln('</tr>');fnWriteln('<tr>');fnWriteln('<td width="20" align="left" valign="top">&nbsp;</td>');fnWriteln('<td align="left" valign="top"><h1>'+loc_titolo+'</h1>');fnWriteln(loc_testo);fnWriteln('</td>');fnWriteln('<td>'+loc_immagine+'</td>');fnWriteln('</tr>');break;case '81':
fnWriteln(loc_immagine);break;case '1':
fnWriteln('<table border="0" cellspacing="10" cellpadding="0">');if(loc_titolo>''){fnWriteln('	<tr>');fnWriteln('		<td  class="TDPARTIT1" colspan=2'+loc_allineamentoTitolo+'>');fnWriteln(loc_titolo);fnWriteln('		</td>');fnWriteln('	</tr>');}if(loc_testo>'' && loc_immagine>''){fnWriteln('	<tr>');fnWriteln('		<td width=50% align=right class="TDPARIMG1" '+loc_allineamentoImmagine+'>');fnWriteln(loc_immagine);fnWriteln('		</td>');fnWriteln('		<td width=50% align=left class="TDPARTES1" '+loc_allineamentoTesto+'>');fnWriteln(loc_testo);fnWriteln('		</td>');fnWriteln('	</tr>');}else if(loc_testo>''){fnWriteln('	<tr>');fnWriteln('		<td class="TDPARTES1" colspan=2 '+loc_allineamentoTesto+'>');fnWriteln(loc_testo);fnWriteln('		</td>');fnWriteln('	</tr>');}else if(loc_immagine>''){fnWriteln('	<tr>');fnWriteln('		<td class="TDPARIMG1" colspan=2 '+loc_allineamentoImmagine+'>');fnWriteln(loc_immagine);fnWriteln('		</td>');fnWriteln('	</tr>');}fnWriteln('</table>');break;case '2':
fnWriteln('<table border="0" cellspacing="10" cellpadding="0">');fnWriteln('	<tr>');fnWriteln('		<td '+loc_allineamentoTitolo+'>');fnWriteln('			<div id=DIV_TITOLOIMMAGINE>');fnWriteln(loc_titolo);fnWriteln('			</div>');fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('	<tr>');fnWriteln('		<td '+loc_allineamentoImmagine+'>');fnWriteln(loc_immagine);fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('	<tr>');fnWriteln('		<td '+loc_allineamentoTesto+'>');fnWriteln('			<div id=DIV_TESTOIMMAGINE>');fnWriteln(loc_testo);fnWriteln('			</div>');fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('</table>');break;case '3':
fnWriteln('<table border="0">');if(loc_titolo>''){fnWriteln('	<tr>');fnWriteln('		<td class="TDPARTIT3" colspan=2'+loc_allineamentoTitolo+'>');fnWriteln(loc_titolo);fnWriteln('		</td>');fnWriteln('	</tr>');}if(loc_testo>'' && loc_immagine>''){fnWriteln('	<tr>');fnWriteln('		<td width=50% align=right class="TDPARTES3" '+loc_allineamentoTesto+'>');fnWriteln(loc_testo);fnWriteln('		</td>');fnWriteln('		<td width=50% align=left class="TDPARIMG3" '+loc_allineamentoImmagine+'>');fnWriteln(loc_immagine);fnWriteln('		</td>');fnWriteln('	</tr>');}else if(loc_testo>''){fnWriteln('	<tr>');fnWriteln('		<td class="TDPARTES3" colspan=2 '+loc_allineamentoTesto+'>');fnWriteln(loc_testo);fnWriteln('		</td>');fnWriteln('	</tr>');}else if(loc_immagine>''){fnWriteln('	<tr>');fnWriteln('		<td class="TDPARIMG3" colspan=2 '+loc_allineamentoImmagine+'>');fnWriteln(loc_immagine);fnWriteln('		</td>');fnWriteln('	</tr>');}fnWriteln('</table>');break;case '50':
fnWriteln('<table width=100% border="0" cellspacing="10" cellpadding="0">');fnWriteln('	<tr>');fnWriteln('		<td>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('</table>');break;case '51':
fnWriteln('<table width=100% border="0" cellspacing="10" cellpadding="0">');fnWriteln('	<tr>');fnWriteln('		<td width=50%>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');break;case '52':
fnWriteln('		<td width=50%>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('</table>');break;case '53':
fnWriteln('<table width=100% border="0" cellspacing="10" cellpadding="0">');fnWriteln('	<tr>');fnWriteln('		<td width=33%>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');break;case '54':
fnWriteln('		<td width=33%>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');break;case '55':
fnWriteln('		<td width=33%>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('</table>');break;case '56':
fnWriteln('<table width=100% border="0" cellspacing="10" cellpadding="0">');fnWriteln('	<tr>');fnWriteln('		<td>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');break;case '57':
fnWriteln('		<td>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');break;case '58':
fnWriteln('		<td>');if(loc_titolo>''){fnWriteln(loc_titolo);}if(loc_immagine>''){fnWriteln(loc_immagine);}if(loc_testo>''){fnWriteln(loc_testo);}fnWriteln('		</td>');fnWriteln('	</tr>');fnWriteln('</table>');break;case '60':
fnWriteln('<div id=DIV_TITOLOIMMAGINE>');fnWriteln(loc_titolo);fnWriteln('</div><br>');fnWriteln('<div id=DIV_TESTOIMMAGINE>');fnWriteln(loc_immagine);fnWriteln(loc_testo);fnWriteln('</div>');break;default:
break;}}
