/* Author : Tosom S.r.l. Version : 1.4 requires : lovely_ajax.js This file provides functions to handle form elements, divs and ajax */ function openTooltip( e , id ) { var box = null ; if( typeof id == "string" ) box = getId( id ); else box = id ; if(box) { var mpos = lovely_getMouseXY(e); box.style.top = (mpos[1]+25)+"px" ; box.style.left = (mpos[0]-5)+"px"; if(box.style.display!="block") showPanel(box); } } function closeTooltip( id ) { hidePanel(id); } // type= 0 idx is the index, type=1 idx is the value function changeSelectIndex( sel , idx , type ) { if(type==0) { sel.selectedIndex = idx ; } else { for(var i=0 ; i0) sel.remove(0); } /* Options must be an array containig { "value" :"val" , "label":"label" } */ function popolaSelect( select , opts ) { var tmp = null; if(select && opts) { for( var i=0; i parseInt(md[ ctrlMonth ]) ) { return false ; } ctrlMonth = ctrlMonth+1 ; ctrlDateString = ctrlYear+"-"+ctrlMonth+"-"+ctrlDay; date = dt[0]+"-"+parseInt(dt[1])+"-"+parseInt(dt[2]) ; return ctrlDateString==date ; }