SetupNamespaces("EZLF.Shared");EZLF.Shared.FeedbackAgent=function(){var d=this,f=true,c=null,g=null,i=null,b=null,e=null;stateAssistLeaseType=null;d.ShowStateAssistFeedback=function(m,k,l,j){i=m;b=k;e=l;
stateAssistLeaseType=j;d.ShowFeedbackAgent()};d.ShowFeedbackAgent=function(o){g=new EZLF.Shared.ModalDialog(null,null,true);if(userID<0){f=false}var j=Elem("div");var p=Elem("h1");p.appendChild(Text("Your Feedback About This Page"));
var s=Elem("table");var t,r,q,n,m,l,k;s.cellspacing=0;s.cellpadding=4;t=s.insertRow(s.rows.length);cell1=t.insertCell(t.cells.length);cell2=t.insertCell(t.cells.length);n=Elem("input");n.type="text";n.id="FeedbackName";
n.style.width="200px";n.maxlength=64;n.tabindex=1;cell1.appendChild(Text("Name: "));cell2.appendChild(n);m=Elem("input");m.type="text";m.id="FeedbackEmail";m.style.width="200px";m.maxlength=64;m.tabindex=2;
if(!f){t=s.insertRow(s.rows.length);cell1=t.insertCell(t.cells.length);cell2=t.insertCell(t.cells.length);cell1.appendChild(Text("Email: "));cell2.appendChild(m)}t=s.insertRow(s.rows.length);cell1=t.insertCell(t.cells.length);
cell2=t.insertCell(t.cells.length);l=Elem("textarea");l.id="FeedbackComments";l.style.width="250px";l.style.height="200px";l.tabindex=3;cell1.appendChild(Text("Comments: "));cell1.style.verticalAlign="top";
cell1.style.padding="4px 0 0 0";cell2.appendChild(l);t=s.insertRow(s.rows.length);cell1=t.insertCell(t.cells.length);cell2=t.insertCell(t.cells.length);cell1.style.padding="5px 0 5px 0";k=Elem("input");
k.type="button";k.id="FeedbackSubmit";k.value="Send Feedback";k.tabindex=4;k.className="Button";k.onclick=function(){a(n.value,m.value,l.value,j);return false};cell2.appendChild(k);j.appendChild(p);j.appendChild(s);
g.Display(j,375,375);n.focus()};var a=function(k,j,n,q){ClearChildNodes(q);var p=Elem("h1");p.appendChild(Text("Now Sending Your Feedback..."));var l=Elem("div");l.style.textAlign="center";l.style.padding="40px 0";
var o=Elem("img");o.src="/images/ajax-loader.gif";o.width=32;o.height=32;o.alt="Loading...";l.appendChild(o);q.appendChild(p);q.appendChild(l);var m=new Pliner.Util.Ajax.Message("/ajax/shared/feedback.aspx",0);
m.AddPostDataKey("name",k);m.AddPostDataKey("email",j);m.AddPostDataKey("comments",n);if(i){m.AddPostDataKey("stateAssistHeader",i);m.AddPostDataKey("stateAssistState",b);m.AddPostDataKey("stateAssistCountry",e);
m.AddPostDataKey("stateAssistLeaseType",stateAssistLeaseType)}m.AddPostDataKey("page",document.location.href);m.AddOnCompletedEvent(function(r){h(q)});ajaxConnection.AddToQueue(m)},h=function(l){ClearChildNodes(l);
g.ResizeDialog(375,150,2);var k=Elem("h1");k.appendChild(Text("Your Feedback Has Been Sent"));l.appendChild(k);l.appendChild(Text("Thank you for helping us to improve ezLandlordForms.com."));l.appendChild(Elem("br"));
l.appendChild(Elem("br"));var j=Elem("a");j.href="#";j.onclick=function(){g.CloseDialog();return false};j.appendChild(Text("Close the Feedback Window"));l.appendChild(j)}};var GlobalFeedbackAgent=new EZLF.Shared.FeedbackAgent();
