var strParams = '';

if (window.mortgage_type) {
  strParams += '&mortgage_type='+ mortgage_type;
}

if (window.mortgage_size) {
  strParams += '&mortgage_size='+ mortgage_size;
}

if (window.property_value) {
  strParams += '&property_value='+ property_value;
}

if (window.fp) {
  strParams += '&fp='+ fp;
}

if (window.ftb) {
  strParams += '&ftb='+ ftb;
}

if (window.country) {
  strParams += '&country='+ country;
}

if (window.bad_credit) {
  strParams += '&bad_credit=' + bad_credit;
}

document.write("<iframe ID='I1' name='I1' scrolling='no' src='http://www.mortgagesorter.co.uk/app/forms/mortgage_form_3steps.php?referrer=" + referrer  + strParams + "' align='top' height='450' width='450' hspace='0' vspace='0' style='position:relative;left:0px;top:0px;' frameborder=0></iframe>");
//document.write("<iframe ID='I1' name='I1' scrolling='no' src='http://localhost/mortgagesorter/app/mortgage_form_new.php?referrer=" + referrer  + "' align='top' height='630' width='650' hspace='0' vspace='0' style='position:relative;left:0px;top:0px;' frameborder=0></iframe>");
//document.write("<iframe ID='ifrmFormAll' name='ifrmFormAll' scrolling='no' style='display:none' src='' align='top' height='1450' width='650' hspace='0' vspace='0' style='position:relative;left:0px;top:0px;' frameborder=0></iframe>");
