if(!iQ.Ajax){alert('iQAjax.js Not Loaded');}; if(!iQ.Utils){alert('iQUtils.js Not Loaded');}; YAHOO.util.Event.addListener(window,"load",function(){doCreateLeadForm_Src_Property_Watch()}); var objSrc_Property_Watch_Panel = null; objSrc_Property_Watch_checker = null; function doCreateLeadForm_Src_Property_Watch(){ var objFormRules_Src_Property_Watch =[{FormName:'Src_Property_Watch_Form',FieldName:'FirstName',Required:true,Rule:''},{FormName:'Src_Property_Watch_Form',FieldName:'LastName',Required:true,Rule:''},{FormName:'Src_Property_Watch_Form',FieldName:'EmailAddress',Required:true,Rule:'email'},{FormName:'Src_Property_Watch_Form',FieldName:'Phone',Required:false,Rule:'phonenumber'},{FormName:'Src_Property_Watch_Form',FieldName:'Cell',Required:false,Rule:'phonenumber'},{FormName:'Src_Property_Watch_Form',FieldName:'WorkPhone',Required:false,Rule:'phonenumber'},{FormName:'Src_Property_Watch_Form',FieldName:'UserID',Required:true,Rule:''},{FormName:'Src_Property_Watch_Form',FieldName:'Password',Required:true,Rule:''},{FormName:'Src_Property_Watch_Form',FieldName:'PasswordAgain',Required:true,Rule:''}] var onSubmit = function(){ var check = objSrc_Property_Watch_checker.doCheckAllFields(); if(check){ doPostLeadForm_Src_Property_Watch('Src_Property_Watch_Form'); } }; var onCancel = function(){ objSrc_Property_Watch_checker.doClearAllStatus(); this.cancel(); }; objSrc_Property_Watch_Panel = new YAHOO.widget.Dialog("Src_Property_Watch_Panel", { postmethod:"none", width:"600px", visible:false, draggable:true, close:false, constraintoviewport:false, modal:true, zindex:510, buttons:[{text:"Submit",handler:onSubmit,isDefault:true},{text:"Cancel",handler:onCancel}] } ); // Render the Dialog objSrc_Property_Watch_Panel.setBody('
Contact
Login Information
'); objSrc_Property_Watch_Panel.setHeader('Property Watch') objSrc_Property_Watch_Panel.render(document.body); // DO NOT PUT var before this so that it is accessable from the onBlur in the form objSrc_Property_Watch_checker = new iQ.Form.Checker(objFormRules_Src_Property_Watch); objSrc_Property_Watch_checker.doLoad(); } function doPostLeadForm_Src_Property_Watch(formid){ iQ.Utils.doShowProcessing(); var params = iQ.Utils.BuildAjaxParamStruct(formid); var _Ajax = new iQ.Ajax(); _Ajax.CFCMethod = 'PostLeadForm'; _Ajax.URL = '/websvc/LeadEntry.cfc'; _Ajax.Params ={Params:'{' + params + '}'}; _Ajax.CallbackHandler = "onPostLeadForm_Src_Property_Watch"; _Ajax.Send(); } function onPostLeadForm_Src_Property_Watch(jsonRet){ iQ.Utils.doHideProcessing(); if(jsonRet.CONSOLEMESSAGE){ alert(jsonRet.CONSOLEMESSAGE); } iQ.Utils.HideLeadForm('Property Watch'); iQ.Utils.doMessagePanel('Complete','Process Complete'); }