function quote(affil_id,theme_id,keyword,type,zipcode)
{
	var url;
	url = 'http://www.leadinsurances.com/go.php?affid='+ affil_id+ '&type='+ type+ '&t='+ theme_id +'&k='+ keyword +'&zipcode='+ zipcode;
		if (/^\d{5}$/.test(zipcode))
		{
			url += '&zip='+ zipcode;
		}
	document.location.href = url;
	return false;
}


function show_frm(aff_id,theme_id,campaign_id,type,keyword,version)
{
document.write("<div style=\"background-image:url(http://member.leadinsurances.com/img/"+type+"/bg_"+type+version+".png); background-repeat:no-repeat; width:250px; height:209px; position:relative;\"><form name=\"quoteform\" id=\"quoteform\" method=\"post\" action=\"\"><table cellpadding=\"0\" cellspacing=\"0\" style=\"position:absolute; top:75px; left:18px; font-family:Arial, Helvetica, sans-serif;\"><tr><td><input type=\"text\" name=\"zipcode\" id=\"frm_zipcode\" maxlength=\"5\" style=\"font-size:13px; width:210px; height:26px; margin-right:4px; margin-left:4px; margin-bottom:4px; border:1px solid #9bbcd8; padding:4px;text-align:center;\" onKeyPress=\"return submitenter('"+aff_id+"','"+theme_id+"','"+campaign_id+"',document.getElementById('frm_type').value,document.getElementById('frm_zipcode').value,event)\" onclick=\"this.value='';\" onblur=\"if(this.value=='') this.value='ENTER YOUR ZIP CODE';\" value=\"ENTER YOUR ZIP CODE\" /></td></tr><tr><td><select name=\"type\" id=\"frm_type\" style=\"font-size:16px; height:26px; width:210px; border:1px solid #9bbcd8; padding:2px; margin-left:4px; padding-left:26px;\" onKeyPress=\"return submitenter('"+aff_id+"','"+theme_id+"','"+campaign_id+"',document.getElementById('frm_type').value,document.getElementById('frm_zipcode').value,event)\"><option value=\"\""); if (type=="") document.write(" selected=\"selected\""); document.write(">Select Quote Type</option><option value=\"auto\""); if (type=="auto") document.write(" selected=\"selected\""); document.write(">Auto Insurance</option><option value=\"home\""); if (type=="home") document.write(" selected=\"selected\""); document.write(">Home Insurance</option><option value=\"health\""); if (type=="health") document.write(" selected=\"selected\""); document.write(">Health Insurance</option><option value=\"life\""); if (type=="life") document.write(" selected=\"selected\""); document.write(">Life Insurance</option><option value=\"condo\""); if (type=="condo") document.write(" selected=\"selected\""); document.write(">Condo Insurance</option><option value=\"renters\""); if (type=="renters") document.write(" selected=\"selected\""); document.write("> Renters Insurance</option><option value=\"annuity\""); if (type=="annuity") document.write(" selected=\"selected\""); document.write("> Annuity</option></select></td></tr><tr><td colspan=\"2\" style=\"padding-top:12px;\"><a href=\"javascript:void(0);\" onclick=\"quote('"+aff_id+"','"+theme_id+"','"+keyword+"',document.getElementById('frm_type').value,document.getElementById('frm_zipcode').value)\"><img src=\"http://member.leadinsurances.com/img/"+type+"/bt_"+type+version+".png\" alt=\"Get a Free Quotes Today\" border=\"0\" /></a></td></tr></table></form></div>");
}

