
function FrameBuilder(formId, initialHeight, iframeCode) {
	this.formId = formId;
	this.initialHeight = initialHeight;
	this.iframeCode = iframeCode;
	this.frame = null;
	this.timeInterval= 200;

	// initialize function for object
	this.init = function(){
		this.createFrame();
		this.addFrameContent(this.iframeCode);
	};

	// Create the frame
	this.createFrame = function(){
		var htmlCode = "<"+"iframe height=\""+this.initialHeight+"px\" src=\"\" allowtransparency=\"true\" frameborder=\"0\" name=\""+this.formId+"\" id=\""+this.formId+"\" style=\"width:100%;border:none;\" scrolling=\"no\"></if"+"rame>";
		document.write(htmlCode);
        // also get the frame for future use.
        this.frame = document.getElementById(this.formId);
        // set the time on the on load event of the frame
        this.addEvent (this.frame, 'load', this.bindMethod(this.setTimer, this));
	};

	// add event function for different browsers
	this.addEvent = function( obj, type, fn ) {
		if ( obj.attachEvent ) {
			obj["e"+type+fn] = fn;
			obj[type+fn] = function() { obj["e"+type+fn]( window.event ); };
			obj.attachEvent( "on"+type, obj[type+fn] );
		}
		else{
			obj.addEventListener( type, fn, false );
		}
    };

	this.addFrameContent = function (string){
        string = string.replace(new RegExp('src\=\"[^"]*captcha.php\"><\/scr'+'ipt>', 'gim'), 'src="http://api.recaptcha.net/js/recaptcha_ajax.js"></scr'+'ipt><'+'div id="recaptcha_div"><'+'/div>'+
        	    '<'+'style>#recaptcha_logo{ display:none;} #recaptcha_tagline{display:none;} #recaptcha_table{border:none !important;} .recaptchatable .recaptcha_image_cell, #recaptcha_table{ background-color:transparent !important; } <'+'/style>'+
        	    '<'+'script defer="defer"> window.onload = function(){ Recaptcha.create("6Ld9UAgAAAAAAMon8zjt30tEZiGQZ4IIuWXLt1ky", "recaptcha_div", {theme: "clean",tabindex: 0,callback: function (){'+
        	    'if (document.getElementById("uword")) { document.getElementById("uword").parentNode.removeChild(document.getElementById("uword")); } if (window["validate"] !== undefined) { if (document.getElementById("recaptcha_response_field")){ document.getElementById("recaptcha_response_field").onblur = function(){ validate(document.getElementById("recaptcha_response_field"), "Required"); } } } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_challenge_field")[0].setAttribute("name", "anum"); } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_response_field")[0].setAttribute("name", "qCap"); }}})'+
        	    ' }<'+'/script>');
        string = string.replace(/(type="text\/javascript">)\s+(validate\(\"[^"]*"\);)/, '$1 jTime = setInterval(function(){if("validate" in window){$2clearTimeout(jTime);}}, 1000);');
    	var frameDocument = (this.frame.contentWindow) ? this.frame.contentWindow : (this.frame.contentDocument.document) ? this.frame.contentDocument.document : this.frame.contentDocument;
		frameDocument.document.open();
		frameDocument.document.write(string);
		setTimeout( function(){frameDocument.document.close();},200);
	};

	this.setTimer = function(){
		var self = this;
		this.interval = setTimeout(function(){self.changeHeight();},this.timeInterval);
	};

	this.changeHeight = function (){
	    var actualHeight = this.getBodyHeight();
		//console.log(actualHeight);
		var currentHeight = this.getViewPortHeight();
        if(actualHeight === undefined){
            this.frame.style.height = "100%";
            this.frame.style.minHeight = "800px";
        }else if  (Math.abs(actualHeight - currentHeight) > 18){
	    	this.frame.style.height = (actualHeight+30)+"px";
	    }
		this.setTimer();
	};

	this.bindMethod = function(method, scope) {
		return function() {
			method.apply(scope,arguments);
		};
	};

	this.getBodyHeight = function (){
	    var height;
	    var scrollHeight;
	    var offsetHeight;
        try{  // Prevent IE from throw errors
    	    if (this.frame.contentWindow.document.height){

    	        height = this.frame.contentWindow.document.height;

    		} else if (this.frame.contentWindow.document.body){

    	        if (this.frame.contentWindow.document.body.scrollHeight){
    	            height = scrollHeight = this.frame.contentWindow.document.body.scrollHeight;
    	        }

    	        if (this.frame.contentWindow.document.body.offsetHeight){
    	            height = offsetHeight = this.frame.contentWindow.document.body.offsetHeight;
    	        }

    	        if (scrollHeight && offsetHeight){
    	            height = Math.max(scrollHeight, offsetHeight);
    	        }
    	    }
        }catch(e){ }
	    return height;
	};

	this.getViewPortHeight = function(){
	    var height = 0;
        try{ // Prevent IE from throw errors
    	    if (this.frame.contentWindow.window.innerHeight)
    	    {
    	        height = this.frame.contentWindow.window.innerHeight - 18;
    	    }
    	    else if ((this.frame.contentWindow.document.documentElement)
    			&& (this.frame.contentWindow.document.documentElement.clientHeight))
    	    {
    	        height = this.frame.contentWindow.document.documentElement.clientHeight;
    	    }
    	    else if ((this.frame.contentWindow.document.body)
    			&& (this.frame.contentWindow.document.body.clientHeight))
    	    {
    	        height = this.frame.contentWindow.document.body.clientHeight;
    	    }
        }catch(e){ }
	    return height;
	};

	this.init();
}

new FrameBuilder("10611230988", "800", "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html;charset=utf-8' /><meta name='robots' content='noindex, nofollow'><title></title><script type='text/javascript' src='http://www.form2pay.com/publish/validation_js/165725'></script><link rel='stylesheet' type='text/css' href='http://www.form2pay.com/css/forms/publish.css'/><link rel='stylesheet' type='text/css' href='http://www.form2pay.com/publish/script_css/165725'/></head><body id='form_body'><div id='form-main-container'><h1></h1><div class='actual-form'><style>#form-main-container #form_body, #form_body {text-align:center;background-image:url('');background-color:#ffffff;margin-bottom: 0 !important;}.form2pay_link_in_footer {color: #ffffff;float: right;line-height: 14px;font-size: 10px;text-decoration: none !important;cursor: pointer;}.footer-compulsory {float: right;    color: #000000 !important;    font-family: Arial,Helvetica,sans-serif;    font-size: 10px;    margin: -25px 2px !important;    padding: 6px !important;min-height: 14px !important;text-decoration: none !important;}#form-main-container, #form-table {background-image:url('');background-color:#FFFFFF;border: 0 none !important;width:630px;margin: 15px auto;position: relative;text-align:left;}#form-main-container h1 {display:none;background:#2E8ABF;font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: bold;font-size:18px;line-height:18px;color:#FFFFFF;padding: 8px !important;margin:0px;}#form-main-container h2 {display:none;background:#2E8ABF;font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:12px;line-height:12px;color:#FFFFFF;padding: 6px !important;margin:0px;}.actual-heading {font-size:18px;line-height:24px;font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;color: #000000;position:relative;padding-bottom: 10px;margin: 0px;}.actual-sub-heading {font-size:12px;line-height:18px;font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;color: #000000;position:relative;padding-bottom: 10px;margin: 0px;}.actual-form {padding: 0px !important;}.actual_label {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: bold;font-size:12px;line-height:18px;color:#000000;margin: 0 5px 0 0;}.all-check span, .all-radio span {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:12px;line-height:18px;color:#000000;margin: 0 15px 0 0;}.sub-label {font-family:Arial,Helvetica,sans-serif; font-style: italic;font-weight: normal;font-size:10px;line-height:16px;color:#000000;}.actual-fields {list-style-type: none;margin: 0;padding: 15px 0;}.actual-fields-label {width:150px;text-align: left;display: block;float: left;padding: 0 1px;}.actual-fields li {margin:2px 0;padding:8px 15px;clear:both;}.single-field {padding:0px;}.formBtnContainerPreview {display: block;margin: 0;padding: 7px 0;text-align: center;width: 100%;}.single-field textarea {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:12px;color:#000000;border-color:#7F9DB9;border-style:solid;border-width:1px;padding:2px;}.single-field input[type=text] {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:12px;color:#000000;border-color:#7F9DB9;border-style:solid;border-width:1px;padding:2px;}.single-field select {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:12px;line-height:12px;color:#000000;border-color:#7F9DB9;border-style:solid;border-width:1px;padding:2px;}.actual-fields .fld_err {background-color:#FFDBDB !important;border:1px solid #FFB7B7;}.actual-fields .err_span {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: bold;font-size:12px;line-height:18px;color:#D62828;    background: url('http://www.form2pay.com/images/span_error.png') no-repeat scroll left center transparent;    margin: 5px 0;    padding: 1px 1px 1px 18px;    display: block;}.tip-on-focus {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:11px;line-height:17px;color:#ffffff;background-color:#444444; border-color:#666666;border-style:solid;border-width:1px;filter: alpha(opacity=0);}.tip-below-field {font-family:Arial,Helvetica,sans-serif;font-style: normal;font-weight: normal;font-size:11px;line-height:17px;color:#999999;    display: block;    padding: 5px 5px 5px 0;}.tip-below-field .tool_tip_text {}.submitBtn, .resetBtn, .printBtn {font-family:;font-size: 13px;line-height:19px;font-style: normal;font-weight: ;color:#2D2D2D;background-color:;}</style><script type='text/javascript'>$(document).ready(function() {$('.actual-fields li').each(function() {if($(this).attr('rel') == 'Tag5' || $(this).attr('rel') == 'Tag6') {$('#form2pay_form table tbody tr').find('td').css('color', '#000000');}else if($(this).attr('rel') == 'Tag13'){$(this).find('.single-field').css('color', '#000000');}});});</script><form name='frm_165725' action='http://www.form2pay.com/publish/publish_form/165725' method='POST' id='form2pay_form' enctype='multipart/form-data'><input type='hidden' name='form_id' value='165725'><input type='hidden' name='captcha_hidden' value='1'><div class='form-main-error' style='display:none;'>Please fill out all the required fields!</div><ul class='actual-fields'><li id='li-5510b7133cf07' rel='Tag8' validation='required'  ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>Full Name</span><span class='fld-required'>*</span></div><table border='0' cellpadding='0' cellspacing='0' width='315px' style='float:left'><tr><td class='hide-prefix actual-prefix'> <div style='position:relative'><span class='sub-label-container'><input type='text' size='3' name='5510b7133cf07_1' id='5510b7133cf07_1' value=''><label class='fn-prefix sub-label'>Prefix</label></span> </div></td><td> <div style='position:relative'><span class='sub-label-container'><input type='text' size='16' name='5510b7133cf07_2' id='5510b7133cf07_2' value=''><label class='fn-first-name sub-label'>First Name</label></span> </div></td><td class='hide-middle actual-middle'><div style='position:relative'><span class='sub-label-container'><input type='text' size='14' name='5510b7133cf07_3' id='5510b7133cf07_3' value=''><label class='fn-middle-name sub-label'>Middle Name</label></span> </div></td><td> <div style='position:relative'><span class='sub-label-container'><input type='text' size='16' name='5510b7133cf07_4' id='5510b7133cf07_4' value=''><label class='fn-last-name sub-label'>Last Name</label></span> </div></td></tr></table><div style='clear:both'><!-- --></div></div></li><li id='li-5510b7133cf80' rel='Tag7' validation='required'  ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>Email Address</span><span class='fld-required'>*</span></div><div class='email-field-container'> <div style='position:relative'><span class='sub-label-container'><input type='text' class='fld-medium' name='5510b7133cf80' id='5510b7133cf80' value=''><label class='sub-label'>eg. johndoe@mail.com</label></span> </div>   </div><div style='clear:both'><!-- --></div></div></li><li id='li-5510b7133d02a' rel='Tag12' validation='required'  ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>Phone Number</span><span class='fld-required'>*</span></div><div id='1-box' class='actual-phone'><input type='text' name='5510b7133d02a' id='5510b7133d02a' class='parameter-field number-only' value=''></div><div style='clear:both'><!-- --></div></div></li><li id='li-f5510b78f753da' rel='Tag5' validation='required'  ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>What Credit Issues Do You Have?</span><span class='fld-required'>*</span></div><table border='0' cellpadding='0'  cellspacing='0' width='400px' class='all-radio'><td width='32%'><input rel='0' class='radio_amnt_field' name='f5510b78f753da' id='f5510b78f753da-1' type='radio' value='Defaults (Including Court Actions)' > <span><label for='f5510b78f753da-1'>Defaults (Including Court Actions)</label></span></td><td width='32%'><input rel='0' class='radio_amnt_field' name='f5510b78f753da' id='f5510b78f753da-2' type='radio' value='Enquiries' > <span><label for='f5510b78f753da-2'>Enquiries</label></span></td><td width='32%'><input rel='0' class='radio_amnt_field' name='f5510b78f753da' id='f5510b78f753da-3' type='radio' value='Both' > <span><label for='f5510b78f753da-3'>Both</label></span></td></tr><tr></table><div style='clear:both'><!-- --></div></div></li><li id='li-f5510b7cfb1cf4' rel='Tag4' validation='required'  ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>Number of Defaults</span><span class='fld-required'>*</span></div><select name='f5510b7cfb1cf4' id='f5510b7cfb1cf4' class='dropdown_amnt_field fld-medium'><option rel='0' value='No Defaults'>No Defaults</option><option rel='0' value='1-3 Defaults' selected>1-3 Defaults</option><option rel='0' value='4-6 Defaults'>4-6 Defaults</option><option rel='0' value='7-10 Defaults'>7-10 Defaults</option><option rel='0' value='10+ Defaults'>10+ Defaults</option></select><div style='clear:both'><!-- --></div></div></li><li id='li-f5510b83ace54b' rel='Tag4' validation='required'  ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>Number of Inquiries in Last 12 months</span><span class='fld-required'>*</span></div><select name='f5510b83ace54b' id='f5510b83ace54b' class='dropdown_amnt_field fld-medium'><option rel='0' value='No problem inquiries'>No problem inquiries</option><option rel='0' value='1-6 inquiries' selected>1-6 inquiries</option><option rel='0' value='7-12 inquiries'>7-12 inquiries</option><option rel='0' value='13-20 inquiries'>13-20 inquiries</option><option rel='0' value='21+ inquiries'>21+ inquiries</option></select><div style='clear:both'><!-- --></div></div></li><li id='li-5510b7133d056' rel='Tag2'   ><div class='single-field'><div class='actual-fields-label'><span class='actual_label'>Is there any further information you can give us that will assist you?</span><span class='fld-required' style='display:none'>*</span></div><textarea name='5510b7133d056' id='5510b7133d056' cols='40' rows='5' maxlength='' class='actual_default' style='resize:none'></textarea><div style='clear:both'><!-- --></div></div></li><script type='text/javascript'>$(document).ready(function() {$('#form2pay_reset').live('click', function() {$('#total_paymnets').html(0);var pre_determined_amount = $('#pre_determined_amount').html();$('.amount_field_values').html(0);$('.checkbox_amount_field_values').parents().find('.tr_checkbox_amount_field_values').hide();$('#total_paymnets').html(pre_determined_amount);var show_running_total_height = $('#show_running_total').height();var show_running_total_height = eval(show_running_total_height+40);$('#show_running_total_height').css('padding-bottom', show_running_total_height);});}); </script><li><div class='actual-fields-label'><span class='actual_label'>Security Code</span><span class='fld-required'>*</span></div><img width='75' height='24' src='http://www.form2pay.com/publish/get_captcha/1' class='fltlft captcha-img'>   <input type='text' class='fltlft' style='width:71px;' autocomplete='off' name='captcha-text'><p class='clear'>&nbsp;</p></li><div class='form-main-error' style='display:none;'>Please fill out all the required fields!</div><li style='position:static'><div class='formBtnContainerPreview fltlft'><span class='dont-move'><button type='submit' id='form2pay_submit' style='float:none;' class='form2pay_button  submitBtn'>Submit</button></span></div><p class='clear'>&nbsp;</p></li></ul><div class='footer-compulsory'><a style='text-decoration: none !important;' title='Powered by Form2pay' href='http://www.form2pay.com/' name='form2pay_link_in_footer' style='color:#000000 !important;' id='form2pay_compulsory'>Powered by Form2pay</a>   </div></form></div></div></body></html>");