//Copyright LMSOFT 1999-2000-2001-2002-2003-2004
var z_index=0;var currentIdIn=-1;var gMaxVisibleItems=0;function LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param){var tmp=" ";if(tooltip){if(tooltip.text)tmp="TITLE=\""+tooltip.text+"\" ";}if(is.ns&&is.major<5){if(z_index<0)z_index=0;this.tag="<LAYER ID="+id+" "+"visibility=\"hide\" "+"Z-INDEX="+z_index+" "+"LEFT="+x+" "+"TOP="+y+" "+"WIDTH="+w+" "+"HEIGHT="+h+" "+tmp+"FRAMEBORDER=\"YES\" "+"SCROLLING=\"AUTO\" "+"drawok=0 "+"drawingeffect=0 "+">"+"<a name='#anchor_"+id+"'></a>";}else {if(is.ns&&is.major>=5&&z_index==-10000)z_index=0;this.tag="<DIV ID="+id+" "+"drawok=0 "+"drawingeffect=0 "+"STYLE=\"position:absolute;"+"z-index:"+z_index+";"+"visibility:hidden;"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+tmp+">"+"<a name='#anchor_"+id+"'></a>";}z_index++;this.id=id;this.object=null;this.LTO=new Array;this.NSMouseOver=null;this.NSMouseOut=null;this.InitObject=null;this.ResizeObject=null;this.OnAfterPageDisplay=null;this.ShowObject=null;this.HideObject=null;this.Play=null;this.Stop=null;this.RollIn=null;this.RollOut=null;this.IsMovable=true;if(initvisible)this.visible=true;else this.visible=false;this.x=x;this.y=y;this.w=w;this.h=h;this.orix=x;this.oriy=y;this.oriw=w;this.orih=h;this.initvisible=initvisible;this.param=param;this.BranchLst=BranchLst;if(delais==null){this.delais=0;}else {this.delais=delais;}if(delaisdisp==null){this.delaisdisp=0;}else {this.delaisdisp=delaisdisp;}if(effect==null){this.Effect=LMEffectShow;}else {this.Effect=effect;}if(effectdisp==null){this.EffectDisp=LMEffectHide;}else {this.EffectDisp=effectdisp;}this.EffectDisp=LMEffectHide;return this;}function LMBindToObject(LMObject){if(is.ns&&is.major<5){LMObject.tag+="</LAYER>";}else {LMObject.tag+="</DIV>";}document.writeln(LMObject.tag);LMObject.TagObject=FindTagFromId(LMObject.id);LMObject.css=FindTagStyleFromId(LMObject.id);LMObject.TagObject.LMObjectsIdx=FindIdxInLMObjects(LMObject.id);LMObject.TagObject.GetTop=TagGetTop;LMObject.TagObject.SetTop=TagSetTop;LMObject.TagObject.GetLeft=TagGetLeft;LMObject.TagObject.SetLeft=TagSetLeft;LMObject.TagObject.GetWidth=TagGetWidth;LMObject.TagObject.SetWidth=TagSetWidth;LMObject.TagObject.GetHeight=TagGetHeight;LMObject.TagObject.SetHeight=TagSetHeight;LMObject.TagObject.SetClip=TagSetClip;LMObject.TagObject.SetX=LMObjectMethodSetX;LMObject.TagObject.GetX=LMObjectMethodGetX;LMObject.TagObject.SetY=LMObjectMethodSetY;LMObject.TagObject.GetY=LMObjectMethodGetY;LMObject.TagObject.SetW=LMObjectMethodSetW;LMObject.TagObject.GetW=LMObjectMethodGetH;LMObject.TagObject.SetH=LMObjectMethodSetH;LMObject.TagObject.GetH=LMObjectMethodGetH;LMObject.TagObject.SetXYWH=LMObjectMethodSetXYWH;LMObject.TagObject.IsVisible=TagIsVisible;LMObject.TagObject.Show=TagShow;LMObject.TagObject.Hide=TagHide;LMObject.TagObject.ShowEffect=TagShowEffect;LMObject.TagObject.HideEffect=TagHideEffect;LMObject.TagObject.ToggleVisibleState=TagToggleVisibleState;LMObject.TagObject.IsDrawingEffect=TagIsDrawingEffect;LMObject.TagObject.RollIn=TagRollIn;LMObject.TagObject.RollOut=TagRollOut;LMObject.TagObject.Hide();LMObject.TagObject.drawingeffect=0;LMObject.TagObject.SetClip(0,LMObject.w,LMObject.h,0);return LMObject;}function InitNS(){if(isdisplay==false)LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);}function FireEvent(id,event){var strvar="window."+id+event;var strcnd="if("+strvar+") "+strvar +"()";eval(strcnd);}function LMObjectClick(id,idxbr){var LMObject=FindClassObjectFromId(id);if(LMObject&&LMObject.BranchLst&&LMObject.BranchLst[idxbr]){var DoBranch=true;if(LMObject.BranchLst[idxbr].code){DoBranch=LMObject.BranchLst[idxbr].code(LMObject.BranchLst[idxbr],id,LMObject,LMObject);}if(DoBranch)LMObjectBranch(LMObject.BranchLst[idxbr]);}}function DoLink(link){LMObjectBranch(new LMBranchEx("0",link,null,0.0,null,null,0,1,1,1,1,1,0,0,0,"",null));}function LMObjectBranch(branch){if(branch.where=="")return;switch(branch.where){case "GADGET: 1":location=pub_home;break;case "GADGET: 2":history.back();break;case "GADGET: 3":parent.window.close();break;case "GADGET: 4":break;case "GADGET: 5":var ok=confirm(MSG_QUIT);if(ok)parent.window.close();break;case "GADGET: 6":history.forward();break;case "GADGET: 7":window.print();break;case "GADGET: 8":break;case "GADGET: 9":break;case "GADGET: 10":if(is.ie)window.external.AddFavorite(location.href,document.title);else if(is.ns)alert(RES_ADDFAVORITES);break;case "GADGET: 11":window.location="mailto:?subject="+document.title+"&body="+location.href;break;default:if(branch.openinnewwindow){var param="";param+="status="+branch.status+",";param+="menubar="+branch.menubar+",";param+="toolbar="+branch.toolbar+",";param+="scrollbars="+branch.scrollbar+",";param+="resizable="+branch.resizeenable+",";if(branch.setdefaultwh){param+="width="+branch.width+",";param+="height="+branch.height+",";}window.open(branch.where,branch.windowname,param);}else {if(branch.where.substring(0,5).toLowerCase()=="http:"){parent.location=branch.where;}else if(branch.where.substring(0,6).toLowerCase()=="https:"){parent.location=branch.where;}else if(branch.where.substring(0,4).toLowerCase()=="ftp:"){parent.location=branch.where;}else location=branch.where;}break;}}function NSLMGlobalUp(event){if(LMGlobalUp(event)==false)return false;}function NSLMGlobalDn(event){if(is.ns&&is.major<5)HideOpenedMenus(event);if(LMGlobalDn(event)==false)return false;}function NSLMGlobalOver(e){if(e&&e.target&&e.target.id)LMGlobalOver(e.target.id);}function NSLMGlobalOut(){LMGlobalOver(-1);}function LMGlobalUp(e){if(currentIdIn==-1)return;var obj=FindClassObjectFromId(currentIdIn);if(!obj)return;var id=currentIdIn;FireEvent(id,"_OnMouseUp");FireEvent(id,"_OnClick");if(e){if(is.ie&&e.button!=1)return;if(is.ns&&e.which!=1)return;}if(obj.MouseUp)obj.MouseUp();}function LMGlobalDn(e){if(currentIdIn==-1)return;var obj=FindClassObjectFromId(currentIdIn);if(!obj)return;FireEvent(currentIdIn,"_OnMouseDown");if(e){if(is.ie&&e.button!=1)return;if(is.ns&&e.which!=1)return;}if(obj.MouseDn)obj.MouseDn();}var infct=false;function LMGlobalOver(id){if(infct)return;infct=true;if(currentIdIn==id){infct=false;return;}LMGlobalOut();if(id<=-1){infct=false;return;}currentIdIn=id;var obj=FindClassObjectFromId(currentIdIn);if(!obj){infct=false;return;}if(currentIdIn!=-1){FireEvent(currentIdIn,"_OnMouseEnter");}if(obj.MouseOver)obj.MouseOver();infct=false;}function LMGlobalOut(){if(currentIdIn<=-1)return;var id=currentIdIn;var obj=FindClassObjectFromId(id);if(!obj)return;if(currentIdIn!=-1){FireEvent(currentIdIn,"_OnMouseLeave");}currentIdIn=-1;if(obj.MouseOut)obj.MouseOut();}function LMObjectMethodSetX(x){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(x,obj.oriy,obj.oriw,obj.orih);}function LMObjectMethodGetX(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.orix;}function LMObjectMethodSetY(y){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(obj.orix,y,obj.oriw,obj.orih);}function LMObjectMethodGetY(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.oriy;}function LMObjectMethodSetW(w){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(obj.orix,obj.oriy,w,obj.orih);}function LMObjectMethodGetW(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.oriw;}function LMObjectMethodSetH(h){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(obj.orix,obj.oriy,obj.oriw,h);}function LMObjectMethodGetH(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.orih;}function LMObjectMethodSetXYWH(x,y,w,h){var LMObject=FindClassObjectFromId(this.id);LMObject.orix=x;LMObject.oriy=y;LMObject.oriw=w;LMObject.orih=h;wori=this.GetWidth();hori=this.GetHeight();newx=(x*GPropW)+GOffetX;LMObject.x=newx;LMObject.TagObject.SetLeft(newx);newy=(y*GPropH)+GOffetY;LMObject.y=newy;LMObject.TagObject.SetTop(newy);neww=w*GPropW;newh=h*GPropH;this.SetWidth(neww);this.SetHeight(newh);if(LMObject.ResizeObject)LMObject.ResizeObject(neww/wori,newh/hori);this.SetClip(0,this.GetWidth(),this.GetHeight(),0)}init=false;function AdjustHeight(){return;if(init==false){for(var i=0;i<LMObjects.length;i++){LMObjects[i].orih=1.1*LMObjects[i].orih;LMObjects[i].TagObject.SetHeight(LMObjects[i].orih);LMObjects[i].TagObject.SetClip(0,LMObjects[i].TagObject.GetWidth(),LMObjects[i].orih,0);}init=true;}}function LMObjectDelaiHide(LMObjects,idx){if(LMObjects[idx].TagObject.drawingeffect==1){setTimeout("LMObjectDelaiHide(LMObjects,"+idx+")",10);return;}LMGlobalOver(-1);LMObjects[idx].EffectDisp();}function LMObjectAnimateElem(LMObjects,currentidx){var v=0;if(currentidx>=gMaxVisibleItems)return;if(LMObjects[currentidx].InitObject)LMObjects[currentidx].InitObject();for(v=currentidx+1;v<gMaxVisibleItems;v++){if(LMObjects[currentidx].delais!=LMObjects[v].delais||LMObjects[v].Effect!=LMEffectShow)break;if(LMObjects[v].InitObject)LMObjects[v].InitObject();}if(LMObjects[currentidx].TagObject.drawok==0){setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);return;}if(LMObjects[currentidx].TagObject.drawingeffect==0){for(v=currentidx;v<gMaxVisibleItems;v++){if(LMObjects[currentidx].delais!=LMObjects[v].delais||LMObjects[v].TagObject.drawok==0||LMObjects[v].Effect!=LMEffectShow)break;}}else {for(v=currentidx;v<gMaxVisibleItems;v++){if(LMObjects[currentidx].delais!=LMObjects[v].delais)break;if(LMObjects[v].Effect!=LMEffectShow)break;if(LMObjects[v].TagObject.drawingeffect==0)break;if(LMObjects[currentidx].TagObject.drawingeffect!=LMObjects[v].TagObject.drawingeffect){setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);return;}}}if(v==currentidx)v++;var valend=v;drawingeffect=LMObjects[currentidx].TagObject.drawingeffect;if(v+1<gMaxVisibleItems){if(LMObjects[v+1].InitObject)LMObjects[v+1].InitObject(LMObjects[v+1]);}if(drawingeffect==0){for(var v=currentidx;v<valend;v++){LMObjects[v].Effect();}setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);}else if(drawingeffect==1){setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);return;}else if(drawingeffect==2){var delai=LMObjects[currentidx].delaisdisp-LMObjects[currentidx].delais;if(delai>0||(LMObjects[currentidx].delais>0&&delai==0)){setTimeout("LMObjectDelaiHide(LMObjects,"+currentidx+")",delai);}currentidx=valend;if(currentidx<gMaxVisibleItems){var offset=0;if(currentidx>0)offset=LMObjects[currentidx-1].delais;setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",(LMObjects[currentidx].delais-offset));}else {for(var i=0;i<LMObjects.length;i++){if(LMObjects[i].OnAfterPageDisplay)LMObjects[i].OnAfterPageDisplay();}AdjustHeight();}}else {}}function LMObjectAnimate(Stretch,Position,scalefx,scalefy){if(is.ns&&is.major<5){document.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT|Event.MOUSEUP|Event.MOUSEDOWN);if(document.onmouseup==null)document.onmouseup=NSLMGlobalUp;if(document.onmousedown==null)document.onmousedown=NSLMGlobalDn;document.onmouseover=NSLMGlobalOver;document.onmouseout=NSLMGlobalOut;}if(LMObjects.length<=0)return;PosPage(Stretch,Position,scalefx,scalefy);var i=0;var countvisible=0;var countnotvisible=0;var LMObjectsVisible=new Array();var LMObjectsNotVisible=new Array();for(i=0;i<LMObjects.length;i++){if(LMObjects[i].initvisible==true){LMObjectsVisible[countvisible]=LMObjects[i];LMObjectsVisible[countvisible].TagObject.LMObjectsIdx=countvisible;countvisible++;}else {LMObjectsNotVisible[countnotvisible]=LMObjects[i];LMObjectsNotVisible[countnotvisible].TagObject.LMObjectsIdx=countvisible;countnotvisible++;}}gMaxVisibleItems=countvisible;LMObjects=LMObjectsVisible;LMObjectSort(LMObjects,0,LMObjects.length-1);var i,j;for(i=0,j=LMObjects.length;i<countnotvisible;i++,j++){LMObjects[j]=LMObjectsNotVisible[i];LMObjects[j].TagObject.LMObjectsIdx=j;if(LMObjects[j].InitObject)LMObjects[j].InitObject();LMObjects[j].TagObject.drawingeffect=2;LMObjects[j].delais=0;}setTimeout("LMObjectAnimateElem(LMObjects,0)",LMObjects[0].delais);}function LMObjectSort(LMObjects,first,last){var a,b,left,right;var left_ref,right_ref,x;if(first==last)return;middle=parseInt((first+last)/2);if(isNaN(middle))middle=0;do{left_ref=LMObjects[first].delais;left=first;for(var a=first;a<=middle;a++){x=LMObjects[a].delais;if(x>left_ref){left=a;left_ref=x;}}right_ref=LMObjects[middle+1].delais;right=middle+1;for(var b=middle+1;b<=last;b++){x=LMObjects[b].delais;if(x<right_ref){right_ref=x;right=b;}}if(left_ref>right_ref){object=LMObjects[left];LMObjects[left]=LMObjects[right];LMObjects[right]=object;LMObjects[left].TagObject.LMObjectsIdx=left;LMObjects[right].TagObject.LMObjectsIdx=right;}}while(left_ref>right_ref);LMObjectSort(LMObjects,first,middle);LMObjectSort(LMObjects,middle+1,last);}function LMBranch(id,where){this.id=eval(id);this.where=where;this.sound=null;this.code=null;this.param=null;this.delais=0,0;this.openinnewwindow=0;this.status=0;this.menubar=0;this.toolbar=0;this.scrollbar=0;this.resizeenable=0;this.setdefaultwh=0;this.width=0;this.height=0;this.windowname="";}function LMBranchEx(id,where,sound,delais,code,param,openinnewwindow,status,menubar,toolbar,scrollbar,resizeenable,setdefaultwh,width,height,windowname){this.id=eval(id);this.where=where;this.sound=sound;this.code=code;this.param=param;this.delais=delais;this.openinnewwindow=openinnewwindow;this.status=status;this.menubar=menubar;this.toolbar=toolbar;this.scrollbar=scrollbar;this.resizeenable=resizeenable;this.setdefaultwh=setdefaultwh;this.width=width;this.height=height;this.windowname=windowname;}function LMToolTip(text,sound,delais){this.text=text;this.sound=sound;this.delais=delais;}function SetDrawingEffect(LMObject,val){LMObject.drawingeffect=val;if(val==2){object=FindClassObjectFromId(LMObject.id);if(object&&object.BranchLst){for(var i=0;i<object.BranchLst.length;i++){if(object.BranchLst[i]!=null&&object.BranchLst[i].delais>0){delais=object.BranchLst[i].delais*1000;setTimeout("LMObjectClick('"+object.id+"',"+i+")",delais);}}}}}function LMEffectShow(){this.TagObject.Show();this.TagObject.drawingeffect=1;setTimeout("SetDrawingEffect(FindTagFromId(\""+this.id+"\"),2)",10);}function LMEffectHide(){this.TagObject.Hide();}var GOffetX=0,GOffetY=0;var GRelX=0,GRelY=0;var GPropW=1,GPropH=1;var gbaseorix=0,gbaseoriy=0,gbaseoriw=0,gbaseorih=0,gbaseleft=0,gbasetop=0,gbasewidth=0,gbaseheight=0,gbaseinit=false;function Is(){var agent=navigator.userAgent.toLowerCase();idx=navigator.userAgent.indexOf("MSIE");if(idx>=0){var ua=navigator.userAgent;this.major=parseInt(ua.substring(idx+5,ua.indexOf(".",idx)));this.minor=parseFloat(ua.substring(idx+5,ua.indexOf(" ",idx+5)));}else {idx=navigator.userAgent.indexOf("Netscape/");if(idx>=0){var ua=navigator.userAgent;this.major=parseInt(ua.substring(idx+9,ua.indexOf(".",idx)));this.minor=parseFloat(ua.substr(idx+9,5));}else {this.major=parseInt(navigator.appVersion);this.minor=parseFloat(navigator.appVersion);}}this.firefox=agent.indexOf('firefox')!=-1;this.netscape=((agent.indexOf('mozilla')!=-1)&&((agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)));this.explorer=(agent.indexOf("msie")!=-1);this.ns=(this.netscape&&(this.minor>=4.03));this.ie3=(navigator.userAgent.indexOf("MSIE 3.0")!=-1);this.ie=(this.explorer&&!this.ie3);this.macpowerpc=(navigator.userAgent.indexOf("Mac_PowerPC")!=-1);if(this.firefox){this.major=7;this.minor=7.1;}}var is=new Is();var language;var fontfact;var fontbase=96.;function isValideBrowser(minor_ns,minor_ie){LocateFontSizeSetting();if(is.netscape){language=navigator.language.toLowerCase();if(is.ns&&is.minor>=minor_ns)return true;document.writeln("This page requires a more recent version of Netscape. <A HREF=\"http://www.netscape.com/download\">Click here to update Netscape!</A>");return false;}else if(is.explorer){language=navigator.browserLanguage.toLowerCase();if(is.ie&&is.minor>=minor_ie)return true;document.writeln("This page requires a more recent version of Internet Explorer. <A HREF=\"http://www.microsoft.com/downloads/\">Click here to update Internet Explorer!</A>");return false;}alert("This version is compatible with Internet Explorer or Netscape Communicator only.");return false;}function FindIdxInLMObjects(id){for(var i=0;i<LMObjects.length;i++){if(LMObjects[i].id==id)return i;}return -1;}function FindTagStyleFromId(id){var tag=FindTagFromId(id);if(is.ns&&is.major<5)return tag;return tag.style;}function NS4_FindTagFromId(object,id){var i;for(i=0;i<object.layers.length;i++){var layer=object.layers[i];if(layer.id==id)return layer;layer=NS4_FindTagFromId(layer,id);if(layer)return layer;}return null;}function FindTagFromId(id){if(is.ns){if(is.major>=5){if(document.getElementById)return document.getElementById(id);}else {var layer=NS4_FindTagFromId(document,id);if(!layer)return eval("document."+id);return layer;}}else if(is.ie){return eval(id);}return null;}function FindClassObjectFromId(id){for(var i=0;i<LMObjects.length;i++){if(LMObjects[i].id==id)return LMObjects[i];}return null;}function FindClassObjectFromTagDiv(TagObject){if(TagObject.LMObjectsIdx==-1){TagObject.LMObjectsIdx=FindIdxInLMObjects(TagObject.id);}return LMObjects[TagObject.LMObjectsIdx];}function TagIsVisible(){var layershow=true;var LMObject=FindClassObjectFromId(this.id);if(LMObject.layerid){var layertag=FindTagFromId(LMObject.layerid);if(is.ns&&is.major<5){if(layertag.visibility!="show")layershow=false;}else {if(layertag.style.visibility!="visible")layershow=false;}}var show=false;if(is.ns&&is.major<5){if(this.visibility=="show"&&layershow)show=true;}else {if(this.style.visibility=="visible"&&layershow)show=true;}return show;}function TagIsDrawingEffect(){if(this.drawingeffect==1)return true;return false;}function TagShow(){if(this.drawingeffect==1)return;var object=FindClassObjectFromId(this.id);if(object)object.visible=true;if(object&&object.layerid){var layer=FindClassObjectFromId(object.layerid);if(layer.visible==false)return;}if(is.ns&&is.major<5){if(this.visibility=="show")return;this.visibility="show";}else {if(this.style.visibility=="visible")return;this.style.visibility="visible";}if(object&&object.ShowObject)object.ShowObject();}function TagHide(){if(this.drawingeffect==1)return;var object=FindClassObjectFromId(this.id);if(object)object.visible=false;if(is.ns&&is.major<5){if(this.visibility=="hide")return;this.visibility="hide";}else {if(this.style.visibility=="hidden")return;this.style.visibility="hidden";}if(object&&object.HideObject)object.HideObject();}function TagShowEffect(){if(this.drawingeffect==1)return;var object=FindClassObjectFromId(this.id);if(!object)return;if(object.InitObject)object.InitObject();object.Effect();}function TagHideEffect(){if(this.drawingeffect==1)return;if(is.ns&&is.major<5){this.visibility="hide";}else {this.style.visibility="hidden";}var object=FindClassObjectFromId(this.id);if(object&&object.HideObject)object.HideObject();}function TagToggleVisibleState(){if(this.IsVisible())this.Hide();else this.Show();}function TagPlay(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.Play)object.Play();}function TagStop(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.Stop)object.Stop();}function TagTogglePlayState(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.TogglePlayState)object.TogglePlayState();}function TagRollIn(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.RollIn)object.RollIn();else if(this.Show)this.Show();}function TagRollOut(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.RollOut)object.RollOut();else if(this.Hide)this.Hide();}function TagGetTop(){if(is.ns){if(is.major>=5)return parseInt(this.style.top);else return this.top;}else if(is.ie)return this.style.posTop;}function TagSetTop(top){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.y=top;if(is.ns){if(is.major>=5)this.style.top=top;else this.top=top;}else if(is.ie)this.style.posTop=top;}function TagGetLeft(){if(is.ns){if(is.major>=5)return parseInt(this.style.left);else return this.left;}else if(is.ie)return this.style.posLeft;}function TagSetLeft(left){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.x=left;if(is.ns){if(is.major>=5)this.style.left=left;else this.left=left;}else if(is.ie)this.style.posLeft=left;}function TagGetWidth(){if(is.ns){if(is.major>=5)return parseInt(this.style.width);else {var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)return LMObject.w;else return 0;}}else if(is.ie)return this.style.posWidth;}function TagSetWidth(width){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.w=width;if(is.ns){if(is.major>=5)this.style.width=width;else {this.resizeTo(width,LMObject.h);}}else if(is.ie)this.style.posWidth=width;}function TagGetHeight(){if(is.ns){if(is.major>=5)return parseInt(this.style.height);else {var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)return LMObject.h;else return 0;}}else if(is.ie)return this.style.posHeight;}function TagSetHeight(height){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.h=height;if(is.ns){if(is.major>=5)this.style.height=height;else {this.resizeTo(LMObject.w,height);}}else if(is.ie)this.style.posHeight=height;}function TagSetClip(top,right,bottom,left){if(is.ns){if(is.major>=5)this.style.clip="rect("+top+" "+right+" "+bottom+" "+left+")";else {this.clip.top=top;this.clip.right=right;this.clip.bottom=bottom;this.clip.left=left;}}else if(is.ie)this.style.clip="rect("+top+" "+right+" "+bottom+" "+left+")";}function Resize(wwindow,hwindow,propw,proph){if(is.ie){var len=document.all.length;for(var i=0;i<len;i++){if(document.all[i].tagName=="FONT"){fonttag=document.all[i];if(parseInt(fonttag.ptori)==0)continue;if(!isNaN(fonttag.ptori))continue;val=parseInt(fonttag.ptori);val=val*propw;fonttag.style.fontSize=val+"pt";}}}var w=gbaseoriw*propw;var h=gbaseorih*proph;var offx=(wwindow-w)/2.;if(offx<0)offx=0;var offy=(hwindow-h)/2.;if(offy<0)offy=0;gbaseleft=gbaseorix*propw;gbasetop=gbaseoriy*proph;w=gbaseoriw*propw;h=gbaseorih*proph;gbasewidth=w;gbaseheight=h;for(var i=1;i<LMObjects.length;i++){LMObjects[i].TagObject.SetLeft(LMObjects[i].orix*propw);LMObjects[i].TagObject.SetTop(LMObjects[i].oriy*proph);w=LMObjects[i].oriw*propw;h=LMObjects[i].orih*proph;LMObjects[i].TagObject.SetWidth(w);LMObjects[i].TagObject.SetHeight(h);if(LMObjects[i].ResizeObject)LMObjects[i].ResizeObject(propw,proph);LMObjects[i].TagObject.SetClip(0,w,h,0);}GPropW=propw;GPropH=proph;var backpanel=FindTagFromId("lmwcbackpanel");backpanel.SetWidth(backpanel.oriw*propw);backpanel.SetHeight(backpanel.orih*proph);}function PosPage(Stretch,Position,scalefx,scalefy){if(scalefx<=0)scalefx=1;if(scalefy<=0)scalefy=1;if(is.ns){wwindow=window.innerWidth;hwindow=window.innerHeight;}else {wwindow=document.body.clientWidth;hwindow=document.body.clientHeight;}if(gbaseinit==false){var backpanel=FindTagFromId("lmwcbackpanel");backpanel.SetLeft=TagSetLeft;backpanel.SetTop=TagSetTop;backpanel.SetWidth=TagSetWidth;backpanel.SetHeight=TagSetHeight;backpanel.GetLeft=TagGetLeft;backpanel.GetTop=TagGetTop;backpanel.GetWidth=TagGetWidth;backpanel.GetHeight=TagGetHeight;backpanel.oriw=backpanel.GetWidth();backpanel.orih=backpanel.GetHeight();gbaseorix=LMObjects[0].orix;gbaseoriy=LMObjects[0].oriy;gbaseoriw=LMObjects[0].oriw;gbaseorih=LMObjects[0].orih;gbaseleft=LMObjects[0].TagObject.GetLeft();gbasetop=LMObjects[0].TagObject.GetTop();gbasewidth=LMObjects[0].TagObject.GetWidth();gbaseheight=LMObjects[0].TagObject.GetHeight();LMObjects[0].TagObject.SetLeft(0);LMObjects[0].TagObject.SetTop(0);LMObjects[0].TagObject.SetWidth(wwindow);LMObjects[0].TagObject.SetHeight(hwindow);LMObjects[0].TagObject.SetClip(0,wwindow,hwindow,0);if(is.ie){var len=document.all.length;for(var i=0;i<len;i++){if(document.all[i].tagName=="FONT"){fonttag=document.all[i];fonttag.ptori=0;if(parseInt(fonttag.style.fontSize)==0)continue;if(!isNaN(fonttag.style.fontSize))continue;fonttag.ptori=fonttag.style.fontSize;}}}gbaseinit=true;}if(is.ie){switch(Stretch){case 0:w=gbaseoriw;h=gbaseorih;propw=wwindow/w*scalefx;proph=wwindow/w*scalefx;Resize(wwindow,hwindow,propw,proph);break;case 1:w=gbaseoriw;h=gbaseorih;propw=wwindow/w*scalefx;proph=hwindow/h*scalefy;Resize(wwindow,hwindow,propw,proph);break;}}relx=gbaseleft;rely=gbasetop;w=gbasewidth;h=gbaseheight;var offx=0;var offy=0;switch(Position){case 0:offx=(wwindow-w)/2.;offy=(hwindow-h)/2.;break;case 1:offx=0;offy=(hwindow-h)/2.;break;case 2:offx=(wwindow-w)/2.;offy=0;break;case 3:offx=(wwindow-w);offy=(hwindow-h)/2.;break;case 4:offx=(wwindow-w)/2.;offy=(hwindow-h);break;case 5:offx=0;offy=0;break;case 6:offx=(wwindow-w);offy=0;break;case 7:offx=0;offy=(hwindow-h);break;case 8:offx=(wwindow-w);offy=(hwindow-h);break;}var backpanel=FindTagFromId("lmwcbackpanel");if(offx<0)offx=0;if(offy<0)offy=0;backpanel.SetLeft(offx);backpanel.SetTop(offy);}function BeginInitBackPanel(x,y,w,h){if(is.ns&&is.major<5){document.writeln("<LAYER ID=lmwcbackpanel "+"Z-INDEX=0 "+"overflow:hidden "+"LEFT="+x+" "+"TOP="+y+" "+"WIDTH="+w+" "+"HEIGHT="+h+" "+">");}else {if(is.ns&&is.major>=5)index=0;else index=0;document.writeln("<DIV ID=lmwcbackpanel "+"STYLE=\"position:absolute;"+"overflow:hidden; "+"z-index:"+index+";"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+">");}}function EndInitBackPanel(){if(is.ns&&is.major<5){document.writeln("</LAYER>");}else {document.writeln("</DIV>");}}function LocateFontSizeSetting(){fontfact=1;var id="testfont";var x=0;var y=0;var w=50;var h=18;var tag;if(is.ns&&is.major<5){tag="<LAYER ID="+id+" "+"LEFT="+x+" "+"TOP="+y+" "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"FRAMEBORDER=\"YES\" "+"SCROLLING=\"AUTO\" "+"visibility=\"hide\" "+">";}else {tag="<DIV ID="+id+" "+"STYLE=\"position:absolute;"+"visibility:hidden;"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+">";}tag+="<font face=\"Arial\"><font style=\"font-size:12pt\"><font color=\"#FFFFFF\">A</font></font></font>";if(is.ns&&is.major<5){tag+="</LAYER>";}else {tag+="</DIV>";}document.writeln(tag);if(fontbase==120)fontbase2=23;else fontbase2=18;objtag=FindTagFromId(id);if(objtag){if(is.ns&&is.major<5){fontfact=fontbase2/objtag.clip.height;}else if(is.ns&&is.major>=5){}else {fontfact=fontbase2/objtag.clientHeight;}}}function ShowProperties(obj,framed){var sProps="";for(props in obj){sProps+=props+": "+obj[props]+"\n";if(framed==0){alert(sProps);sProps="";}}if(framed==1){alert(sProps);}else if(framed==2){var hwnd=window.open("about:blank","debug","");hwnd.document.write("<PRE>\n"+sProps+"</PRE>\n");}}var MSG_QUIT;var preloadImages=new Array();function InitResources(){if(language=="fr"||language=="fr-ca"||language=="fr-fr"||language=="fr-be"||language=="fr-ch"||language=="fr-lu"){MSG_QUIT="Voulez-vous vraiment quitter ?";MSG_LINKNOTAVAILABLE="Publiez le site pour vérifier cette fonction.";RES_PASSNOTAUTHORISE="Vous n'êtes pas autorisé à accéder à cette page";RES_PASSTitleStr="Entrez votre nom d'usager et votre mot de passe<br>";RES_PASSLoginStr="Nom d'usager :";RES_PASSPasswordStr="Mot de passe :";RES_PASSButOkStr="    Ok    ";RES_PASSButCancelStr="Annuler";RES_VALIDDIGITALPHAMAIL="Chiffres, lettres ou courriel seulement";RES_VALIDDIGITALPHA="Chiffres ou lettres seulement";RES_VALIDDIGITMAIL="Chiffres ou courriel seulement";RES_VALIDALPHAMAIL="Lettres ou courriel seulement";RES_VALIDDIGIT="Chiffres seulement";RES_VALIDALPHA="Lettres seulement";RES_VALIDMAIL="Courriel seulement";RES_VALIDBLANK="Le champ ne doit pas être vide";RES_ADDFAVORITES="Les utilisateurs de Netscape ou Firefox doivent ajouter le lien manuellement en pressant les touches <Ctrl+D>";RES_POPUP_FAILURE="Cette page est protégée par un mot de passe mais la fenêtre d'authentificaton a été bloquée. Vérifiez votre configuration et rafraichissez la page pour continuer.";}else if(language=="nl"||language=="nl-be"){MSG_QUIT="Weet u zeker dat u wilt stoppen?";MSG_LINKNOTAVAILABLE="Publiceer de site om deze functie te controleren.";RES_PASSNOTAUTHORISE="U ben niet gemachtigd om deze pagina te bekijken";RES_PASSTitleStr="Voer uw gebruikersnaam en wachtwoord in<br>";RES_PASSLoginStr="Gebruikersnaam:";RES_PASSPasswordStr="Wachtwoord&nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Annuleren ";RES_VALIDDIGITALPHAMAIL="Alleen cijfers, letters en e-mail zijn in het veld toegestaan";RES_VALIDDIGITALPHA="Alleen cijfers en letters zijn in het veld toegestaan";RES_VALIDDIGITMAIL="Alleen cijfers en e-mail zijn in het veld toegestaan";RES_VALIDALPHAMAIL="Alleen letters en e-mail zijn in het veld toegestaan";RES_VALIDDIGIT="Alleen cijfers zijn in het veld toegestaan";RES_VALIDALPHA="Alleen letters zijn in het veld toegestaan";RES_VALIDMAIL="Alleen e-mail is in het veld toegestaan";RES_VALIDBLANK="Het veld mag niet leeg zijn";RES_ADDFAVORITES="Firefox- en Netscape-gebruikers moeten handmatig bladwijzers naar pagina's maken door op <Ctrl+D> te drukken";RES_POPUP_FAILURE="Deze pagina is met een wachtwoord beveiligd en het aanmeldingsvenster is geblokkeerd. Controleer uw instellingen en vernieuw de pagina om door te gaan.";}else if(language=="de"){MSG_QUIT="Sind Sie sicher, dass Sie beenden möchten?";MSG_LINKNOTAVAILABLE="Veröffentlichen Sie die Website, um diese Funktion zu überprüfen.";RES_PASSNOTAUTHORISE="Sie sind nicht berechtigt, diese Seite anzuzeigen";RES_PASSTitleStr="Geben Sie Ihren Benutzernamen und Ihr Kennwort ein<br>";RES_PASSLoginStr="Benutzername :";RES_PASSPasswordStr="Kennwort &nbsp;&nbsp;:";RES_PASSButOkStr="     OK     ";RES_PASSButCancelStr=" Abbrechen ";RES_VALIDDIGITALPHAMAIL="In diesem Feld sind nur Zahlen, Buchstaben und E-Mail-Adressen zulässig";RES_VALIDDIGITALPHA="In diesem Feld sind nur Zahlen und Buchstaben zulässig";RES_VALIDDIGITMAIL="In diesem Feld sind nur Zahlen und E-Mail-Adressen zulässig";RES_VALIDALPHAMAIL="In diesem Feld sind nur Buchstaben und E-Mail-Adressen zulässig";RES_VALIDDIGIT="In diesem Feld sind nur Zahlen zulässig";RES_VALIDALPHA="In diesem Feld sind nur Buchstaben zulässig";RES_VALIDMAIL="In diesem Feld sind nur E-Mail-Adressen zulässig";RES_VALIDBLANK="Dieses Feld muss ausgefüllt werden";RES_ADDFAVORITES="Benutzer von Firefox und Netscape müssen die Seiten manuell zu den Favoriten hinzufügen, indem sie die Tastenkombination <Strg+D> verwenden";RES_POPUP_FAILURE="Diese Seite ist kennwortgeschützt, aber das Dialogfeld für die Anmeldung wurde geblockt. Bitte überprüfen Sie Ihre Einstellungen und aktualisieren Sie die Seite, um fortzufahren.";}else if(language=="es"){MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Publish the site to check this feature.";RES_PASSNOTAUTHORISE="You are not allowed to view this page";RES_PASSTitleStr="Enter your User Name and Password<br>";RES_PASSLoginStr="User Name :";RES_PASSPasswordStr="Password &nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Cancel ";RES_VALIDDIGITALPHAMAIL="Only numbers, letters and email are allowed in the field";RES_VALIDDIGITALPHA="Only numbers and letters are allowed in the field";RES_VALIDDIGITMAIL="Only numbers and email are allowed in the field";RES_VALIDALPHAMAIL="Only letters and email are allowed in the field";RES_VALIDDIGIT="Only numbers allowed in the field";RES_VALIDALPHA="Only letters allowed in the field";RES_VALIDMAIL="Only email allowed in the field";RES_VALIDBLANK="The field must not be blank";RES_ADDFAVORITES="Firefox and Netscape users must bookmark the pages manually by hitting <Ctrl+D>";RES_POPUP_FAILURE="This page is password protected but the login window has been blocked. Verify your settings and refresh the page to continue.";}else if(language=="it"){MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Publish the site to check this feature.";RES_PASSNOTAUTHORISE="You are not allowed to view this page";RES_PASSTitleStr="Enter your User Name and Password<br>";RES_PASSLoginStr="User Name :";RES_PASSPasswordStr="Password &nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Cancel ";RES_VALIDDIGITALPHAMAIL="Only numbers, letters and email are allowed in the field";RES_VALIDDIGITALPHA="Only numbers and letters are allowed in the field";RES_VALIDDIGITMAIL="Only numbers and email are allowed in the field";RES_VALIDALPHAMAIL="Only letters and email are allowed in the field";RES_VALIDDIGIT="Only numbers allowed in the field";RES_VALIDALPHA="Only letters allowed in the field";RES_VALIDMAIL="Only email allowed in the field";RES_VALIDBLANK="The field must not be blank";RES_ADDFAVORITES="Firefox and Netscape users must bookmark the pages manually by hitting <Ctrl+D>";RES_POPUP_FAILURE="This page is password protected but the login window has been blocked. Verify your settings and refresh the page to continue.";}else {MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Publish the site to check this feature.";RES_PASSNOTAUTHORISE="You are not allowed to view this page";RES_PASSTitleStr="Enter your User Name and Password<br>";RES_PASSLoginStr="User Name :";RES_PASSPasswordStr="Password &nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Cancel ";RES_VALIDDIGITALPHAMAIL="Only numbers, letters and email are allowed in the field";RES_VALIDDIGITALPHA="Only numbers and letters are allowed in the field";RES_VALIDDIGITMAIL="Only numbers and email are allowed in the field";RES_VALIDALPHAMAIL="Only letters and email are allowed in the field";RES_VALIDDIGIT="Only numbers allowed in the field";RES_VALIDALPHA="Only letters allowed in the field";RES_VALIDMAIL="Only email allowed in the field";RES_VALIDBLANK="The field must not be blank";RES_ADDFAVORITES="Firefox and Netscape users must bookmark the pages manually by hitting <Ctrl+D>";RES_POPUP_FAILURE="This page is password protected but the login window has been blocked. Verify your settings and refresh the page to continue.";}}var winModalPasswWindow;var ValidationPass=0;var myPassword;var dlgpagename="lmpasswdlg.html";var dlgfullname;function IgnoreEvents(e){return false;}function HandleFocus(){if(winModalPasswWindow){if(!winModalPasswWindow.closed)winModalPasswWindow.focus();else {window.top.releaseEvents(Event.CLICK|Event.FOCUS);window.top.onclick="";}}return false;}function WaitForModalDlg(login,password,pageerror,timeseesion){if(!winModalPasswWindow.closed){setTimeout("WaitForModalDlg('"+login+"','"+password+"','"+pageerror+"','"+timeseesion+"')",100.);return;}if(myPassword.ReturnCode==0){AuthorisationFail(pageerror);}else {if(myPassword.Login==login&&myPassword.Password==password){LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);SetPasswordCookie(login,password,timeseesion);}else if(ValidationPass<2){OpenNsDlg(login,password,pageerror,timeseesion);ValidationPass++;}else {AuthorisationFail(pageerror);}}}function OpenNsDlg(login,password,pageerror,timeseesion){window.top.captureEvents(Event.CLICK|Event.FOCUS);window.top.onclick=IgnoreEvents;window.top.onfocus=HandleFocus;vwidth=350;vheight=190;vleft=(window.screen.width-vwidth)/2;vtop=(window.screen.height-vheight)/2;var str="left="+vleft+",top="+vtop+",height="+vheight+",width="+vwidth+",status=0,dependent=1";winModalPasswWindow=window.open(dlgfullname,"ModalChild",str);if(!winModalPasswWindow){PopupFail();return;}myPassword=new Object();winModalPasswWindow.myPassword=myPassword;winModalPasswWindow.ReturnCode=0;winModalPasswWindow.focus();setTimeout("WaitForModalDlg('"+login+"','"+password+"','"+pageerror+"','"+timeseesion+"')",100.);}function PopupFail(){alert(RES_POPUP_FAILURE);}function HexToDec(c){var alpha="aA";if(c>='a'&&c<='f')return c.charCodeAt(0)-alpha.charCodeAt(0)+10;if(c>='A'&&c<='F')return c.charCodeAt(0)-alpha.charCodeAt(1)+10;else return eval(c);}function EnDecrypStr(sSecret){var sSecretTodo=sSecret;var sPassword="$%¢£²¼|*°«¢@%)-¾?";var strOut="";var l=sPassword.length;var l2=sSecretTodo.length/2;for(var x=1;x<=l2;x++){var g=((x-1)%l);var iChar=sPassword.charCodeAt(g);var c1=HexToDec(sSecretTodo.charAt((x-1)*2));var c2=HexToDec(sSecretTodo.charAt((x-1)*2+1));var c=c1*16+c2;iChar=c^iChar;strOut=strOut+String.fromCharCode(iChar);}return strOut;}function AuthorisationFail(pageerror){if(pageerror.length){location=pageerror;}else {document.close();var str=RES_PASSNOTAUTHORISE;document.open();document.write(str);document.close();}}function SetPasswordCookie(login,password,timeseesion){var name=login+password;setCookie(name,"1",null,timeseesion);}function GetPasswordCookie(login,password){var name=login+password;if(getCookie(name))return true;else return false;}function GetDisplayInfo(login,password,timeseesion,pageerror,path){dlgfullname=path+dlgpagename;login=EnDecrypStr(login);password=EnDecrypStr(password);if(GetPasswordCookie(login,password)){LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);if(is.ie)PosPage(Stretch,Position,ScaleW,ScaleH);SetPasswordCookie(login,password,timeseesion);return;}if(is.ie){myPassword=new Object();if(is.netscape)myPassword.language=navigator.language;else if(is.explorer)myPassword.language=navigator.browserLanguage;for(ValidationPass=0;ValidationPass<3;ValidationPass++){try{window.showModalDialog(dlgfullname,myPassword,"dialogHeight:220px; dialogWidth:350px;center:1;status:no;help:no");}catch(e){PopupFail();return;}if(myPassword.ReturnCode){if(myPassword.Login==login&&myPassword.Password==password){LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);PosPage(Stretch,Position,ScaleW,ScaleH);SetPasswordCookie(login,password,timeseesion);break;}}else {AuthorisationFail(pageerror);break;}}if(ValidationPass==3){AuthorisationFail(pageerror);}}else {OpenNsDlg(login,password,pageerror,timeseesion);}}function getCookie(name){var key=name+"=";var cookies=document.cookie;var keyPosition=cookies.indexOf(key);if(keyPosition==-1)return null;var valuePosition=keyPosition+key.length;var valuePositionEnd=cookies.indexOf(";",valuePosition);if(valuePositionEnd==-1)valuePositionEnd=cookies.length;return unescape(cookies.substring(valuePosition,valuePositionEnd));}function setCookie(name,value,path,timeseesion){var cookie=name+"="+value;var exp=new Date();if(is.ns&&is.major<5&&exp.getYear()<1900)exp.setYear(exp.getYear()+1900);exp.setTime(exp.getTime()+timeseesion);cookie=cookie+"; expires="+exp.toGMTString();if(path!=null)cookie=cookie+"; path="+path;document.cookie=cookie;}function LMPage(id,x,y,w,h,effect,branch,param,color,filename){return new LMImage(id,x,y,w,h,1,0,null,0,null,branch,null,0,filename);}function LMImage(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branch,tooltip,param,image){var tmp=" ";var BranchLst=null;if(branch){BranchLst=new Array(branch);}var LMImage=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param);if(tooltip){if(tooltip.text){tmp="ALT=\""+tooltip.text+"\" ";}}var commontext=tmp+"NAME=LMImage"+id+" "+"ID=LMImage"+id+" "+"objectid="+id+" "+"BORDER=0 "+"LEFT=0 "+"TOP=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onmouseup=LMGlobalUp(event); "+"onmousedown=LMGlobalDn(event); "+"onmouseover=TagLMImageMouseOver(this); "+"onmouseout=TagLMImageMouseOut(this); "+"onload=TagLMImageLoad(this);";if(is.ns){if(branch)LMImage.tag+="<a href=\"javascript:NSLMGlobalUp()\";>";else LMImage.tag+="<a>";LMImage.tag+="<IMG SRC=\""+image+"\" "+commontext+"></a>";}else {LMImage.tag+="<IMG SRC=\"\" "+commontext+">";}LMBindToObject(LMImage);LMImage.MouseUp=LMImageMouseUp;LMImage.MouseOver=LMImageMouseOver;LMImage.MouseOut=LMImageMouseOut;LMImage.InitObject=LMImageInit;LMImage.ResizeObject=LMImageResize;LMImage.imagesrc=image;LMImage.init=false;var tagimg=FindTagFromId("LMImage"+id);LMImage.TagImg=tagimg;tagimg.objectid=id;tagimg.onerror=TagLMImageError;return LMImage;}function TagLMImageLoad(TagImg){if(TagImg.complete==false){setTimeout("TagLMImageLoad(FindTagFromId(\"LMImage"+TagImg.objectid+"\"))",100.);return;}var tagdiv=FindTagFromId(TagImg.objectid);if(tagdiv==null)return;tagdiv.drawok=1;}function TagLMImageError(){var LMObject=FindClassObjectFromId(this.objectid);if(!LMObject)return;var tagdiv=FindTagFromId(this.objectid);if(tagdiv==null);else if(this.src!=""&&LMObject.init==true){if(tagdiv)tagdiv.drawok=1;}}function LMImageInit(){if(this.init==true)return;this.init=true;if(this.imagesrc){this.TagImg.src=this.imagesrc;}}function LMImageResize(propw,proph){TagImg=FindTagFromId("LMImage"+this.id);if(TagImg==null)return;TagImg.width=this.TagObject.GetWidth();TagImg.height=this.TagObject.GetHeight();}function TagLMImageMouseOver(TagImg){LMGlobalOver(TagImg.objectid);}function TagLMImageMouseOut(TagImg){LMGlobalOver(-1);}function LMImageMouseUp(){LMObjectClick(this.id,0);}function LMImageMouseOver(){if((this.BranchLst&&this.BranchLst[0]))window.status=this.BranchLst[0].where;if(is.ie){if((this.BranchLst&&this.BranchLst[0])){if(this.BranchLst[0].where)this.TagImg.style.cursor="hand";}}}function LMImageMouseOut(){if((this.BranchLst&&this.BranchLst[0]))window.status="";}function LMText(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchlist,tooltip,param,isbkcolor,bkcolor,isscroll,ml,mt,mr,mb,text){var LMText=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchlist,tooltip,param);var mw=w-ml-mr;var mh=h-mt-mb;if(is.ns&&is.major<5){LMText.tag+="<LAYER ID=LMTxt"+id+" "+"LEFT="+ml+" "+"TOP="+mt+" "+"WIDTH="+mw+" "+"HEIGHT="+mh+" "+"FRAMEBORDER=\"YES\" "+"SCROLLING=\"AUTO\" "+"drawok=0 "+"drawingeffect=0 "+">";}else {LMText.tag+="<DIV ID=LMTxt"+id+" "+"drawok=0 "+"drawingeffect=0 "+"STYLE=\"position:absolute;"+"left:"+ml+";"+"top:"+mt+";"+"width:"+mw+";"+"height:"+mh+";\" "+">";}if(fontfact!=1){if(fontfact<1.){start=1;end=500;inc=1;}else if(fontfact>1.){start=500;end=1;inc=-1;}i=start;while(true){search="<font style=\\\"font-size:"+i+"pt";if(text.search(search)>=0){re=new RegExp(search,"gi");val=parseInt(i*fontfact);changeto="<font style=\"font-size:"+val+"pt";buffer=text.replace(re,changeto);text=buffer;}i+=inc;if(i==end)break;}}if(is.ns){var buffertmp=text.replace(/<font style=\"font-size:/gi,"<font point-size=");var buffertmp2=buffertmp.replace(/pt\"/gi,"");text=buffertmp2;buffer=text.replace(/onmouseup=/gi,"href=javascript:");LMText.tag+=buffer;}else {LMText.tag+=text;}if(is.ns&&is.major<5){LMText.tag+="</LAYER>";}else {LMText.tag+="</DIV>";}LMBindToObject(LMText);LMText.ResizeObject=LMTextResize;LMText.MargeLeft=ml;LMText.MargeTop=mt;LMText.MargeRight=mr;LMText.MargeBottom=mt;var tagdiv=FindTagFromId(id);if(tagdiv){tagdiv.drawok=1;tagdiv.onmouseup=new Function("LMGlobalUp(event);");tagdiv.onmousedown=new Function("LMGlobalDn(event);");tagdiv.onmouseover=TagLMTextMouseOver;tagdiv.onmouseout=TagLMTextMouseOut;}if(isbkcolor){if(is.ns&&is.major<5){var object=FindTagFromId(id);if(object)object.bgColor=bkcolor;}else {LMText.css.backgroundColor=bkcolor;}}if(isscroll)LMText.css.overflow="auto";return LMText;}function LMTextResize(propw,proph){TagTxt=FindTagFromId("LMTxt"+this.id);if(TagTxt==null)return;TagTxt.SetLeft=TagSetLeft;TagTxt.SetTop=TagSetTop;TagTxt.SetWidth=TagSetWidth;TagTxt.SetHeight=TagSetHeight;TagTxt.SetLeft(this.MargeLeft*propw);TagTxt.SetTop(this.MargeTop*proph);TagTxt.SetWidth(this.TagObject.GetWidth()-(this.MargeLeft+this.MargeRight)*propw);TagTxt.SetHeight(this.TagObject.GetHeight()-(this.MargeTop+this.MargeBottom)*proph);}function IELMTextBrOver(id,idx){LMGlobalOver(id);FireEvent(id+"_"+idx,"_OnMouseEnter");var LMObject=FindClassObjectFromId(id);if(!LMObject)return;if(LMObject.BranchLst){for(var i=0;i<LMObject.BranchLst.length;i++){if(LMObject.BranchLst[i]==null)continue;if(LMObject.BranchLst[i].id==idx){window.status=LMObject.BranchLst[i].where;break;}}}}function IELMTextBrOut(id,idx){LMGlobalOver(-1);FireEvent(id+"_"+idx,"_OnMouseLeave");var LMObject=FindClassObjectFromId(id);if(!LMObject)return;if(LMObject.BranchLst){for(var i=0;i<LMObject.BranchLst.length;i++){if(LMObject.BranchLst[i]==null)continue;if(LMObject.BranchLst[i].id==idx){break;}}}}function IELMTextBrDown(id,idx){FireEvent(id+"_"+idx,"_OnMouseDown");}function IELMTextBrUp(object_id,branch_id){FireEvent(object_id+"_"+branch_id,"_OnMouseUp");FireEvent(object_id+"_"+branch_id,"_OnClick");var LMObject=FindClassObjectFromId(object_id);if(!LMObject)return;for(var i=0;i<LMObject.BranchLst.length;i++){if(LMObject.BranchLst[i]==null)continue;if(LMObject.BranchLst[i].id==branch_id){LMObjectClick(LMObject.id,i);break;}}}function TagLMTextMouseOver(){LMGlobalOver(this.id);}function TagLMTextMouseOut(){LMGlobalOver(-1);}function LMButton(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchdn,branchup,tooltip,param,is2state,initpress,imageup,imagedown,imageover){var tmp=" ";var BranchLst=null;if(branchup||branchdn){BranchLst=new Array();BranchLst[0]=branchdn;BranchLst[1]=branchup;}var LMButton=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param);if(tooltip){if(tooltip.text){tmp="ALT=\""+tooltip.text+"\" ";}}var commontext=tmp+"NAME=LMButton"+id+" "+"ID=LMButton"+id+" "+"objectid="+id+" "+"BORDER=0 "+"LEFT=0 "+"TOP=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onmouseup=LMGlobalUp(event); "+"onmousedown=LMGlobalDn(event); "+"onmouseover=TagLMButtonMouseOver(this); "+"onmouseout=TagLMButtonMouseOut(this); "+"onload=TagLMButtonLoad(this);";if(is.ns){if(branchdn||branchup)LMButton.tag+="<a href=\"javascript:NSLMGlobalUp()\";>";else LMButton.tag+="<a>";LMButton.tag+="<IMG SRC=\""+imageup+"\" "+commontext+"></a>";}else {LMButton.tag+="<IMG SRC=\"\" "+commontext+">";}LMBindToObject(LMButton);LMButton.MouseUp=LMButtonMouseUp;LMButton.MouseDn=LMButtonMouseDn;LMButton.MouseOver=LMButtonMouseOver;LMButton.MouseOut=LMButtonMouseOut;LMButton.InitObject=LMButtonInit;LMButton.ResizeObject=LMButtonResize;LMButton.OnAfterPageDisplay=LMButtonOnAfterPageDisplay;LMButton.ButtonOver=false;LMButton.init=false;if(is2state==0)initpress=0;LMButton.is2state=is2state;LMButton.pressstate=initpress;if(imageup){LMButton.ImageUp=imageup;}if(imagedown){LMButton.ImageDown=imagedown;}if(imageover){LMButton.ImageOver=imageover;}var tagimg=FindTagFromId("LMButton"+id);LMButton.TagImg=tagimg;LMButton.TagObject.IsPress=TagLMButtonIsPress;LMButton.TagObject.Press=TagLMButtonSetPressState;tagimg.objectid=id;tagimg.onerror=TagLMButtonError;return LMButton;}function TagLMButtonLoad(TagImg){if(TagImg.complete==false){setTimeout("TagLMButtonLoad(FindTagFromId(\"LMButton"+TagImg.objectid+"\"))",100.);return;}var tagdiv=FindTagFromId(TagImg.objectid);if(tagdiv==null)return;if(tagdiv)tagdiv.drawok=1;}function TagLMButtonError(){var LMObject=FindClassObjectFromId(this.objectid);if(!LMObject)return;var tagdiv=FindTagFromId(this.objectid);if(tagdiv==null);else if(this.src!=""&&LMObject.init==true){if(tagdiv)tagdiv.drawok=1;}}function LMButtonInit(){if(this.init==true)return;this.init=true;if(this.is2state&&this.pressstate&&this.ImageDown){this.TagImg.src=this.ImageDown;}else {if(this.ImageUp){this.TagImg.src=this.ImageUp;}}}function LMButtonResize(propw,proph){var TagImg=FindTagFromId("LMButton"+this.id);if(TagImg==null)return;TagImg.width=this.TagObject.GetWidth();TagImg.height=this.TagObject.GetHeight();}function LMButtonOnAfterPageDisplay(){var last=preloadImages.length;if(this.ImageDown){preloadImages[last]=new Image;preloadImages[last++].src=this.ImageDown;}if(this.ImageOver){preloadImages[last]=new Image;preloadImages[last++].src=this.ImageOver;}}function TagLMButtonMouseOver(TagImg){LMGlobalOver(TagImg.objectid);}function TagLMButtonMouseOut(TagImg){LMGlobalOver(-1);}function LMButtonMouseUp(){if(this.is2state){if(this.pressstate){FireEvent(this.id,"_WhenButtonDown");LMObjectClick(this.id,0);}else {FireEvent(this.id,"_WhenButtonUp");LMObjectClick(this.id,1);}}else {if(!this.ButtonOver){if(this.ImageUp){this.TagImg.src=this.ImageUp;}}else {if(this.ImageOver){this.TagImg.src=this.ImageOver;}else {this.TagImg.src=this.ImageUp;}}FireEvent(this.id,"_WhenButtonUp");LMObjectClick(this.id,0);}}function LMButtonMouseDn(){if(this.is2state){if(this.pressstate){if(this.ImageUp){this.TagImg.src=this.ImageUp;}}else {if(this.ImageDown){this.TagImg.src=this.ImageDown;}}if(this.pressstate)this.pressstate=0;else this.pressstate=1;}else {if(this.ImageDown){this.TagImg.src=this.ImageDown;FireEvent(this.id,"_WhenButtonDown");}}}function LMButtonMouseOver(){this.ButtonOver=true;if(this.ImageOver){this.TagImg.src=this.ImageOver;}if((this.BranchLst&&this.BranchLst[this.pressstate]))window.status=this.BranchLst[this.pressstate].where;if(is.ie){if(this.BranchLst&&this.BranchLst[this.pressstate]){if(this.BranchLst[this.pressstate].where)this.TagImg.style.cursor="hand";}}}function LMButtonMouseOut(){this.ButtonOver=false;if(this.is2state){if(this.pressstate){if(this.ImageDown){this.TagImg.src=this.ImageDown;}}else {if(this.ImageUp){this.TagImg.src=this.ImageUp;}}}else {if(this.ImageUp){this.TagImg.src=this.ImageUp;}if((this.BranchLst&&this.BranchLst[0]))window.status="";}}function TagLMButtonIsPress(){var object=FindClassObjectFromId(this.id);if(!object)return false;return object.pressstate;}function TagLMButtonSetPressState(state){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.is2state==false)return;object.pressstate=state;if(object.pressstate){if(object.ImageDown){object.TagImg.src=object.ImageDown;FireEvent(this.id,"_WhenButtonDown");}}else {if(object.ImageUp){object.TagImg.src=object.ImageUp;FireEvent(this.id,"_WhenButtonUp");}}}function LMListValue(value,assvalue,selected){this.value=value;this.assvalue=assvalue;this.selected=selected;}function LMInputEnable(){if(!this.object)return;this.object.disabled=false;FireEvent(this.id,"_OnEnable");}function LMInputDisable(){if(!this.object)return;this.object.disabled=true;FireEvent(this.id,"_OnDisable");}function LInputToggleEnableState(){if(!this.object)return;this.object.disabled=!this.object.disabled;if(this.object.disabled==false)FireEvent(this.id,"_OnEnable");else FireEvent(this.id,"_OnDisable");}function CheckRadioOnClick(id){FireEvent(id,"_OnClick");FireEvent(id,"_OnChange");}function CheckRadioOnKeyPress(id){FireEvent(id,"_OnKeyPress");FireEvent(id,"_OnChange");}function AddElemToForm(form,id){var formtag=FindTagFromId(form);if(!formtag.ListElems)formtag.ListElems=new Array();formtag.ListElems[formtag.ListElems.length]=id;}function IsAllDigit(c){if(!(c>='0'&&c<='9'))return 0;return 1;}function IsAllAlpha(c){if(c>='a'&&c<='z')return 1;if(c>='A'&&c<='Z')return 1;switch(c){case 'à':case 'â':case 'ä':case 'À':case 'Â':case 'Ä':case 'å':case 'é':case 'è':case 'ê':case 'ë':case 'É':case 'È':case 'Ê':case 'Ë':case 'í':case 'ì':case 'î':case 'ï':case 'Í':case 'Ì':case 'Î':case 'Ï':case 'ó':case 'ò':case 'ô':case 'ö':case 'õ':case 'Ó':case 'Ò':case 'Ô':case 'Ö':case 'Õ':case 'ú':case 'ù':case 'û':case 'ü':case 'Ú':case 'Ù':case 'Û':case 'Ü':case 'ý':case 'Ý':case 'ÿ':case 'Ç':case 'ç':return 1;}return 0;}function IsMail(string){var i;var length=string.length;for(i=0;i<length;i++){var c=string.charAt(i);if(c=='@')return 1;}return 0;}function IsBlank(string){var i;var length=string.length;for(i=0;i<length;i++){if(string.charAt(i)!=' ')return 0;}return 1;}function LMInputBaseText(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,size,maxlength,enable,value,type,validdigit,validalpha,validmail,validreq){var w;if(size>0)w=size*10;else w=160;var h=fontbase2+5;var divid=id;var LMInput=new LMObject(divid,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,null,null,null);LMInput.tag+="<input ";if(type!="")LMInput.tag+=" type='"+type+"'";if(variable!="")LMInput.tag+=" id='obj"+id+"' name='"+variable+"'";if(size>=0)LMInput.tag+=" size="+size;if(maxlength>=0)LMInput.tag+=" maxlength="+maxlength;if(value!="")LMInput.tag+=" value='"+value+"'";if(enable==false)LMInput.tag+=" disabled=true";LMInput.tag+=" onclick=FireEvent('"+id+"','_OnClick');";LMInput.tag+=" ondblclick=FireEvent('"+id+"','_OnDblClick');";LMInput.tag+=" onmousedown=FireEvent('"+id+"','_OnMouseDown');";LMInput.tag+=" onmouseup=FireEvent('"+id+"','_OnMouseUp');";LMInput.tag+=" onfocus=FireEvent('"+id+"','_OnEnter');";LMInput.tag+=" onblur=FireEvent('"+id+"','_OnLeave');";LMInput.tag+=" onchange=FireEvent('"+id+"','_OnChange');";LMInput.tag+=" onkeydown=FireEvent('"+id+"','_OnKeyDown');";LMInput.tag+=" onkeypress=FireEvent('"+id+"','_OnKeyPress');";LMInput.tag+=" onkeyup=FireEvent('"+id+"','_OnKeyUp');";LMInput.tag+=" onselect=FireEvent('"+id+"','_OnSelect');";LMInput.tag+=">";LMInput.validdigit=validdigit;LMInput.validalpha=validalpha;LMInput.validmail=validmail;LMInput.validreq=validreq;LMBindToObject(LMInput);AddElemToForm(form,id);if(is.ie&&type!="hidden"){var objtag=FindTagFromId(form+".obj"+id);w=objtag.clientWidth+5;h=objtag.clientHeight+5;LMInput.TagObject.SetWidth(w);LMInput.TagObject.SetHeight(h);LMInput.TagObject.SetClip(0,w,h,0);}var tagdiv=FindTagFromId(divid);if(tagdiv==null);else tagdiv.drawok=1;tagdiv.Enable=LMInputEnable;tagdiv.Disable=LMInputDisable;tagdiv.ToggleEnableState=LInputToggleEnableState;tagdiv.object=eval("document."+form+".obj"+id);if(tagdiv&&is.ns&&initvisible)tagdiv.Show();return LMInput;}function LMInputTextArea(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,cols,rows,wrap,enable,value,validdigit,validalpha,validmail,validreq){var w,h;if(cols>0)w=cols*10+60;else w=200;if(rows<3)rows=3;if(is.ns)rows--;h=rows*fontbase2+20;var divid=id;var LMInput=new LMObject(divid,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,null,null,null);LMInput.tag+="<textarea ";if(variable!="")LMInput.tag+=" id='obj"+id+"' name='"+variable+"'";if(cols>=0)LMInput.tag+=" cols="+cols;if(rows>=0)LMInput.tag+=" rows="+rows;if(wrap!="")LMInput.tag+=" wrap='"+wrap+"'";if(enable==false)LMInput.tag+=" disabled=true";LMInput.tag+=" onclick=FireEvent('"+id+"','_OnClick');";LMInput.tag+=" ondblclick=FireEvent('"+id+"','_OnDblClick');";LMInput.tag+=" onmousedown=FireEvent('"+id+"','_OnMouseDown');";LMInput.tag+=" onmouseup=FireEvent('"+id+"','_OnMouseUp');";LMInput.tag+=" onfocus=FireEvent('"+id+"','_OnEnter');";LMInput.tag+=" onblur=FireEvent('"+id+"','_OnLeave');";LMInput.tag+=" onchange=FireEvent('"+id+"','_OnChange');";LMInput.tag+=" onkeydown=FireEvent('"+id+"','_OnKeyDown');";LMInput.tag+=" onkeypress=FireEvent('"+id+"','_OnKeyPress');";LMInput.tag+=" onkeyup=FireEvent('"+id+"','_OnKeyUp');";LMInput.tag+=" onselect=FireEvent('"+id+"','_OnSelect');";LMInput.tag+=">";LMInput.tag+=value;LMInput.tag+="</textarea>";LMInput.validdigit=validdigit;LMInput.validalpha=validalpha;LMInput.validmail=validmail;LMInput.validreq=validreq;LMBindToObject(LMInput);AddElemToForm(form,id);if(is.ie){var objtag=FindTagFromId(form+".obj"+id);var w=objtag.clientWidth+19;var h=objtag.clientHeight+19;LMInput.TagObject.SetWidth(w);LMInput.TagObject.SetHeight(h);LMInput.TagObject.SetClip(0,w,h,0);}var tagdiv=FindTagFromId(divid);if(tagdiv==null);else tagdiv.drawok=1;if(tagdiv&&is.ns&&initvisible)tagdiv.Show();tagdiv.Enable=LMInputEnable;tagdiv.Disable=LMInputDisable;tagdiv.ToggleEnableState=LInputToggleEnableState;tagdiv.object=eval("document."+form+".obj"+id);return LMInput;}function LMInputBaseCheckBoxRadio(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,checked,enable,value,type){if(is.macpowerpc){if(is.ie){}else {x-=4;y-=3;}}else {if(is.ie){x-=4;y-=4;}else {x-=4;y-=3;}}var w=16;var h=15;x-=2;y-=2;w+=4;h+=4;var divid=id;var LMInput=new LMObject(divid,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,null,null,null);LMInput.tag+="<input STYLE=\"position:absolute;left:2;top:2;\"";if(type!="")LMInput.tag+=" type='"+type+"'";if(variable!="")LMInput.tag+=" id='obj"+id+"' name='"+variable+"'";if(value!="")LMInput.tag+=" value='"+value+"'";if(checked)LMInput.tag+=" checked";if(enable==false)LMInput.tag+=" disabled=true";LMInput.tag+=" onclick=CheckRadioOnClick('"+id+"');";LMInput.tag+=" ondblclick=FireEvent('"+id+"','_OnDblClick');";LMInput.tag+=" onmousedown=FireEvent('"+id+"','_OnMouseDown');";LMInput.tag+=" onmouseup=FireEvent('"+id+"','_OnMouseUp');";LMInput.tag+=" onfocus=FireEvent('"+id+"','_OnEnter');";LMInput.tag+=" onblur=FireEvent('"+id+"','_OnLeave');";LMInput.tag+=" onkeydown=FireEvent('"+id+"','_OnKeyDown');";LMInput.tag+=" onkeypress=CheckRadioOnKeyPress('"+id+"');";LMInput.tag+=" onkeyup=FireEvent('"+id+"','_OnKeyUp');";LMInput.tag+=" onselect=FireEvent('"+id+"','_OnSelect');";LMInput.tag+=">";LMInput.validdigit=0;LMInput.validalpha=0;LMInput.validmail=0;LMInput.validreq=0;LMBindToObject(LMInput);AddElemToForm(form,id);if(is.ie){var objtag=FindTagFromId(form+".obj"+id);var w=objtag.clientWidth;var h=objtag.clientHeight;LMInput.TagObject.SetWidth(w);LMInput.TagObject.SetHeight(h);LMInput.TagObject.SetClip(0,w+4,h+4,0);}var tagdiv=FindTagFromId(divid);if(tagdiv==null);else tagdiv.drawok=1;tagdiv.Enable=LMInputEnable;tagdiv.Disable=LMInputDisable;tagdiv.ToggleEnableState=LInputToggleEnableState;tagdiv.object=eval("document."+form+".obj"+id);if(tagdiv&&is.ns&&initvisible)tagdiv.Show();return LMInput;}function LMInputBaseListComboBox(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,lines,multiple,enable,elemlist){var w,h;var max=1;for(i=0;i<elemlist.length;i++){elem=elemlist[i];if(elem.value.length>max)max=elem.value.length;}w=max*10+60;if(lines>0)h=lines*fontbase2+5;else h=fontbase2+5;var divid=id;var LMInput=new LMObject(divid,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,null,null,null);LMInput.tag+="<select ";if(variable!="")LMInput.tag+=" id='obj"+id+"' name='"+variable+"'";if(lines>=0)LMInput.tag+=" size="+lines;if(multiple)LMInput.tag+=" multiple";if(enable==false)LMInput.tag+=" disabled=true";LMInput.tag+=" onclick=FireEvent('"+id+"','_OnClick');";LMInput.tag+=" ondblclick=FireEvent('"+id+"','_OnDblClick');";LMInput.tag+=" onmousedown=FireEvent('"+id+"','_OnMouseDown');";LMInput.tag+=" onmouseup=FireEvent('"+id+"','_OnMouseUp');";LMInput.tag+=" onfocus=FireEvent('"+id+"','_OnEnter');";LMInput.tag+=" onblur=FireEvent('"+id+"','_OnLeave');";LMInput.tag+=" onchange=FireEvent('"+id+"','_OnChange');";LMInput.tag+=" onkeydown=FireEvent('"+id+"','_OnKeyDown');";LMInput.tag+=" onkeypress=FireEvent('"+id+"','_OnKeyPress');";LMInput.tag+=" onkeyup=FireEvent('"+id+"','_OnKeyUp');";LMInput.tag+=">";for(i=0;i<elemlist.length;i++){elem=elemlist[i];LMInput.tag+="<option";if(elem.selected)LMInput.tag+=" selected";if(elem.assvalue)LMInput.tag+=" value='"+elem.assvalue+"'";else LMInput.tag+=" value='"+elem.value+"'";LMInput.tag+=">";LMInput.tag+=elem.value;LMInput.tag+="</option>";}LMInput.tag+="</select>";LMInput.validdigit=0;LMInput.validalpha=0;LMInput.validmail=0;LMInput.validreq=0;LMBindToObject(LMInput);AddElemToForm(form,id);if(is.ie){var objtag=FindTagFromId(form+".obj"+id);w=objtag.clientWidth+5;h=objtag.clientHeight+5;LMInput.TagObject.SetWidth(w);LMInput.TagObject.SetHeight(h);LMInput.TagObject.SetClip(0,w,h,0);}var tagdiv=FindTagFromId(divid);if(tagdiv==null);else tagdiv.drawok=1;tagdiv.Enable=LMInputEnable;tagdiv.Disable=LMInputDisable;tagdiv.ToggleEnableState=LInputToggleEnableState;tagdiv.object=eval("document."+form+".obj"+id);if(tagdiv&&is.ns&&initvisible)tagdiv.Show();return LMInput;}function LMInputText(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,size,maxlength,enable,value,validdigit,validalpha,validmail,validreq){return LMInputBaseText(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,size,maxlength,enable,value,"text",validdigit,validalpha,validmail,validreq);}function LMInputPassword(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,size,maxlength,enable,value,validdigit,validalpha,validmail,validreq){return LMInputBaseText(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,size,maxlength,enable,value,"password",validdigit,validalpha,validmail,validreq);}function LMInputHidden(id,form,variable,value){return LMInputBaseText(id,form,variable,0,0,0,0,null,0,null,0,0,true,value,"hidden",0,0,0);}function LMInputCheckBox(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,checked,enable,value){return LMInputBaseCheckBoxRadio(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,checked,enable,value,"checkbox");}function LMInputRadio(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,checked,enable,value){return LMInputBaseCheckBoxRadio(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,checked,enable,value,"radio");}function LMInputListBox(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,lines,multiple,enable,elemlist){if(lines==-1)lines=1;return LMInputBaseListComboBox(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,lines,multiple,enable,elemlist);}function LMInputComboBox(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,enable,elemlist){return LMInputBaseListComboBox(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,-1,false,enable,elemlist);}function ButonOnClickSubmit(id,form){FireEvent(id,"_OnClick");var objform=FindTagFromId(form);if(!objform)return;objform.FSubmit();}function ButonOnClickReset(id,form){FireEvent(id,"_OnClick");var objform=FindTagFromId(form);if(!objform)return;objform.FReset();}function LMInputButton(id,form,variable,x,y,initvisible,delais,effect,delaisdisp,effectdisp,enable,value,type){var w;if(value.length>0)w=value.length*16;else w=120;var h=fontbase2+6;var divid=id;var LMInput=new LMObject(divid,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,null,null,null);LMInput.tag+="<input ";LMInput.tag+=" type='Button'";if(variable!="")LMInput.tag+=" id='obj"+id+"' name='"+variable+"'";if(value!="")LMInput.tag+=" value='"+value+"'";if(enable==false)LMInput.tag+=" disabled=true";if(type==1)LMInput.tag+=" onclick=ButonOnClickSubmit('"+id+"','"+form+"');";else if(type==2)LMInput.tag+=" onclick=ButonOnClickReset('"+id+"','"+form+"');";LMInput.tag+=" ondblclick=FireEvent('"+id+"','_OnDblClick');";LMInput.tag+=" onmousedown=FireEvent('"+id+"','_OnMouseDown');";LMInput.tag+=" onmouseup=FireEvent('"+id+"','_OnMouseUp');";LMInput.tag+=" onfocus=FireEvent('"+id+"','_OnEnter');";LMInput.tag+=" onblur=FireEvent('"+id+"','_OnLeave');";LMInput.tag+=" onkeydown=FireEvent('"+id+"','_OnKeyDown');";LMInput.tag+=" onkeypress=CheckRadioOnKeyPress('"+id+"');";LMInput.tag+=" onkeyup=FireEvent('"+id+"','_OnKeyUp');";LMInput.tag+=" onselect=FireEvent('"+id+"','_OnSelect');";LMInput.tag+=">";LMBindToObject(LMInput);if(is.ie){var objtag=FindTagFromId(form+".obj"+id);var w=objtag.clientWidth+10;var h=objtag.clientHeight+5;LMInput.TagObject.SetWidth(w);LMInput.TagObject.SetHeight(h);LMInput.TagObject.SetClip(0,w,h,0);}var tagdiv=FindTagFromId(divid);if(tagdiv==null);else tagdiv.drawok=1;tagdiv.Enable=LMInputEnable;tagdiv.Disable=LMInputDisable;tagdiv.ToggleEnableState=LInputToggleEnableState;tagdiv.object=eval("document."+form+".obj"+id);if(tagdiv&&is.ns&&initvisible)tagdiv.Show();return LMInput;}function ValidateForm(form){var formtag=FindTagFromId(form);var i,j;var listelems=formtag.ListElems.length;for(i=0;i<listelems;i++){var tagobject=FindTagFromId(formtag.ListElems[i]);var inputtag=tagobject.object;var objet=FindClassObjectFromTagDiv(tagobject);if(objet.validreq){if(IsBlank(inputtag.value)){alert(RES_VALIDBLANK);inputtag.focus();return 0;}}if(objet.validmail){if(!IsMail(inputtag.value)){alert(RES_VALIDMAIL);inputtag.focus();return 0;}}var length=inputtag.value.length;for(j=0;j<length;j++){var c=inputtag.value.charAt(j);if(objet.validdigit&&objet.validalpha){if(!IsAllDigit(c)&&!IsAllAlpha(c)){alert(RES_VALIDDIGITALPHA);inputtag.focus();return 0;}}if(objet.validdigit&&!objet.validalpha){if(!IsAllDigit(c)){alert(RES_VALIDDIGIT);inputtag.focus();return 0;}}if(!objet.validdigit&&objet.validalpha){if(!IsAllAlpha(c)){alert(RES_VALIDALPHA);inputtag.focus();return 0;}}}}return 1;}var submitenter=0;function FormSubmit(){if(is.ns){if(submitenter==1){submitenter=0;return false;}if(submitenter==0)submitenter=1;}if(ValidateForm(this.id)==0)return false;this.onsubmit();this.submit();return false;}function FormReset(){if(is.ns)this.onreset();this.reset();}function FormBindSubmitReset(id){var object=FindTagFromId(id);if(!object)return;object.FSubmit=FormSubmit;object.FReset=FormReset;}