if(Function.prototype.bind==undefined){Function.prototype.bind=function(o){var fn=this;return function(){return fn.apply(o,arguments);};};};if(typeof window.$!='function'){function $(id){if(document.getElementById){return document.getElementById(id);} else if(window[id]){return window[id];}}} function L(str,replacements){ret=str;if(replacements instanceof Object){for(var replacement in replacements){var name=replacement;var value=replacements[name];if(name=="URL"){ret=replaceLink(ret,value);} else{ret=ret.replace(new RegExp('{'+name+'}','g'),value);}}} return ret;};function DisplayFormManager(){};DisplayFormManager.prototype.initialize=function(url,formCode){this.formCode=formCode;url=url+'&src='+escape(window.location);var str='';str=L(str,{'FORM_URL':url,'FORM_ID':formCode});document.write(str);var messageTarget=false;try{messageTarget=parent.postMessage?parent:(parent.document.postMessage?parent.document:undefined);} catch(ex){} if(messageTarget&&typeof messageTarget!="undefined"){window.addEventListener("message",this.receiveSize.bind(this),false);} else{this.timer=setInterval(this.checkSize.bind(this),10);}};DisplayFormManager.prototype.checkSize=function(e){if(window.location.hash&&window.location.hash!="#"){var height=window.location.hash.substring(1);if(height!=''&&height!=this.lastHeight){this.lastHeight=height;this.setHeight(height);}}};DisplayFormManager.prototype.receiveSize=function(e){if(e.data){this.setHeight(e.data);}};DisplayFormManager.prototype.setHeight=function(px){var formCode="frm"+this.formCode;var frame=$(formCode);frame.height=px+"px";}; var displayFormManager = new DisplayFormManager(); displayFormManager.initialize('http://www.vizzualforms.com/f/ylWzLV1UygtbWlm7?embed', 'ylWzLV1UygtbWlm7');