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_Website_List_With_Us()}); var objSrc_Website_List_With_Us_Panel = null; objSrc_Website_List_With_Us_checker = null; function doCreateLeadForm_Src_Website_List_With_Us(){ var objFormRules_Src_Website_List_With_Us =[{FormName:'Src_Website_List_With_Us_Form',FieldName:'FirstName',Required:true,Rule:''},{FormName:'Src_Website_List_With_Us_Form',FieldName:'LastName',Required:true,Rule:''},{FormName:'Src_Website_List_With_Us_Form',FieldName:'EmailAddress',Required:true,Rule:'email'},{FormName:'Src_Website_List_With_Us_Form',FieldName:'PhoneNumber',Required:true,Rule:'phonenumber'},{FormName:'Src_Website_List_With_Us_Form',FieldName:'MobilePhone',Required:false,Rule:'phonenumber'},{FormName:'Src_Website_List_With_Us_Form',FieldName:'StreetAddress',Required:true,Rule:''},{FormName:'Src_Website_List_With_Us_Form',FieldName:'City',Required:true,Rule:''},{FormName:'Src_Website_List_With_Us_Form',FieldName:'State',Required:true,Rule:''},{FormName:'Src_Website_List_With_Us_Form',FieldName:'Zip',Required:true,Rule:''},{FormName:'Src_Website_List_With_Us_Form',FieldName:'SQFoot',Required:true,Rule:'numeric'},{FormName:'Src_Website_List_With_Us_Form',FieldName:'Beds',Required:true,Rule:'numeric'},{FormName:'Src_Website_List_With_Us_Form',FieldName:'Baths',Required:true,Rule:'numericdecimal'}] var onSubmit = function(){ var check = objSrc_Website_List_With_Us_checker.doCheckAllFields(); if(check){ doPostLeadForm_Src_Website_List_With_Us('Src_Website_List_With_Us_Form'); } }; var onCancel = function(){ objSrc_Website_List_With_Us_checker.doClearAllStatus(); this.cancel(); }; objSrc_Website_List_With_Us_Panel = new YAHOO.widget.Dialog("Src_Website_List_With_Us_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_Website_List_With_Us_Panel.setBody('
Contact Information
Property Information
'); objSrc_Website_List_With_Us_Panel.setHeader('List With Us') objSrc_Website_List_With_Us_Panel.render(document.body); // DO NOT PUT var before this so that it is accessable from the onBlur in the form objSrc_Website_List_With_Us_checker = new iQ.Form.Checker(objFormRules_Src_Website_List_With_Us); objSrc_Website_List_With_Us_checker.doLoad(); } function doPostLeadForm_Src_Website_List_With_Us(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_Website_List_With_Us"; _Ajax.Send(); } function onPostLeadForm_Src_Website_List_With_Us(jsonRet){ iQ.Utils.doHideProcessing(); if(jsonRet.CONSOLEMESSAGE){ alert(jsonRet.CONSOLEMESSAGE); } iQ.Utils.HideLeadForm('Website List With Us'); iQ.Utils.doMessagePanel('Complete','Process Complete'); }