
Lycos.webon.modules.googlecalendar=function(instId,subInstId){this.type="googlecalendar";this.instId=instId;this.subInstId=subInstId;this.lyModule=Lycos.webon.module;this.lyModule(instId,subInstId);var tmp=this;this.addEventListener("lightbox",function(e){tmp.onLightbox(e);});this.addEventListener("saveInfo",function(e){tmp.onSaveInfo(e);});this.showSomething=function(msg){var obj={"message":msg,"id":"showMessage"};this.lyAjaxObj(obj,"lightbox");return false;}
this.onLightbox=function(evt){var data=evt.lyResponse;if(data.error){Lycos.ui.lightbox.hide();alert(data.error);return;}
Lycos.ui.lightbox.populate(data.html);if(data.id=="showMessage"){}}
this.saveInfo=function(form){this.lyAjaxForm(form);return false;}
this.onSaveInfo=function(evt){if(evt.lyResponse.error){alert(evt.lyResponse.error);}}}