var param_came_from = window.location + "";

    function affp_producer(mine,url)
    {
		var affp = '';
		re = /[&?]affp=([^&]+)/i;
		matches = re.exec(url);
		if (matches) affp = matches[1];

		var ssaid = '';
		re = /[&?]SSAID=([^&]+)/i;
		matches = re.exec(url);
		if (matches) ssaid = matches[1];
		if (ssaid && affp=='') affp = 'sas';

	    if(affp == 'sas') return 'lDWT7s';
if(affp == 'cxc') return 'Ushi4p';
if(affp == 'autosas') return 'EvF18R';
if(affp == 'studentsas') return 'mOvb1b';


	    if(affp != '') return affp;

    	return mine;
    }
var base_url = "https://www.leadpile.com/";
var doc_root = '/san0/metadata/web/leadpile/www/leadpile/scripts01/';
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "";
},
searchString: function (data) {
for (var i=0;i<data.length;i++)	{
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString) {
if (dataString.indexOf(data[i].subString) != -1)
return data[i].identity;
}
else if (dataProp)
return data[i].identity;
}
},
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == -1) return;
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
},
dataBrowser: [
{
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
}
]
};
BrowserDetect.init();/*  Prototype JavaScript framework, version 1.5.0_rc0
*  (c) 2005 Sam Stephenson <sam@conio.net>
*
*  Prototype is freely distributable under the terms of an MIT-style license.
*  For details, see the Prototype web site: http://prototype.conio.net/
*
/*--------------------------------------------------------------------------*/
var Prototype = {
Version: '1.5.0_rc0',
ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',
emptyFunction: function() {},
K: function(x) {return x}
}
var Class = {
create: function() {
return function() {
this.initialize.apply(this, arguments);
}
}
}
var Abstract = new Object();
Object.extend = function(destination, source) {
for (var property in source) {
destination[property] = source[property];
}
return destination;
}
Object.inspect = function(object) {
try {
if (object == undefined) return 'undefined';
if (object == null) return 'null';
return object.inspect ? object.inspect() : object.toString();
} catch (e) {
if (e instanceof RangeError) return '...';
throw e;
}
}
Function.prototype.bind = function() {
var __method = this, args = $A(arguments), object = args.shift();
return function() {
return __method.apply(object, args.concat($A(arguments)));
}
}
Function.prototype.bindAsEventListener = function(object) {
var __method = this;
return function(event) {
return __method.call(object, event || window.event);
}
}
Object.extend(Number.prototype, {
toColorPart: function() {
var digits = this.toString(16);
if (this < 16) return '0' + digits;
return digits;
},
succ: function() {
return this + 1;
},
times: function(iterator) {
$R(0, this, true).each(iterator);
return this;
}
});
var Try = {
these: function() {
var returnValue;
for (var i = 0; i < arguments.length; i++) {
var lambda = arguments[i];
try {
returnValue = lambda();
break;
} catch (e) {}
}
return returnValue;
}
}
/*--------------------------------------------------------------------------*/
var PeriodicalExecuter = Class.create();
PeriodicalExecuter.prototype = {
initialize: function(callback, frequency) {
this.callback = callback;
this.frequency = frequency;
this.currentlyExecuting = false;
this.registerCallback();
},
registerCallback: function() {
setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);
},
onTimerEvent: function() {
if (!this.currentlyExecuting) {
try {
this.currentlyExecuting = true;
this.callback();
} finally {
this.currentlyExecuting = false;
}
}
}
}
Object.extend(String.prototype, {
gsub: function(pattern, replacement) {
var result = '', source = this, match;
replacement = arguments.callee.prepareReplacement(replacement);
while (source.length > 0) {
if (match = source.match(pattern)) {
result += source.slice(0, match.index);
result += (replacement(match) || '').toString();
source  = source.slice(match.index + match[0].length);
} else {
result += source, source = '';
}
}
return result;
},
sub: function(pattern, replacement, count) {
replacement = this.gsub.prepareReplacement(replacement);
count = count === undefined ? 1 : count;
return this.gsub(pattern, function(match) {
if (--count < 0) return match[0];
return replacement(match);
});
},
scan: function(pattern, iterator) {
this.gsub(pattern, iterator);
return this;
},
truncate: function(length, truncation) {
length = length || 30;
truncation = truncation === undefined ? '...' : truncation;
return this.length > length ?
this.slice(0, length - truncation.length) + truncation : this;
},
strip: function() {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
},
stripTags: function() {
return this.replace(/<\/?[^>]+>/gi, '');
},
stripScripts: function() {
return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');
},
extractScripts: function() {
var matchAll = new RegExp(Prototype.ScriptFragment, 'img');
var matchOne = new RegExp(Prototype.ScriptFragment, 'im');
return (this.match(matchAll) || []).map(function(scriptTag) {
return (scriptTag.match(matchOne) || ['', ''])[1];
});
},
evalScripts: function() {
return this.extractScripts().map(function(script) { return eval(script) });
},
escapeHTML: function() {
var div = document.createElement('div');
var text = document.createTextNode(this);
div.appendChild(text);
return div.innerHTML;
},
unescapeHTML: function() {
var div = document.createElement('div');
div.innerHTML = this.stripTags();
return div.childNodes[0] ? div.childNodes[0].nodeValue : '';
},
toQueryParams: function() {
var pairs = this.match(/^\??(.*)$/)[1].split('&');
return pairs.inject({}, function(params, pairString) {
var pair = pairString.split('=');
params[pair[0]] = pair[1];
return params;
});
},
toArray: function() {
return this.split('');
},
camelize: function() {
var oStringList = this.split('-');
if (oStringList.length == 1) return oStringList[0];
var camelizedString = this.indexOf('-') == 0
? oStringList[0].charAt(0).toUpperCase() + oStringList[0].substring(1)
: oStringList[0];
for (var i = 1, len = oStringList.length; i < len; i++) {
var s = oStringList[i];
camelizedString += s.charAt(0).toUpperCase() + s.substring(1);
}
return camelizedString;
},
inspect: function() {
return "'" + this.replace(/\\/g, '\\\\').replace(/'/g, '\\\'') + "'";
}
});
String.prototype.gsub.prepareReplacement = function(replacement) {
if (typeof replacement == 'function') return replacement;
var template = new Template(replacement);
return function(match) { return template.evaluate(match) };
}
String.prototype.parseQuery = String.prototype.toQueryParams;
var Template = Class.create();
Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/;
Template.prototype = {
initialize: function(template, pattern) {
this.template = template.toString();
this.pattern  = pattern || Template.Pattern;
},
evaluate: function(object) {
return this.template.gsub(this.pattern, function(match) {
var before = match[1];
if (before == '\\') return match[2];
return before + (object[match[3]] || '').toString();
});
}
}
var $break    = new Object();
var $continue = new Object();
var Enumerable = {
each: function(iterator) {
var index = 0;
try {
this._each(function(value) {
try {
iterator(value, index++);
} catch (e) {
if (e != $continue) throw e;
}
});
} catch (e) {
if (e != $break) throw e;
}
},
all: function(iterator) {
var result = true;
this.each(function(value, index) {
result = result && !!(iterator || Prototype.K)(value, index);
if (!result) throw $break;
});
return result;
},
any: function(iterator) {
var result = true;
this.each(function(value, index) {
if (result = !!(iterator || Prototype.K)(value, index))
throw $break;
});
return result;
},
collect: function(iterator) {
var results = [];
this.each(function(value, index) {
results.push(iterator(value, index));
});
return results;
},
detect: function (iterator) {
var result;
this.each(function(value, index) {
if (iterator(value, index)) {
result = value;
throw $break;
}
});
return result;
},
findAll: function(iterator) {
var results = [];
this.each(function(value, index) {
if (iterator(value, index))
results.push(value);
});
return results;
},
grep: function(pattern, iterator) {
var results = [];
this.each(function(value, index) {
var stringValue = value.toString();
if (stringValue.match(pattern))
results.push((iterator || Prototype.K)(value, index));
})
return results;
},
include: function(object) {
var found = false;
this.each(function(value) {
if (value == object) {
found = true;
throw $break;
}
});
return found;
},
inject: function(memo, iterator) {
this.each(function(value, index) {
memo = iterator(memo, value, index);
});
return memo;
},
invoke: function(method) {
var args = $A(arguments).slice(1);
return this.collect(function(value) {
return value[method].apply(value, args);
});
},
max: function(iterator) {
var result;
this.each(function(value, index) {
value = (iterator || Prototype.K)(value, index);
if (result == undefined || value >= result)
result = value;
});
return result;
},
min: function(iterator) {
var result;
this.each(function(value, index) {
value = (iterator || Prototype.K)(value, index);
if (result == undefined || value < result)
result = value;
});
return result;
},
partition: function(iterator) {
var trues = [], falses = [];
this.each(function(value, index) {
((iterator || Prototype.K)(value, index) ?
trues : falses).push(value);
});
return [trues, falses];
},
pluck: function(property) {
var results = [];
this.each(function(value, index) {
results.push(value[property]);
});
return results;
},
reject: function(iterator) {
var results = [];
this.each(function(value, index) {
if (!iterator(value, index))
results.push(value);
});
return results;
},
sortBy: function(iterator) {
return this.collect(function(value, index) {
return {value: value, criteria: iterator(value, index)};
}).sort(function(left, right) {
var a = left.criteria, b = right.criteria;
return a < b ? -1 : a > b ? 1 : 0;
}).pluck('value');
},
toArray: function() {
return this.collect(Prototype.K);
},
zip: function() {
var iterator = Prototype.K, args = $A(arguments);
if (typeof args.last() == 'function')
iterator = args.pop();
var collections = [this].concat(args).map($A);
return this.map(function(value, index) {
return iterator(collections.pluck(index));
});
},
inspect: function() {
return '#<Enumerable:' + this.toArray().inspect() + '>';
}
}
Object.extend(Enumerable, {
map:     Enumerable.collect,
find:    Enumerable.detect,
select:  Enumerable.findAll,
member:  Enumerable.include,
entries: Enumerable.toArray
});
var $A = Array.from = function(iterable) {
if (!iterable) return [];
if (iterable.toArray) {
return iterable.toArray();
} else {
var results = [];
for (var i = 0; i < iterable.length; i++)
results.push(iterable[i]);
return results;
}
}
Object.extend(Array.prototype, Enumerable);
if (!Array.prototype._reverse)
Array.prototype._reverse = Array.prototype.reverse;
Object.extend(Array.prototype, {
_each: function(iterator) {
for (var i = 0; i < this.length; i++)
iterator(this[i]);
},
clear: function() {
this.length = 0;
return this;
},
first: function() {
return this[0];
},
last: function() {
return this[this.length - 1];
},
compact: function() {
return this.select(function(value) {
return value != undefined || value != null;
});
},
flatten: function() {
return this.inject([], function(array, value) {
return array.concat(value && value.constructor == Array ?
value.flatten() : [value]);
});
},
without: function() {
var values = $A(arguments);
return this.select(function(value) {
return !values.include(value);
});
},
indexOf: function(object) {
for (var i = 0; i < this.length; i++)
if (this[i] == object) return i;
return -1;
},
reverse: function(inline) {
return (inline !== false ? this : this.toArray())._reverse();
},
inspect: function() {
return '[' + this.map(Object.inspect).join(', ') + ']';
}
});
var Hash = {
_each: function(iterator) {
for (var key in this) {
var value = this[key];
if (typeof value == 'function') continue;
var pair = [key, value];
pair.key = key;
pair.value = value;
iterator(pair);
}
},
keys: function() {
return this.pluck('key');
},
values: function() {
return this.pluck('value');
},
merge: function(hash) {
return $H(hash).inject($H(this), function(mergedHash, pair) {
mergedHash[pair.key] = pair.value;
return mergedHash;
});
},
toQueryString: function() {
return this.map(function(pair) {
return pair.map(encodeURIComponent).join('=');
}).join('&');
},
inspect: function() {
return '#<Hash:{' + this.map(function(pair) {
return pair.map(Object.inspect).join(': ');
}).join(', ') + '}>';
}
}
function $H(object) {
var hash = Object.extend({}, object || {});
Object.extend(hash, Enumerable);
Object.extend(hash, Hash);
return hash;
}
ObjectRange = Class.create();
Object.extend(ObjectRange.prototype, Enumerable);
Object.extend(ObjectRange.prototype, {
initialize: function(start, end, exclusive) {
this.start = start;
this.end = end;
this.exclusive = exclusive;
},
_each: function(iterator) {
var value = this.start;
do {
iterator(value);
value = value.succ();
} while (this.include(value));
},
include: function(value) {
if (value < this.start)
return false;
if (this.exclusive)
return value < this.end;
return value <= this.end;
}
});
var $R = function(start, end, exclusive) {
return new ObjectRange(start, end, exclusive);
}
var Ajax = {
getTransport: function() {
return Try.these(
function() {return new XMLHttpRequest()},
function() {return new ActiveXObject('Msxml2.XMLHTTP')},
function() {return new ActiveXObject('Microsoft.XMLHTTP')}
) || false;
},
activeRequestCount: 0
}
Ajax.Responders = {
responders: [],
_each: function(iterator) {
this.responders._each(iterator);
},
register: function(responderToAdd) {
if (!this.include(responderToAdd))
this.responders.push(responderToAdd);
},
unregister: function(responderToRemove) {
this.responders = this.responders.without(responderToRemove);
},
dispatch: function(callback, request, transport, json) {
this.each(function(responder) {
if (responder[callback] && typeof responder[callback] == 'function') {
try {
responder[callback].apply(responder, [request, transport, json]);
} catch (e) {}
}
});
}
};
Object.extend(Ajax.Responders, Enumerable);
Ajax.Responders.register({
onCreate: function() {
Ajax.activeRequestCount++;
},
onComplete: function() {
Ajax.activeRequestCount--;
}
});
Ajax.Base = function() {};
Ajax.Base.prototype = {
setOptions: function(options) {
this.options = {
method:       'post',
asynchronous: true,
contentType:  'application/x-www-form-urlencoded',
parameters:   ''
}
Object.extend(this.options, options || {});
},
responseIsSuccess: function() {
return this.transport.status == undefined
|| this.transport.status == 0
|| (this.transport.status >= 200 && this.transport.status < 300);
},
responseIsFailure: function() {
return !this.responseIsSuccess();
}
}
Ajax.Request = Class.create();
Ajax.Request.Events =
['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];
Ajax.Request.prototype = Object.extend(new Ajax.Base(), {
initialize: function(url, options) {
this.transport = Ajax.getTransport();
this.setOptions(options);
this.request(url);
},
request: function(url) {
var parameters = this.options.parameters || '';
if (parameters.length > 0) parameters += '&_=';
try {
this.url = url;
if (this.options.method == 'get' && parameters.length > 0)
this.url += (this.url.match(/\?/) ? '&' : '?') + parameters;
Ajax.Responders.dispatch('onCreate', this, this.transport);
this.transport.open(this.options.method, this.url,
this.options.asynchronous);
if (this.options.asynchronous) {
this.transport.onreadystatechange = this.onStateChange.bind(this);
setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
}
this.setRequestHeaders();
var body = this.options.postBody ? this.options.postBody : parameters;
this.transport.send(this.options.method == 'post' ? body : null);
} catch (e) {
this.dispatchException(e);
}
},
setRequestHeaders: function() {
var requestHeaders =
['X-Requested-With', 'XMLHttpRequest',
'X-Prototype-Version', Prototype.Version,
'Accept', 'text/javascript, text/html, application/xml, text/xml, */*'];
if (this.options.method == 'post') {
requestHeaders.push('Content-type', this.options.contentType);
/* Force "Connection: close" for Mozilla browsers to work around
* a bug where XMLHttpReqeuest sends an incorrect Content-length
* header. See Mozilla Bugzilla #246651.
*/
if (this.transport.overrideMimeType)
requestHeaders.push('Connection', 'close');
}
if (this.options.requestHeaders)
requestHeaders.push.apply(requestHeaders, this.options.requestHeaders);
for (var i = 0; i < requestHeaders.length; i += 2)
this.transport.setRequestHeader(requestHeaders[i], requestHeaders[i+1]);
},
onStateChange: function() {
var readyState = this.transport.readyState;
if (readyState != 1)
this.respondToReadyState(this.transport.readyState);
},
header: function(name) {
try {
return this.transport.getResponseHeader(name);
} catch (e) {}
},
evalJSON: function() {
try {
return eval('(' + this.header('X-JSON') + ')');
} catch (e) {}
},
evalResponse: function() {
try {
return eval(this.transport.responseText);
} catch (e) {
this.dispatchException(e);
}
},
respondToReadyState: function(readyState) {
var event = Ajax.Request.Events[readyState];
var transport = this.transport, json = this.evalJSON();
if (event == 'Complete') {
try {
(this.options['on' + this.transport.status]
|| this.options['on' + (this.responseIsSuccess() ? 'Success' : 'Failure')]
|| Prototype.emptyFunction)(transport, json);
} catch (e) {
this.dispatchException(e);
}
if ((this.header('Content-type') || '').match(/^text\/javascript/i))
this.evalResponse();
}
try {
(this.options['on' + event] || Prototype.emptyFunction)(transport, json);
Ajax.Responders.dispatch('on' + event, this, transport, json);
} catch (e) {
this.dispatchException(e);
}
/* Avoid memory leak in MSIE: clean up the oncomplete event handler */
if (event == 'Complete')
this.transport.onreadystatechange = Prototype.emptyFunction;
},
dispatchException: function(exception) {
(this.options.onException || Prototype.emptyFunction)(this, exception);
Ajax.Responders.dispatch('onException', this, exception);
}
});
Ajax.Updater = Class.create();
Object.extend(Object.extend(Ajax.Updater.prototype, Ajax.Request.prototype), {
initialize: function(container, url, options) {
this.containers = {
success: container.success ? $(container.success) : $(container),
failure: container.failure ? $(container.failure) :
(container.success ? null : $(container))
}
this.transport = Ajax.getTransport();
this.setOptions(options);
var onComplete = this.options.onComplete || Prototype.emptyFunction;
this.options.onComplete = (function(transport, object) {
this.updateContent();
onComplete(transport, object);
}).bind(this);
this.request(url);
},
updateContent: function() {
var receiver = this.responseIsSuccess() ?
this.containers.success : this.containers.failure;
var response = this.transport.responseText;
if (!this.options.evalScripts)
response = response.stripScripts();
if (receiver) {
if (this.options.insertion) {
new this.options.insertion(receiver, response);
} else {
Element.update(receiver, response);
}
}
if (this.responseIsSuccess()) {
if (this.onComplete)
setTimeout(this.onComplete.bind(this), 10);
}
}
});
Ajax.PeriodicalUpdater = Class.create();
Ajax.PeriodicalUpdater.prototype = Object.extend(new Ajax.Base(), {
initialize: function(container, url, options) {
this.setOptions(options);
this.onComplete = this.options.onComplete;
this.frequency = (this.options.frequency || 2);
this.decay = (this.options.decay || 1);
this.updater = {};
this.container = container;
this.url = url;
this.start();
},
start: function() {
this.options.onComplete = this.updateComplete.bind(this);
this.onTimerEvent();
},
stop: function() {
this.updater.onComplete = undefined;
clearTimeout(this.timer);
(this.onComplete || Prototype.emptyFunction).apply(this, arguments);
},
updateComplete: function(request) {
if (this.options.decay) {
this.decay = (request.responseText == this.lastText ?
this.decay * this.options.decay : 1);
this.lastText = request.responseText;
}
this.timer = setTimeout(this.onTimerEvent.bind(this),
this.decay * this.frequency * 1000);
},
onTimerEvent: function() {
this.updater = new Ajax.Updater(this.container, this.url, this.options);
}
});
function $() {
var results = [], element;
for (var i = 0; i < arguments.length; i++) {
element = arguments[i];
if (typeof element == 'string')
element = document.getElementById(element);
results.push(Element.extend(element));
}
return results.length < 2 ? results[0] : results;
}
document.getElementsByClassName = function(className, parentElement) {
var children = ($(parentElement) || document.body).getElementsByTagName('*');
return $A(children).inject([], function(elements, child) {
if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))
elements.push(Element.extend(child));
return elements;
});
}
/*--------------------------------------------------------------------------*/
if (!window.Element)
var Element = new Object();
Element.extend = function(element) {
if (!element) return;
if (_nativeExtensions) return element;
if (!element._extended && element.tagName && element != window) {
var methods = Element.Methods, cache = Element.extend.cache;
for (property in methods) {
var value = methods[property];
if (typeof value == 'function')
element[property] = cache.findOrStore(value);
}
}
element._extended = true;
return element;
}
Element.extend.cache = {
findOrStore: function(value) {
return this[value] = this[value] || function() {
return value.apply(null, [this].concat($A(arguments)));
}
}
}
Element.Methods = {
visible: function(element) {
return $(element).style.display != 'none';
},
toggle: function() {
for (var i = 0; i < arguments.length; i++) {
var element = $(arguments[i]);
Element[Element.visible(element) ? 'hide' : 'show'](element);
}
},
hide: function() {
for (var i = 0; i < arguments.length; i++) {
var element = $(arguments[i]);
element.style.display = 'none';
}
},
show: function() {
for (var i = 0; i < arguments.length; i++) {
var element = $(arguments[i]);
element.style.display = '';
}
},
remove: function(element) {
element = $(element);
element.parentNode.removeChild(element);
},
update: function(element, html) {
$(element).innerHTML = html.stripScripts();
setTimeout(function() {html.evalScripts()}, 10);
},
replace: function(element, html) {
element = $(element);
if (element.outerHTML) {
element.outerHTML = html.stripScripts();
} else {
var range = element.ownerDocument.createRange();
range.selectNodeContents(element);
element.parentNode.replaceChild(
range.createContextualFragment(html.stripScripts()), element);
}
setTimeout(function() {html.evalScripts()}, 10);
},
getHeight: function(element) {
element = $(element);
return element.offsetHeight;
},
classNames: function(element) {
return new Element.ClassNames(element);
},
hasClassName: function(element, className) {
if (!(element = $(element))) return;
return Element.classNames(element).include(className);
},
addClassName: function(element, className) {
if (!(element = $(element))) return;
return Element.classNames(element).add(className);
},
removeClassName: function(element, className) {
if (!(element = $(element))) return;
return Element.classNames(element).remove(className);
},
cleanWhitespace: function(element) {
element = $(element);
for (var i = 0; i < element.childNodes.length; i++) {
var node = element.childNodes[i];
if (node.nodeType == 3 && !/\S/.test(node.nodeValue))
Element.remove(node);
}
},
empty: function(element) {
return $(element).innerHTML.match(/^\s*$/);
},
childOf: function(element, ancestor) {
element = $(element), ancestor = $(ancestor);
while (element = element.parentNode)
if (element == ancestor) return true;
return false;
},
scrollTo: function(element) {
element = $(element);
var x = element.x ? element.x : element.offsetLeft,
y = element.y ? element.y : element.offsetTop;
window.scrollTo(x, y);
},
getStyle: function(element, style) {
element = $(element);
var value = element.style[style.camelize()];
if (!value) {
if (document.defaultView && document.defaultView.getComputedStyle) {
var css = document.defaultView.getComputedStyle(element, null);
value = css ? css.getPropertyValue(style) : null;
} else if (element.currentStyle) {
value = element.currentStyle[style.camelize()];
}
}
if (window.opera && ['left', 'top', 'right', 'bottom'].include(style))
if (Element.getStyle(element, 'position') == 'static') value = 'auto';
return value == 'auto' ? null : value;
},
setStyle: function(element, style) {
element = $(element);
for (var name in style)
element.style[name.camelize()] = style[name];
}
}
Object.extend(Element, Element.Methods);
var _nativeExtensions = false;
if(!HTMLElement && /Konqueror|Safari|KHTML/.test(navigator.userAgent)) {
var HTMLElement = {}
HTMLElement.prototype = document.createElement('div').__proto__;
}
Element.addMethods = function(methods) {
Object.extend(Element.Methods, methods || {});
if(typeof HTMLElement != 'undefined') {
var methods = Element.Methods, cache = Element.extend.cache;
for (property in methods) {
var value = methods[property];
if (typeof value == 'function')
HTMLElement.prototype[property] = cache.findOrStore(value);
}
_nativeExtensions = true;
}
}
Element.addMethods();
var Toggle = new Object();
Toggle.display = Element.toggle;
/*--------------------------------------------------------------------------*/
Abstract.Insertion = function(adjacency) {
this.adjacency = adjacency;
}
Abstract.Insertion.prototype = {
initialize: function(element, content) {
this.element = $(element);
this.content = content.stripScripts();
if (this.adjacency && this.element.insertAdjacentHTML) {
try {
this.element.insertAdjacentHTML(this.adjacency, this.content);
} catch (e) {
var tagName = this.element.tagName.toLowerCase();
if (tagName == 'tbody' || tagName == 'tr') {
this.insertContent(this.contentFromAnonymousTable());
} else {
throw e;
}
}
} else {
this.range = this.element.ownerDocument.createRange();
if (this.initializeRange) this.initializeRange();
this.insertContent([this.range.createContextualFragment(this.content)]);
}
setTimeout(function() {content.evalScripts()}, 10);
},
contentFromAnonymousTable: function() {
var div = document.createElement('div');
div.innerHTML = '<table><tbody>' + this.content + '</tbody></table>';
return $A(div.childNodes[0].childNodes[0].childNodes);
}
}
var Insertion = new Object();
Insertion.Before = Class.create();
Insertion.Before.prototype = Object.extend(new Abstract.Insertion('beforeBegin'), {
initializeRange: function() {
this.range.setStartBefore(this.element);
},
insertContent: function(fragments) {
fragments.each((function(fragment) {
this.element.parentNode.insertBefore(fragment, this.element);
}).bind(this));
}
});
Insertion.Top = Class.create();
Insertion.Top.prototype = Object.extend(new Abstract.Insertion('afterBegin'), {
initializeRange: function() {
this.range.selectNodeContents(this.element);
this.range.collapse(true);
},
insertContent: function(fragments) {
fragments.reverse(false).each((function(fragment) {
this.element.insertBefore(fragment, this.element.firstChild);
}).bind(this));
}
});
Insertion.Bottom = Class.create();
Insertion.Bottom.prototype = Object.extend(new Abstract.Insertion('beforeEnd'), {
initializeRange: function() {
this.range.selectNodeContents(this.element);
this.range.collapse(this.element);
},
insertContent: function(fragments) {
fragments.each((function(fragment) {
this.element.appendChild(fragment);
}).bind(this));
}
});
Insertion.After = Class.create();
Insertion.After.prototype = Object.extend(new Abstract.Insertion('afterEnd'), {
initializeRange: function() {
this.range.setStartAfter(this.element);
},
insertContent: function(fragments) {
fragments.each((function(fragment) {
this.element.parentNode.insertBefore(fragment,
this.element.nextSibling);
}).bind(this));
}
});
/*--------------------------------------------------------------------------*/
Element.ClassNames = Class.create();
Element.ClassNames.prototype = {
initialize: function(element) {
this.element = $(element);
},
_each: function(iterator) {
this.element.className.split(/\s+/).select(function(name) {
return name.length > 0;
})._each(iterator);
},
set: function(className) {
this.element.className = className;
},
add: function(classNameToAdd) {
if (this.include(classNameToAdd)) return;
this.set(this.toArray().concat(classNameToAdd).join(' '));
},
remove: function(classNameToRemove) {
if (!this.include(classNameToRemove)) return;
this.set(this.select(function(className) {
return className != classNameToRemove;
}).join(' '));
},
toString: function() {
return this.toArray().join(' ');
}
}
Object.extend(Element.ClassNames.prototype, Enumerable);
function $$() {
return $A(arguments).map(function(expression) {
return expression.strip().split(/\s+/).inject([null], function(results, expr) {
var selector = new Selector(expr);
return results.map(selector.findElements.bind(selector)).flatten();
});
}).flatten();
}
var Field = {
clear: function() {
for (var i = 0; i < arguments.length; i++)
$(arguments[i]).value = '';
},
focus: function(element) {
$(element).focus();
},
present: function() {
for (var i = 0; i < arguments.length; i++)
if ($(arguments[i]).value == '') return false;
return true;
},
select: function(element) {
$(element).select();
},
activate: function(element) {
element = $(element);
element.focus();
if (element.select)
element.select();
}
}
/*--------------------------------------------------------------------------*/
var Form = {
serialize: function(form) {
var elements = Form.getElements($(form));
var queryComponents = new Array();
for (var i = 0; i < elements.length; i++) {
var queryComponent = Form.Element.serialize(elements[i]);
if (queryComponent)
queryComponents.push(queryComponent);
}
return queryComponents.join('&');
},
getElements: function(form) {
form = $(form);
var elements = new Array();
for (var tagName in Form.Element.Serializers) {
var tagElements = form.getElementsByTagName(tagName);
for (var j = 0; j < tagElements.length; j++)
elements.push(tagElements[j]);
}
return elements;
},
getInputs: function(form, typeName, name) {
form = $(form);
var inputs = form.getElementsByTagName('input');
if (!typeName && !name)
return inputs;
var matchingInputs = new Array();
for (var i = 0; i < inputs.length; i++) {
var input = inputs[i];
if ((typeName && input.type != typeName) ||
(name && input.name != name))
continue;
matchingInputs.push(input);
}
return matchingInputs;
},
disable: function(form) {
var elements = Form.getElements(form);
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
element.blur();
element.disabled = 'true';
}
},
enable: function(form) {
var elements = Form.getElements(form);
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
element.disabled = '';
}
},
findFirstElement: function(form) {
return Form.getElements(form).find(function(element) {
return element.type != 'hidden' && !element.disabled &&
['input', 'select', 'textarea'].include(element.tagName.toLowerCase());
});
},
focusFirstElement: function(form) {
Field.activate(Form.findFirstElement(form));
},
reset: function(form) {
$(form).reset();
}
}
Form.Element = {
serialize: function(element) {
element = $(element);
var method = element.tagName.toLowerCase();
var parameter = Form.Element.Serializers[method](element);
if (parameter) {
var key = encodeURIComponent(parameter[0]);
if (key.length == 0) return;
if (parameter[1].constructor != Array)
parameter[1] = [parameter[1]];
return parameter[1].map(function(value) {
return key + '=' + encodeURIComponent(value);
}).join('&');
}
},
getValue: function(element) {
element = $(element);
var method = element.tagName.toLowerCase();
var parameter = Form.Element.Serializers[method](element);
if (parameter)
return parameter[1];
}
}
Form.Element.Serializers = {
input: function(element) {
switch (element.type.toLowerCase()) {
case 'submit':
case 'hidden':
case 'password':
case 'text':
return Form.Element.Serializers.textarea(element);
case 'checkbox':
case 'radio':
return Form.Element.Serializers.inputSelector(element);
}
return false;
},
inputSelector: function(element) {
if (element.checked)
return [element.name, element.value];
},
textarea: function(element) {
return [element.name, element.value];
},
select: function(element) {
return Form.Element.Serializers[element.type == 'select-one' ?
'selectOne' : 'selectMany'](element);
},
selectOne: function(element) {
var value = '', opt, index = element.selectedIndex;
if (index >= 0) {
opt = element.options[index];
value = opt.value || opt.text;
}
return [element.name, value];
},
selectMany: function(element) {
var value = [];
for (var i = 0; i < element.length; i++) {
var opt = element.options[i];
if (opt.selected)
value.push(opt.value || opt.text);
}
return [element.name, value];
}
}
/*--------------------------------------------------------------------------*/
var $F = Form.Element.getValue;
/*--------------------------------------------------------------------------*/
Abstract.TimedObserver = function() {}
Abstract.TimedObserver.prototype = {
initialize: function(element, frequency, callback) {
this.frequency = frequency;
this.element   = $(element);
this.callback  = callback;
this.lastValue = this.getValue();
this.registerCallback();
},
registerCallback: function() {
setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);
},
onTimerEvent: function() {
var value = this.getValue();
if (this.lastValue != value) {
this.callback(this.element, value);
this.lastValue = value;
}
}
}
Form.Element.Observer = Class.create();
Form.Element.Observer.prototype = Object.extend(new Abstract.TimedObserver(), {
getValue: function() {
return Form.Element.getValue(this.element);
}
});
Form.Observer = Class.create();
Form.Observer.prototype = Object.extend(new Abstract.TimedObserver(), {
getValue: function() {
return Form.serialize(this.element);
}
});
/*--------------------------------------------------------------------------*/
Abstract.EventObserver = function() {}
Abstract.EventObserver.prototype = {
initialize: function(element, callback) {
this.element  = $(element);
this.callback = callback;
this.lastValue = this.getValue();
if (this.element.tagName.toLowerCase() == 'form')
this.registerFormCallbacks();
else
this.registerCallback(this.element);
},
onElementEvent: function() {
var value = this.getValue();
if (this.lastValue != value) {
this.callback(this.element, value);
this.lastValue = value;
}
},
registerFormCallbacks: function() {
var elements = Form.getElements(this.element);
for (var i = 0; i < elements.length; i++)
this.registerCallback(elements[i]);
},
registerCallback: function(element) {
if (element.type) {
switch (element.type.toLowerCase()) {
case 'checkbox':
case 'radio':
Event.observe(element, 'click', this.onElementEvent.bind(this));
break;
case 'password':
case 'text':
case 'textarea':
case 'select-one':
case 'select-multiple':
Event.observe(element, 'change', this.onElementEvent.bind(this));
break;
}
}
}
}
Form.Element.EventObserver = Class.create();
Form.Element.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), {
getValue: function() {
return Form.Element.getValue(this.element);
}
});
Form.EventObserver = Class.create();
Form.EventObserver.prototype = Object.extend(new Abstract.EventObserver(), {
getValue: function() {
return Form.serialize(this.element);
}
});
if (!window.Event) {
var Event = new Object();
}
Object.extend(Event, {
KEY_BACKSPACE: 8,
KEY_TAB:       9,
KEY_RETURN:   13,
KEY_ESC:      27,
KEY_LEFT:     37,
KEY_UP:       38,
KEY_RIGHT:    39,
KEY_DOWN:     40,
KEY_DELETE:   46,
element: function(event) {
return event.target || event.srcElement;
},
isLeftClick: function(event) {
return (((event.which) && (event.which == 1)) ||
((event.button) && (event.button == 1)));
},
pointerX: function(event) {
return event.pageX || (event.clientX +
(document.documentElement.scrollLeft || document.body.scrollLeft));
},
pointerY: function(event) {
return event.pageY || (event.clientY +
(document.documentElement.scrollTop || document.body.scrollTop));
},
stop: function(event) {
if (event.preventDefault) {
event.preventDefault();
event.stopPropagation();
} else {
event.returnValue = false;
event.cancelBubble = true;
}
},
findElement: function(event, tagName) {
var element = Event.element(event);
while (element.parentNode && (!element.tagName ||
(element.tagName.toUpperCase() != tagName.toUpperCase())))
element = element.parentNode;
return element;
},
observers: false,
_observeAndCache: function(element, name, observer, useCapture) {
if (!this.observers) this.observers = [];
if (element.addEventListener) {
this.observers.push([element, name, observer, useCapture]);
element.addEventListener(name, observer, useCapture);
} else if (element.attachEvent) {
this.observers.push([element, name, observer, useCapture]);
element.attachEvent('on' + name, observer);
}
},
unloadCache: function() {
if (!Event.observers) return;
for (var i = 0; i < Event.observers.length; i++) {
Event.stopObserving.apply(this, Event.observers[i]);
Event.observers[i][0] = null;
}
Event.observers = false;
},
observe: function(element, name, observer, useCapture) {
var element = $(element);
useCapture = useCapture || false;
if (name == 'keypress' &&
(navigator.appVersion.match(/Konqueror|Safari|KHTML/)
|| element.attachEvent))
name = 'keydown';
this._observeAndCache(element, name, observer, useCapture);
},
stopObserving: function(element, name, observer, useCapture) {
var element = $(element);
useCapture = useCapture || false;
if (name == 'keypress' &&
(navigator.appVersion.match(/Konqueror|Safari|KHTML/)
|| element.detachEvent))
name = 'keydown';
if (element.removeEventListener) {
element.removeEventListener(name, observer, useCapture);
} else if (element.detachEvent) {
element.detachEvent('on' + name, observer);
}
}
});
/* prevent memory leaks in IE */
if (navigator.appVersion.match(/\bMSIE\b/))
Event.observe(window, 'unload', Event.unloadCache, false);
var Position = {
includeScrollOffsets: false,
prepare: function() {
this.deltaX =  window.pageXOffset
|| document.documentElement.scrollLeft
|| document.body.scrollLeft
|| 0;
this.deltaY =  window.pageYOffset
|| document.documentElement.scrollTop
|| document.body.scrollTop
|| 0;
},
realOffset: function(element) {
var valueT = 0, valueL = 0;
do {
valueT += element.scrollTop  || 0;
valueL += element.scrollLeft || 0;
element = element.parentNode;
} while (element);
return [valueL, valueT];
},
cumulativeOffset: function(element) {
var valueT = 0, valueL = 0;
do {
valueT += element.offsetTop  || 0;
valueL += element.offsetLeft || 0;
element = element.offsetParent;
} while (element);
return [valueL, valueT];
},
positionedOffset: function(element) {
var valueT = 0, valueL = 0;
do {
valueT += element.offsetTop  || 0;
valueL += element.offsetLeft || 0;
element = element.offsetParent;
if (element) {
p = Element.getStyle(element, 'position');
if (p == 'relative' || p == 'absolute') break;
}
} while (element);
return [valueL, valueT];
},
offsetParent: function(element) {
if (element.offsetParent) return element.offsetParent;
if (element == document.body) return element;
while ((element = element.parentNode) && element != document.body)
if (Element.getStyle(element, 'position') != 'static')
return element;
return document.body;
},
within: function(element, x, y) {
if (this.includeScrollOffsets)
return this.withinIncludingScrolloffsets(element, x, y);
this.xcomp = x;
this.ycomp = y;
this.offset = this.cumulativeOffset(element);
return (y >= this.offset[1] &&
y <  this.offset[1] + element.offsetHeight &&
x >= this.offset[0] &&
x <  this.offset[0] + element.offsetWidth);
},
withinIncludingScrolloffsets: function(element, x, y) {
var offsetcache = this.realOffset(element);
this.xcomp = x + offsetcache[0] - this.deltaX;
this.ycomp = y + offsetcache[1] - this.deltaY;
this.offset = this.cumulativeOffset(element);
return (this.ycomp >= this.offset[1] &&
this.ycomp <  this.offset[1] + element.offsetHeight &&
this.xcomp >= this.offset[0] &&
this.xcomp <  this.offset[0] + element.offsetWidth);
},
overlap: function(mode, element) {
if (!mode) return 0;
if (mode == 'vertical')
return ((this.offset[1] + element.offsetHeight) - this.ycomp) /
element.offsetHeight;
if (mode == 'horizontal')
return ((this.offset[0] + element.offsetWidth) - this.xcomp) /
element.offsetWidth;
},
clone: function(source, target) {
source = $(source);
target = $(target);
target.style.position = 'absolute';
var offsets = this.cumulativeOffset(source);
target.style.top    = offsets[1] + 'px';
target.style.left   = offsets[0] + 'px';
target.style.width  = source.offsetWidth + 'px';
target.style.height = source.offsetHeight + 'px';
},
page: function(forElement) {
var valueT = 0, valueL = 0;
var element = forElement;
do {
valueT += element.offsetTop  || 0;
valueL += element.offsetLeft || 0;
if (element.offsetParent==document.body)
if (Element.getStyle(element,'position')=='absolute') break;
} while (element = element.offsetParent);
element = forElement;
do {
valueT -= element.scrollTop  || 0;
valueL -= element.scrollLeft || 0;
} while (element = element.parentNode);
return [valueL, valueT];
},
clone: function(source, target) {
var options = Object.extend({
setLeft:    true,
setTop:     true,
setWidth:   true,
setHeight:  true,
offsetTop:  0,
offsetLeft: 0
}, arguments[2] || {})
source = $(source);
var p = Position.page(source);
target = $(target);
var delta = [0, 0];
var parent = null;
if (Element.getStyle(target,'position') == 'absolute') {
parent = Position.offsetParent(target);
delta = Position.page(parent);
}
if (parent == document.body) {
delta[0] -= document.body.offsetLeft;
delta[1] -= document.body.offsetTop;
}
if(options.setLeft)   target.style.left  = (p[0] - delta[0] + options.offsetLeft) + 'px';
if(options.setTop)    target.style.top   = (p[1] - delta[1] + options.offsetTop) + 'px';
if(options.setWidth)  target.style.width = source.offsetWidth + 'px';
if(options.setHeight) target.style.height = source.offsetHeight + 'px';
},
absolutize: function(element) {
element = $(element);
if (element.style.position == 'absolute') return;
Position.prepare();
var offsets = Position.positionedOffset(element);
var top     = offsets[1];
var left    = offsets[0];
var width   = element.clientWidth;
var height  = element.clientHeight;
element._originalLeft   = left - parseFloat(element.style.left  || 0);
element._originalTop    = top  - parseFloat(element.style.top || 0);
element._originalWidth  = element.style.width;
element._originalHeight = element.style.height;
element.style.position = 'absolute';
element.style.top    = top + 'px';;
element.style.left   = left + 'px';;
element.style.width  = width + 'px';;
element.style.height = height + 'px';;
},
relativize: function(element) {
element = $(element);
if (element.style.position == 'relative') return;
Position.prepare();
element.style.position = 'relative';
var top  = parseFloat(element.style.top  || 0) - (element._originalTop || 0);
var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);
element.style.top    = top + 'px';
element.style.left   = left + 'px';
element.style.height = element._originalHeight;
element.style.width  = element._originalWidth;
}
}
if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) {
Position.cumulativeOffset = function(element) {
var valueT = 0, valueL = 0;
do {
valueT += element.offsetTop  || 0;
valueL += element.offsetLeft || 0;
if (element.offsetParent == document.body)
if (Element.getStyle(element, 'position') == 'absolute') break;
element = element.offsetParent;
} while (element);
return [valueL, valueT];
}
}
Object.extend(Event, {
_domReady : function() {
if (arguments.callee.done) return;
arguments.callee.done = true;
if (this._timer)  clearInterval(this._timer);
this._readyCallbacks.each(function(f) { f() });
this._readyCallbacks = null;
},
onDOMReady : function(f) {
if (!this._readyCallbacks) {
var domReady = this._domReady.bind(this);
if (document.addEventListener)
document.addEventListener("DOMContentLoaded", domReady, false);
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
document.getElementById("__ie_onload").onreadystatechange = function() {
if (this.readyState == "complete") domReady();
};
/*@end @*/
if (/WebKit/i.test(navigator.userAgent)) {
this._timer = setInterval(function() {
if (/loaded|complete/.test(document.readyState)) domReady();
}, 10);
}
Event.observe(window, 'load', domReady);
Event._readyCallbacks =  [];
}
Event._readyCallbacks.push(f);
}
});
var SelectorLiteAddon=Class.create();SelectorLiteAddon.prototype={initialize:function(stack){this.r=[];this.s=[];this.i=0;for(var i=stack.length-1;i>=0;i--){var s=["*","",[]];var t=stack[i];var cursor=t.length-1;do{var d=t.lastIndexOf("#");var p=t.lastIndexOf(".");cursor=Math.max(d,p);if(cursor==-1){s[0]=t.toUpperCase();}else if(d==-1||p==cursor){s[2].push(t.substring(p+1));}else if(!s[1]){s[1]=t.substring(d+1);}
t=t.substring(0,cursor);}while(cursor>0);this.s[i]=s;}
},get:function(root){this.explore(root||document,this.i==(this.s.length-1));return this.r;},explore:function(elt,leaf){var s=this.s[this.i];var r=[];if(s[1]){e=$(s[1]);if(e&&(s[0]=="*"||e.tagName==s[0])&&e.childOf(elt)){r=[e];}
}else{r=$A(elt.getElementsByTagName(s[0]));}
if(s[2].length==1){r=r.findAll(function(o){if(o.className.indexOf(" ")==-1){return o.className==s[2][0];}else{return o.className.split(/\s+/).include(s[2][0]);}
});}else if(s[2].length>0){r=r.findAll(function(o){if(o.className.indexOf(" ")==-1){return false;}else{var q=o.className.split(/\s+/);return s[2].all(function(c){return q.include(c);});}
});}
if(leaf){this.r=this.r.concat(r);}else{++this.i;r.each(function(o){this.explore(o,this.i==(this.s.length-1));}.bind(this));}
}
}
var $$old=$$;var $$=function(a,b){if(b||a.indexOf("[")>=0)return $$old.apply(this,arguments);return new SelectorLiteAddon(a.split(/\s+/)).get();}
String.prototype.trim =      function() {
return (this.replace(/^[\s\xA0]+/, "").replace(/[\s\xA0]+$/, ""));
}
function getCookie(name){
cname = name + "=";
dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}
function checkNumber(val) {
var strPass = val.value;
var strLength = strPass.length;
var lchar = val.value.charAt((strLength) - 1);
var cCode = CalcKeyCode(lchar);
/* Check if the keyed in character is a number
do you want alphabetic UPPERCASE only ?
or lower case only just check their respective
codes and replace the 48 and 57 */
if (cCode < 48 || cCode > 57 ) {
var myNumber = val.value.substring(0, (strLength) - 1);
val.value = myNumber;
}
return false;
}
function CalcKeyCode(aChar) 
{
var character = aChar.substring(0,1);
var code = aChar.charCodeAt(0);
return code;
}
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
function filter(field, regex) {
if (! field.value) return true;
re = new RegExp(regex);
if (re.test(field.value)) return true;
alert("Invalid entry!");
field.value = "";
field.focus();
field.select();
return false;
}
function checkABA(field) {
var value = $F(field);
if (value == '') return true;
if (value.length != 9) {
field.value = '';
return false;
}
n = 0;
for (i = 0; i < value.length; i += 3) {
n += parseInt(value.substr(i + 0, 1)) * 3;
n += parseInt(value.substr(i + 1, 1)) * 7;
n += parseInt(value.substr(i + 2, 1)) * 1;
}
if (n == 0 || n % 10) {
field.value = '';
return false;
}
return true;
}
function checkZipCode(zip, state) {
if ($w('ab bc mb nb nl nt ns nu on pe qc sk yt').include(state)) {
if (zip.match(/^[0-9a-z]{6}$/i)) return true;
alert('The postal code you entered is not valid. Please don\'t enter any spaces or dashes.');
return false;
}
if (zip.match(/^[0-9]{5}$/i)) return true;
alert('The zip code you entered is not valid. Please enter only the 5-digit zip code.');
return false;
}
function checkIncome(income, payday) {
limit = 99999;
if (payday == 'primary') { limit = 9999; }
if (income > limit) {
alert('Please enter your monthly income, not your annual income');
return false;
}
return true;
}
function checkEmployed(unused,employed) {
if (employed) { return true; }
alert('You must be employed for at least 1 month.');
return false;
}
function numJoin(field) {
target = field.name.substr(1);
value = '';
for (i = 0; i < field.form.elements.length; i++) {
elem = field.form.elements[i];
if (elem.name == 'x' + target) value = '' + value + '' + elem.value;
if (elem.name == 'm' + target) value =	1 * value +  1 * elem.value;
if (elem.name == 'y' + target) value =	1 * value + 12 * elem.value;
}
elem = field.form.elements[target];
if (elem) { elem.value = value; }
}
function numSplit(field) {
start = 0;
elems = Form.getElements(field.form);
for (i = 0; i < elems.length; i++) {
elem = elems[i];
if (elem.name == 'x' + field.name) {
elem.value = field.value.substr(start, elem.size);
start = start*1 + elem.size*1;
} else if (elem.name == 'm' + field.name) {
elem.value = field.value % 12;
} else if (elem.name == 'y' + field.name) {
elem.value = Math.floor(field.value / 12);
}
}
}
document.write("<div id=\"calendar\" style=\"z-index: 100000; position: absolute; display: none; width: 200px; background-color: white;\"></div>");
document.write("<style> td.cal { border-top: 1px solid black; border-left: 1px solid black; font-size: xx-small; } table.cal { border-right: 1px solid black; border-bottom: 1px solid black; } </style>\n");
var dateField = new Object();
var months = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
var days = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
var year = month = day = 0;
function zeroPad(num, pad) {
tgt = "" + num;
while (tgt.length < pad) {
tgt = "0" + tgt;
}
return tgt;
}
function findPosX(obj) {
var curleft = 0;
if (obj.offsetParent) {
while (obj.offsetParent) {
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
} else if (obj.x)
curleft += obj.x;
return curleft;
}
function findPosY(obj) {
curtop = 0;
if (obj.offsetParent) {
while (obj.offsetParent) {
curtop += obj.offsetTop
obj = obj.offsetParent;
}
} else if (obj.y)
curtop += obj.y;
return curtop;
}
function calOpen(field, fmt,field_2,pp)
{
dateField = field;
dateField2 = null;
if(field_2 != null)
{
dateField2 = $(field.id.replace(field.name,field_2));
date_pp = field.id.replace(field.name,pp);
date_pp = $(date_pp.replace("_d","_h"));
}
if(typeof(dateField2) == "undefined" || typeof(date_pp) == "undefined") 
dateField2 = null;
theCal = document.getElementById('calendar');
theCal.style.top = findPosY(dateField) + 20;
theCal.style.left = findPosX(dateField);
theCal.style.display = 'block';
year = month = day = 0;
calInit(fmt);
}
function calHoliday(value)
{
var date 	= value.split("/");
if(date == value)
date 	= value.split("-");
var month 	= parseInt(date[0], 10);
var day 	= parseInt(date[1], 10);
var year 	= parseInt(date[2], 10);
switch(month)
{
case 1: if(day == 1 || day == 16) return true;	break;
case 2:	if(day == 20) return true;	break;
case 3:	break;
case 4:	break;
case 5:	break;
case 6:	break;
case 7:	if(day == 4) return true;	break;
case 8:	break;
case 9:	break;
case 10: break;
case 11: if(day == 11 || day == 23) return true; break;
case 12: if(day == 25) return true; break;
}
return false;
}
function calInit(fmt) {
if (!year && !month && !day) {
if (dateField.value) {
value 	= dateField.value;
date 	= value.split("/");
if(date == value)
date 	= value.split("-");
var day_pos = 0;
var mon_pos = 0;
var yer_pos = 0;
var pos = fmt.split("-");
for(var j=0;j<3;j++)
{
if(pos[j]=='dd')
day_pos = j;
if(pos[j]=='mm')
mon_pos = j;
if(pos[j]=='yyyy')
yer_pos = j;
}
month 	= parseInt(date[mon_pos], 10) - 1;
day 	= parseInt(date[day_pos], 10);
year 	= parseInt(date[yer_pos], 10);
}
if (isNaN(day) || isNaN(month) || isNaN(year) || day == 0) {
  today = new Date();
dt 	= new Date(today.getFullYear(), today.getMonth(), today.getDate()+1);
day 	= dt.getDate();
month	= dt.getMonth();
year 	= dt.getFullYear();
}
} else {
if (month > 11) {
month = 0;
year++;
} else if (month < 0) {
month = 11;
year--;
}
}
this_dt 	= new Date();
this_day 	= this_dt.getDate();
this_month	= this_dt.getMonth();
this_year 	= this_dt.getFullYear();
var displayMonths = [new Date(year, month, 1), new Date(year, month+1, 1)];
str = "";
for (m=0; m < displayMonths.length; m++) {
str += "<table class=cal cellspacing=0 width=100%>";
str += "<tr><td class=cal align=center width=50%>";
str += " <a name='' style='cursor:pointer;'  onClick=\"javascript:month--; calInit('" + fmt + "');\">&laquo;</a> ";
str += months[displayMonths[m].getMonth()];
str += " <a name='' style='cursor:pointer;'  onClick=\"javascript:month++; calInit('" + fmt + "');\">&raquo;</a> ";
str += "</td><td class=cal align=center width=50%>\n";
str += " <a name='' style='cursor:pointer;'  onClick=\"javascript:year--; calInit('" + fmt + "');\">&laquo;</a> ";
str += displayMonths[m].getFullYear();
str += " <a name='' style='cursor:pointer;'  onClick=\"javascript:year++; calInit('" + fmt + "');\">&raquo;</a> ";
str += "</td></tr>";
str += "</table>";
str += "<table class=cal cellspacing=0 width=100% style=\"border-top: 0px;\">";
str += "<tr>";
for (var i = 0; i < 7; i++) {
str += "<td class=cal align=center width=14%>" + days[i] + "</th>";
}
str += "</tr>";
firstDay = displayMonths[m].getDay();
lastDay = new Date(displayMonths[m].getFullYear(), displayMonths[m].getMonth() + 1, 0).getDate();
weekDay = 0;
str += "<tr>";
for (i = 0; i < firstDay; i++) {
str += "<td class=cal style=\"background-color: LightSlateGray;\">&nbsp;</td>";
weekDay++;
}
for (i = 1; i <= lastDay; i++) {
if (weekDay == 7) {
str += "</tr><tr>";
weekDay = 0;
}
if (i == displayMonths[m].getDate() && displayMonths[m].getMonth() == this_month && displayMonths[m].getFullYear() == this_year) {
str += "<td class=cal style=\"background-color: silver;\">";
} else {
str += "<td class=cal>";
}
val = fmt.replace(/yyyy/i, zeroPad(displayMonths[m].getFullYear(), 4));
val = val.replace(/mm/i, zeroPad(displayMonths[m].getMonth() + 1, 2));
val = val.replace(/dd/i, zeroPad(i, 2));
if(weekDay != 0 && weekDay != 6 && !calHoliday(val) && (i + displayMonths[m].getMonth() * 100 + displayMonths[m].getFullYear() * 10000 >= this_day + 1 + this_month * 100 + this_year * 10000))
str += "<a name='' style='cursor:pointer;'  onClick=\"javascript:calReturn('" + val + "');\"><font color='#0000FF'><u>" + i + "</font></u></a>";
else
str += "" + i + "";
str += "</td>";
weekDay++;
}
for (i = weekDay; i < 7; i++) {
str += "<td class=cal style=\"background-color: LightSlateGray;\">&nbsp;</td>";
}
str += "</tr></table>";
val = fmt.replace(/yyyy/i, '0000').replace(/mm/i, '00').replace(/dd/i, '00');
}
str += "<table class=cal cellspacing=0 width=100%>";
str += "<tr><td class=cal align=center width=50%>";
str += " <a name='' style='cursor:pointer;'  onClick=\"javascript:calReturn('');\">Close</a> ";
str += "</td></tr>";
str += "</table>";
document.getElementById('calendar').innerHTML = str;
}
function calReturn(val) 
{
if (val) 
{ 
dateField.value = val; 
if(dateField.onchange) dateField.onchange();
if(dateField2) 
calcPayDate2(dateField2,dateField.value,date_pp.value); 
}
document.getElementById('calendar').style.display = 'none';
}
var do_autotab_onload = false;
var autotab = {
uid: null, i: 0, elems: [],
next_element: function() { return this.elems[this.i]; }
}
function autoTab(event) {
elem = Event.element(event);
if (!elem || elem.size < 1) { return; }
if (!filter(elem, '^([0-9]*|dd|mm|yyyy)$')) { return false; }
if (autotab.uid != elem.id) {
autotab.uid   = elem.id;
autotab.i     = autotab.elems.indexOf(elem) + 1;
while ((autotab.elems[autotab.i].type == 'hidden') ||
       (autotab.elems[autotab.i].type == 'button')) { autotab.i++; }
}
if (![9,16].include(event.keyCode) && elem.value.length >= elem.size) {
Field.activate(autotab.next_element());
elem.value = elem.value.substr(0, elem.size);
}
numJoin(elem);
}
function $w(string) {
string = string.strip();
return $A(string ? string.split(/\s+/) : []);
}
function popUp(URL, w,h)
{
day = new Date();
id = day.getTime();
eval("producer_window = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + w + ",height=" + h + ",left = 340,top = 362');");
}var FormChanges = Class.create();
FormChanges.prototype = {
initialize: function(form) {
this.form   = form;
this.fields = $H({});
eval(
""
+ "function bind_checkLTV() "
+ "{ "
+ " if(typeof($(" + form.form_index + "  + '_additional_cash_d')) == 'undefined') "
+ "   return; "
+ " loan_amount = $(" + form.form_index + " + '_loan_amount_d'); "
+ " property_value = $(" + form.form_index + " + '_property_value_d'); "
+ " second_mortgage = $(" + form.form_index + "  + '_second_mortgage_d'); "
+ " mortgage_balance = $(" + form.form_index + "  + '_mortgage_balance_d'); "
+ " additional_cash = $(" + form.form_index + "  + '_additional_cash_d');"
+ " pv = parseInt($F(property_value)); "
+ " sm = parseInt($F(second_mortgage)); "
+ " mb = parseInt($F(mortgage_balance)); "
+ " loan_amount.value = sm+mb; "
+ " ac = parseInt($F(additional_cash));"
+ " if (pv == 0) "
+ " { "
+ "   alert('You must specify the estimated value of your property.'); "
+ "   property_value.value = ''; "
+ " } "
+ " else "
+ "   if (ac && !mb) "
+ "   { "
+ "     alert('You must specify the balance of your mortgage.'); "
+ "     additional_cash.value = ''; "
+ "   } "
+ "   else "
+ "     if (mb && !ac) "
+ "     { "
+ "       req = pv - loan_amount.value; "
+ "       if(!additional_cash.value || additional_cash.value == 0) "
+ "         additional_cash.value = req > 0 ? req : 0;"
+ "     }"
+ "     else"
+ "     { "
+ "       if(!pv || loan_amount.value == 'NaN') return; ltv = loan_amount.value / pv; "
+ "       $(" + form.form_index + "  + '_loan_to_value_h').value = ltv*100; "
+ "       if (ltv > 1) "
+ "       { "
+ "         alert('You cannot request more money than the value of your home. Please lower the additional cash you would like to receive.'); "
+ "         additional_cash.value = ''; "
+ "       } "
+ "       else "
+ "         if (ltv > .80) "
+ "         { "
+ "           property_value.value = Math.floor(pv * 1.1);"
+ "         }"
+ "       }"
+ "     }"
+ "");
eval("function bind_checkEmploy() { if($("+form.form_index + " + '_months_employed_d').value == 0) alert('You must be employed at least 1 month.');}");
['tax_type','tax_filed','tax_debt_amount','property_listed_with_realtor','time_to_sell','business_turned_down','business_loan_amount','credit_card_volume','time_in_business','buying_business','divorce_uncontested','uk_accept_privacy_policy','graduated','pay_period','pay_period_uk','requested_loan_amount','best_time_to_call','direct_deposit','active_military','degree_area','degree_type','degree_school','has_bank_account'].each(function(name) { this.fields[name] = this.proceed; }.bind(this));
['property_value','mortgage_balance','additional_cash','second_mortgage'].each(function(name) { this.fields[name] = bind_checkLTV; }.bind(this));
['mmonths_employed','ymonths_employed'].each(function(name) { this.fields[name] = bind_checkEmploy; }.bind(this));
this.fields['accept_credit_cards'] = function(elem, form)
{
if($F(elem) == "no")
{
$(form.form_index + '_credit_card_volume_h').value = '0';
form.eraseFields(form.form_index,field_to_id['credit_card_volume']);
}
else
if(typeof $(form.form_index + '_credit_card_volume_d') == "undefined")
this.form.addAfter(this.form.form_index,field_to_id['credit_card_volume'], this.form.form_index + '_accept_credit_cards_h');
return form.nextStep();
}.bind(this);
this.fields['housing'] = function(elem, form)
{
if(elem.value != '')
{
if($F(elem) == "own")
form.eraseFields(form.form_index,field_to_id['home_purchase_bonus']);
if($F(elem) == "rent")
{
form.eraseFields(form.form_index,field_to_id['homeowner_bonus']);
form.eraseFields(form.form_index,field_to_id['loan_modification_bonus']);
}
return form.nextStep();
}
}.bind(this);
this.fields['working_in_us'] = function(elem,form)
{
if(elem.value != '')
return form.nextStep();
}.bind(this);
this.fields['monthly_income'] = function(elem,form)
{
if(!filter(elem, '^[0-9.]+$')) {elem.value=""; return;}
if(generated_types[form.form_type] != "Payday") return form.nextStep();
else if(elem.value >= 700) return form.nextStep();
alert("You must be making at least $700 per month to qualify.");
}.bind(this);
this.fields['state_selection'] = function(elem,form)
{
return form.nextStep();
}.bind(this);
this.fields['unsecured_debt'] = function(elem,form)
{
return form.nextStep();
}.bind(this);
this.fields['creditor_checkbox'] = function(elem,form)
{
if(elem.checked == true)
if($(form.form_index + '_creditors_d').value == "")
$(form.form_index + '_creditors_d').value = 'Will provide later';
}.bind(this);
this.fields['has_bank_account'] = function(elem,form)
{  
if (($F(elem) == 'no'))
{ 	    
    if (confirm('You have indicated that you\ndo NOT have a bank account.\n\nClick Ok if your selection is accurate.'))
    {
    no_checking = 1;
    home_phone = $F("1_producer_h") + '&first_name=' + $F("1_first_name_h") + '&last_name=' + $F("1_last_name_h") + '&address=' + $F("1_address_h") + '&city=' + $F("1_city_h") + '&state=' + $F("1_state_selection_h").toUpperCase() + '&postal_code=' + $F("1_postal_code_h") + '&home_phone=' + $F("1_home_phone_h") + '&Email=' + $F("1_email_h");
    
    	window.open("http://affiliate.acntracker.com/rd/r.php?affid=620710&sid=16&c1=" + $F('1_producer_h') + "&first_name=" + $F('1_first_name_h') + "&last_name=" + $F('1_last_name_h') + "&address=" + $F('1_address_h') + "&city=" + $F('1_city_h') + "&state=" + $F('1_state_selection_h').toUpperCase() + "&postal_code=" + $F('1_postal_code_h') + "&home_phone=" + $F('1_home_phone_h') + "&Email=" + $F('1_email_h'));         	      
    	document.getElementById("no_bank").innerHTML = "<br>Setup a <a href='#' onClick=window.open('http://affiliate.acntracker.com/rd/r.php?affid=620710&sid=16&c1=" + $F('1_producer_h') + "&first_name=" + $F('1_first_name_h') + "&last_name=" + $F('1_last_name_h') + "&address=" + $F('1_address_h') + "&city=" + $F('1_city_h') + "&state=" + $F('1_state_selection_h').toUpperCase() + "&postal_code=" + $F('1_postal_code_h') + "&home_phone=" + $F('1_home_phone_h') + "&Email=" + $F('1_email_h') + "')>New Bank Account</a><br>Everyone Approved: <a href='#' onClick=window.open('http://affiliate.acntracker.com/rd/r.php?affid=620710&sid=16&c1=" + $F('1_producer_h') + "&first_name=" + $F('1_first_name_h') + "&last_name=" + $F('1_last_name_h') + "&address=" + $F('1_address_h') + "&city=" + $F('1_city_h') + "&state=" + $F('1_state_selection_h').toUpperCase() + "&postal_code=" + $F('1_postal_code_h') + "&home_phone=" + $F('1_home_phone_h') + "&Email=" + $F('1_email_h') + "')>click here</a>";
}
else
{ elem.value = 'null'; }
var s = 0;
var e = 0;
var orig_fields = fields_per_type[this.form.form_type].replace(/\+/g,",").split(",");
for(var j = 0; j < orig_fields.length; j++)
if(id_to_field[orig_fields[j]] == "has_bank_account")
s = j+1;
else
if(id_to_field[orig_fields[j]] == "title_bonus")
e = j;
var coreg_fields = "";
for(var sec in secondary_types)
if(secondary_types[sec] == 'yes')
coreg_fields += "," + fields_per_type[sec].replace(/\+/g,",");
coreg_fields = coreg_fields.split(",");
var to_erase = new Array();
var reg = new RegExp("_bonus","i");
var x=0;
for(var j = s; j< e;j++)
{
var found = 0;
for(var l=0;l<coreg_fields.length;l++)
if(orig_fields[j] == coreg_fields[l])
found=1;
if(found == 0)
if(!reg.exec(id_to_field[orig_fields[j]]))
to_erase[x++] = orig_fields[j];
else
{
var bonus = id_to_field[orig_fields[j]].replace("_bonus","");
bonus = bonus.replace("_"," ");
if(typeof(inv_generated_types[bonus]) != "undefined")
{
var bonus_type = inv_generated_types[bonus];
var new_fields = fields_per_type[bonus_type].replace(/\+/g,",").split(",");
var bad = field_to_id['bank_name'];
for(var k = 0; k<new_fields.length;k++)
if(new_fields[k] == bad)
{
k = new_fields.length;
to_erase[x++] = orig_fields[j];
}
}
}
}
form.eraseFields(form.form_index,to_erase);
}
else
{
return form.nextStep();
  }
}.bind(this);
this.fields['income_type'] = function(elem, form)
{
if(generated_types[form.form_type] == "Payday UK")
fields = field_to_id['occupation'] + "+" + field_to_id['employer'] + "+" + field_to_id['company_department'] + "+"  + field_to_id['supervisor_name'] + "+" + field_to_id['supervisor_phone_uk'] + "+" + field_to_id['work_phone_uk'] + "+" + field_to_id['months_employed'];
else
fields = field_to_id['occupation'] + "+" + field_to_id['employer'] + "+" + field_to_id['supervisor_name'] + "+" + field_to_id['supervisor_phone'] + "+" + field_to_id['work_phone'] + "+" + field_to_id['months_employed'];
if ($F(elem) == 'employment') form.addAfter(form.form_index,fields, form.form_index + '_income_type_h');
else form.eraseFields(form.form_index,fields);
return form.nextStep();
}.bind(this);
this.fields['credit_check'] = function(elem, form)
{
if(elem.value != '')
{
if (($F(elem) == 'yes'))
$(form.form_index + '_credit_check_h').value = 'yes';
else
{
$(form.form_index + '_credit_check_h').value = 'no';
var bonus = $(form.form_index + '_auto_financing_bonus_h');
if (bonus) bonus.value = '';
}
return form.nextStep();
}
}.bind(this);
this.fields['sms_agree'] = function(elem, form)
{
if(elem.value != '')
{
if (($F(elem) != 'yes'))
{
$(form.form_index + '_sms_phone_part1').value = '000';
$(form.form_index + '_sms_phone_part2').value = '000';
$(form.form_index + '_sms_phone_part3').value = '0000';
$(form.form_index + '_sms_provider_d').selectedIndex = $(form.form_index + '_sms_provider_d').length-1;
}
}
}.bind(this);
this.fields['routing_number'] = function(elem, form)
{
if(!checkABA(elem))
{
alert("The Bank Routing Number you have entered appears to be incorrect.\n\nYou may find the 9 digits Bank Routing Number\nat the bottom of your checks,\nto the LEFT of your bank account number.\n\nPlease try again.\n\nCANADIAN accounts: please type in 123123123 to continue.");
Field.activate(elem);
}
}.bind(this);
this.fields['eclub_premier_agree'] = function(elem, form)
{
if($F(elem) == "no")
{
alert("Please agree to the terms and conditions below:");
}
else
return form.nextStep();
}.bind(this);
this.fields['homeowner_bonus'] = function(elem,form)
{
if(elem.value != '')
{
this.add_bonus_fields("Homeowner",elem);
return form.nextStep();
}
}.bind(this);
this.fields['credit_repair_bonus'] = function(elem,form) { this.add_bonus_fields("credit repair",elem); }.bind(this);
this.fields['car_insurance_bonus'] = function(elem,form) { this.add_bonus_fields("car insurance",elem); }.bind(this);
this.fields['life_insurance_bonus'] = function(elem,form) { this.add_bonus_fields("life insurance",elem); }.bind(this);
this.fields['student_loan_consolidation_bonus'] = function(elem,form) { this.add_bonus_fields("student loans consolidation",elem); }.bind(this);
this.fields['home_based_business_bonus'] = function(elem,form) { this.add_bonus_fields("home based business",elem); }.bind(this);
this.fields['health_insurance_bonus'] = function(elem,form) { this.add_bonus_fields("health insurance",elem); }.bind(this);
this.fields['home_improvement_bonus'] = function(elem,form) { this.add_bonus_fields("home improvement",elem); }.bind(this);
this.fields['home_security_system_bonus'] = function(elem,form) { this.add_bonus_fields("security systems",elem); }.bind(this);
this.fields['car_warranty_bonus'] = function(elem,form) { this.add_bonus_fields("car warranty",elem); }.bind(this);
this.fields['equipment_leasing_bonus'] = function(elem,form) { this.add_bonus_fields("equipment leasing",elem); }.bind(this);
this.fields['security_systems_bonus'] = function(elem,form) { this.add_bonus_fields("security systems",elem); }.bind(this);
this.fields['business_opportunities_bonus'] = function(elem,form) { this.add_bonus_fields("business opportunities",elem); }.bind(this);
this.fields['credit_card_processing_bonus'] = function(elem,form) { this.add_bonus_fields("credit card processing",elem); }.bind(this);
this.fields['internet_marketing_services_bonus'] = function(elem,form) { this.add_bonus_fields("internet marketing services",elem); }.bind(this);
this.fields['it_consultant_bonus'] = function(elem,form) { this.add_bonus_fields("it consultant",elem); }.bind(this);
this.fields['outsourcing_bonus'] = function(elem,form) { this.add_bonus_fields("outsourcing",elem); }.bind(this);
this.fields['voip_bonus'] = function(elem,form) { this.add_bonus_fields("voip",elem); }.bind(this);
this.fields['web_developers_bonus'] = function(elem,form) { this.add_bonus_fields("web developers",elem); }.bind(this);
this.fields['web_design_bonus'] = function(elem,form) { this.add_bonus_fields("web design",elem); }.bind(this);
this.fields['web_hosting_bonus'] = function(elem,form) { this.add_bonus_fields("web hosting",elem); }.bind(this);
this.fields['bankruptcy_bonus'] = function(elem,form)
{
if(elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to be contacted by a Bankruptcy Attorney\nwho can answer your questions and assist you with your financial concerns.\n\nPlease expect a call from a live agent in less than 30 minutes!');
this.add_bonus_fields("Bankruptcy",elem);
}
else
{
if ($F(elem) == 'yes_call_later')
{
elem.value='yes';
this.add_bonus_fields("Bankruptcy",elem,'You have selected to be contacted by a Bankruptcy Attorney\nwho can answer your questions and assist you with your financial concerns.\n\nPlease CLICK OK to confirm or Cancel to void this selection.');
elem.value='yes_call_later';
}
}
return form.nextStep();
}
}.bind(this);
this.fields['debt_consolidation_bonus'] = function(elem,form)
{
if(elem.value != '')
{
this.add_bonus_fields("Debt Consolidation",elem);
return form.nextStep();
}
}.bind(this);
this.fields['debt_settlement_bonus'] = function(elem,form)
{
if (elem.value != '')
{
this.add_bonus_fields("Debt Settlement",elem);
return form.nextStep();
}
}.bind(this);
this.fields['save_your_identity_now_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to receive the "Save My Identity Now" service.\n\nPLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT ');
this.add_bonus_fields("SYIN",elem);
} else {
return form.nextStep();
}
}
}.bind(this);
this.fields['eclubusa_bonus'] = function(elem,form)
{
if (elem.value != '')
{
this.add_bonus_fields("Eclubusa",elem);
return form.nextStep();
}
}.bind(this);
this.fields['platinumclub_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to receive the "Platinum Club" service.\nPLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT');
this.add_bonus_fields("Platinumclub",elem);
} else {
return form.nextStep();
}
}
}.bind(this);
this.fields['credit_report_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to receive the "Credit Report" service.\nPLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT');
this.add_bonus_fields("Credit Report",elem);
} else {
return form.nextStep();
}
}
}.bind(this);
this.fields['cashforgold_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes') {
this.add_bonus_fields("CashForGold",elem);
}
return form.nextStep();
}
}.bind(this);
this.fields['startercredit_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to receive the "Starter Credit Direct" service.\nPLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT');
this.add_bonus_fields("StarterCredit",elem);
form.eraseFields(form.form_index,field_to_id['startercreditcard_bonus']);
} else {
return form.nextStep();
}
}
}.bind(this);
this.fields['startercreditcard_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to receive the "Starter Credit Direct" service. PLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT');
this.add_bonus_fields("StarterCredit",elem);
} else {
return form.nextStep();
}
}
}.bind(this);
this.fields['loan_modification_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
this.add_bonus_fields("Loan Modification",elem);
}
return form.nextStep();
}
}.bind(this);
this.fields['1st_credit_now_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if ($F(elem) == 'yes')
{
alert('You have selected to receive the "First Credit Now" service.\n\nPLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT ');
this.add_bonus_fields("FCN",elem);
} else {
return form.nextStep();
}
}
}.bind(this);
this.fields['cashpass_bonus'] = function(elem,form)
{
if (elem.value != '')
{
if (($F(elem) == 'yes'))
{
alert('You have selected to receive the CashPass card.\n\nPLEASE REVIEW AGREEMENT LOCATED BELOW AND CLICK NEXT');
this.add_bonus_fields("Cashpass",elem);
}
else
{
this.add_bonus_fields("Cashpass",elem);
return form.nextStep();
}
}
}.bind(this);
this.fields['car_purchase_bonus'] = function(elem,form)
{
if(elem.value != '')
{
this.add_bonus_fields("Car Purchase",elem);
return form.nextStep();
}
}.bind(this);
this.fields['rate_type'] = function(elem,form)
{
if(elem.value != '')
{
return form.nextStep();
}
}.bind(this);
this.fields['currently_in_bankruptcy'] = function(elem,form)
{
if(elem.value != '')
{
return form.nextStep();
}
}.bind(this);
this.fields['past_due_months'] = function(elem,form)
{
if(elem.value != '')
{
return form.nextStep();
}
}.bind(this);
this.fields['home_purchase_bonus'] = function(elem, form)
{
if(elem.value != '')
{
this.add_bonus_fields("Home Purchase",elem);
return form.nextStep();
}
}.bind(this);
this.fields['pre_paid_credit_card_bonus'] = function(elem, form)
{
if(elem.value != '')
{
if (($F(elem) == 'yes'))
{
alert('You have selected to receive the SterlingVIP card.\n\nPLEASE SCROLL DOWN, REVIEW AGREEMENT AND CLICK NEXT');
this.add_bonus_fields("Prepaid Credit Card",elem);
}
else
{
this.add_bonus_fields("Prepaid Credit Card",elem);
return form.nextStep();
}
}
}.bind(this);
this.fields['pre_auto_financing_bonus'] = function(elem, form)
{
if(elem.value != '')
{
if(this.add_bonus_fields("Auto Financing",elem,"Thank you! Click OK to confirm your selection for a Free - No Obligation auto financing quote.\n\n(bad or no credit OK with a free credit check)"))
{
this.form.eraseFields(this.form.form_index,field_to_id['auto_financing_bonus']);
this.form.eraseFields(this.form.form_index,field_to_id['car_purchase_bonus']);
}
return form.nextStep();
}
}.bind(this);
this.fields['auto_financing_bonus'] = function(elem, form)
{
if(elem.value != '')
{
if(!this.add_bonus_fields("Auto Financing",elem,"Thank you! Click OK to confirm your selection for a Free - No Obligation auto financing quote.\n\n(bad or no credit OK with a free credit check"))
this.form.eraseFields(this.form.form_index,field_to_id['car_purchase_bonus']);
else
this.form.eraseFields(this.form.form_index,field_to_id['car_purchase_bonus']);
return form.nextStep();
}
}.bind(this);
},
clear_bonus_fields: function(fields,orig_fields,secondary)
{
var x=0;
var newfields = new Array();
var found = 0;
for(j=0;j<fields.length;j++)
{
found = 0;
for(k=0;k<orig_fields.length && !found;k++)
if(orig_fields[k] == fields[j])
found = 1;
if(found == 0)
newfields[x++] = fields[j];
}
if($(secondary).value != 'yes')
$(secondary).value = 'no';
this.form.eraseFields(this.form.form_index,newfields);
},
add_bonus_fields: function(key,elem,confirm_msg)
{
if(elem.value == '') return;
var y = 0;
var bonus_type = inv_generated_types[key.toLowerCase()];
var newfields = new Array();
var secondary = this.form.form_index + '_' + bonus_type + '_h';
var fields = fields_per_type[bonus_type].split(",");
var new_fields = fields_per_type[bonus_type].replace(/\+/g,",").split(",");
var orig_fields = fields_per_type[this.form.form_type].replace(/\+/g,",");
for(var sec in secondary_types)
if(secondary_types[sec] == 'yes' && sec != key)
orig_fields += "," + fields_per_type[sec].replace(/\+/g,",");
orig_fields = orig_fields.split(",");
if ($F(elem) == 'yes' || $F(elem) == 'own' || $F(elem) >= 1000 || $F(elem) == 'rent')
{
if(confirm_msg != "" && typeof(confirm_msg) != "undefined")
if(!confirm(confirm_msg))
{
this.clear_bonus_fields(new_fields,orig_fields,secondary);
secondary_types[bonus_type] = 'no';
return false;
}
for(j=0;j<fields.length;j++)
{
field_ids = fields[j].split("+");
x=0;
temp = new Array();
for(k=0;k<field_ids.length;k++)
{
if(typeof($(this.form.form_index + '_' + id_to_field[field_ids[k]] + '_h')) == "undefined")
{
if(id_to_field[field_ids[k]].match("_bonus") == null)
{
temp[x] = field_ids[k];
x++;
}
}
}
temp = temp.join("+");
if(temp)
{
newfields[y] = temp;
y++;
}
}
newfields = newfields.join();
if($(secondary).value != 'yes')
$(secondary).value = 'secondary';
secondary_types[bonus_type] = 'yes';
if(newfields.length != 0)
this.form.addAfter(this.form.form_index,newfields, this.form.form_index + '_'+elem.name+'_h');
}
else
{
if(new_fields.length != 0)
this.clear_bonus_fields(new_fields,orig_fields,secondary);
return false;
}
return true;
},
proceed: function(elem, form) { form.nextStep(); },
setup: function() { this.form.visible_form_elements.each(function(elem) { if (elem.name && this.fields[elem.name] && !elem.id.match(/_part/)) Event.observe(elem, 'change', this.call_onchange.bindAsEventListener(this)); }.bind(this)); },
call_onchange: function(event) { elem = Event.element(event);if (method = this.fields[elem.name]) if(method(elem, this.form) === false) Event.stop(event); }
};
var active_lead_forms = 0;
var	page_count = 1;
var max_page_count = 1;
var inv_generated_types = {};
var secondary_types = {};
var field_to_id = {};
var compiled_form = {};
var property_value, mortgage_balance, second_mortgage, additional_cash;
var no_checking = 0;
function image_with_trans(src)
{
if (navigator.appVersion.match(/\bMSIE 6\b/))
return '<img style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + src + '\', sizingMethod=\'scale\')" src="' + base_url + 'leadpile/images01/spacer.gif" />';
return '<img src="' + src + '" />';
}
var LeadForm = Class.create();
LeadForm.prototype = {
initialize: function(hash)
{
if(typeof(param_style) == "undefined") param_style = null;
if(typeof(param_site) == "undefined") param_site = null;
if(typeof(param_producer) == "undefined") param_producer = null;
if(typeof(param_ajax_submit) == "undefined") param_ajax_submit = null;
if(typeof(param_div) == "undefined") param_div = null;
if(typeof(param_type) == "undefined") param_type = null;
if(typeof(param_links) == "undefined") param_links = null;
if(typeof(param_autosave) == "undefined") param_autosave = null;
if(typeof(param_confpage) == "undefined") param_confpage = null;
if(typeof(param_nowait) == "undefined") param_nowait = null;
if(typeof(param_telemarketing) == "undefined") param_telemarketing = 'no';
if(typeof(param_display_info) == "undefined") param_display_info = 'yes';
if(typeof(hash) == "undefined")
var hash = {};
hash.style = hash.style || param_style;
hash.site = hash.site || param_site;
hash.producer = hash.producer || param_producer;
hash.ajax_submit = hash.ajax_submit || param_ajax_submit;
hash.div =  hash.div || param_div;
hash.types = hash.types || param_type;
hash.links =  hash.links || param_links;
hash.autosave =  hash.autosave || param_autosave;
hash.confpage =  hash.confpage || param_confpage;
hash.telemarketing =  hash.telemarketing || param_telemarketing;
hash.display_info =  hash.display_info || param_display_info;
if((typeof(hash.nowait)=="undefined" || hash.nowait == null) && param_nowait != null)
hash.nowait = param_nowait;
else
{
re = /https/i;
matches = re.exec(window.location);
if (matches)
hash.nowait = 1;
}
active_lead_forms += 1;
this.form_index  = active_lead_forms;
this.consumer_id = hash.consumer_id || null;
this.consumer_key = hash.consumer_key || null;
this.form_type		= hash.form_type || 0;
this.types			= $H(generated_types);
this.fields			= $H(fields_per_type);
this.posturl		= posturl;
this.style			= hash.style || null;
this.site			= hash.site || '';
this.instance_name	= hash.instance_name || '';
this.links			= hash.links || '';
this.producer		= hash.producer || '';
this.ajax_submit	= hash.ajax_submit || false;
this.came_from		= param_came_from || '';
this.div			= hash.div || '';
this.auto_save 		= hash.auto_save || 1;
this.confpage 		= hash.confpage || "";
this.nowait 		= hash.nowait || "";
this.telemarketing  = hash.telemarketing || "no";
this.display_info = hash.display_info || "yes";
if(this.telemarketing  != 'yes') this.telemarketing = 'no';
if(this.display_info  != 'yes') this.display_info = 'no';
info_link = '<a name="pop" style="cursor:pointer;" onclick="popUp(\'about.html\',400,300);"><img src="' + base_url + 'leadpile/images01/info.gif" width=15 height=15 border=0 alt="Click for details on this Online Request."></a>';
this.show_terms		= '<p class="foottext"><a href="#" name="pop1" style="cursor:pointer;"  onclick="popUp(\'terms.html\');">Terms</a> | ' +
   '<a href="#" name="pop2" style="cursor:pointer;"  onclick="popUp(\'contact.html\');">Contact</a> | ' +
   '<a href="#" name="pop4" style="cursor:pointer;"  onclick="popUp(\'http://test.leadpile.com/cgi-bin/manage_leads/shared/return_customer.pl?producer=' + this.producer + '&types=' + hash.types + '&lead_type=' + generated_types[hash.types]  +'&confpage=' + this.confpage + '&links=' + this.links + '&site=' + this.site + '&source=' + urlvar(window.location,'source') + '&ad=' + urlvar(window.location,'ad') + '&referrer=' + document.referrer + '&came_from='+ this.came_from + '\',700,500);">Re-Apply</a>' +
   '<br><a href="#" name="pop3" style="cursor:pointer;"  onclick="popUp(\'secureSite.html\',400,300);">SSL Secured MicroClick Form</a></p>';
if(this.instance_name != '')
this.instance_name = this.instance_name + "_" + this.form_index;
valid_types = $A(hash.types || []);
if (valid_types.length > 0)
{
for(j=0;j<valid_types.length;j++)
  if (group_map[valid_types[j]]) 
  valid_types[j] = group_map[valid_types[j]];
this.types.keys().each(function(key)
{
if (valid_types.include(key)) { throw $continue; }
delete this.types[key];
}.bind(this));
}
this.onchanges = new FormChanges(this);
if(this.nowait == "")
{
Event.onDOMReady(function()
{
if((this.div != '' && $(this.div).innerHTML == '') || !this.recentlySubmitted())
{
this.createFormHTML();
if (this.recentlySubmitted())
{
this.visible_form_elem.update('We have received your information within the past 10 minutes; there is no need to resubmit.');
}
else if (!this.populateFromServer())
{
this.producer = affp_producer(this.producer,this.came_from);
this.createhiddenForm();
}
}
}.bindAsEventListener(this));
}
else
{
if((this.div != '' && $(this.div).innerHTML == '') || !this.recentlySubmitted())
{
this.createFormHTML();
if (this.recentlySubmitted())
{
this.visible_form_elem.update('We have received your information within the past 10 minutes; there is no need to resubmit.');
}
else if (!this.populateFromServer())
{
this.producer = affp_producer(this.producer,this.came_from);
this.createhiddenForm();
}
}
}
},
populateFromServer: function() {
email = null;
string = (document.baseURI || document.URL).split('?');
if (string[1]) {
string[1].split('&').each(
function(pair) {
parts = pair.split('=');
if (parts[0] == 'email') {
email = parts[1];
}
}
);
}
if (!email && !this.consumer_id) { return false; }
if (email != null) {
Element.update(this.visible_form_elem,
'Retrieve my previous submission:<br />' +
'Email: <input type="text" id="' + this.form_index + '_email_d" value="' + email + '" /><br />' +
'Phone Number: <input type="text" id="' + this.form_index + '_phone_d" /><br />' +
'<input type="button" id="' + this.form_index + '_find_button" value="Find my submission" />');
Event.observe(this.form_index + '_find_button', 'click', function(event) {
var uri = location.href;
uri = uri.split("//");
var proto = uri[0];
uri = uri[1];
uri = uri.split("/");
uri = uri[0];
new Ajax.Request(
'lead_bridge.php',
{
parameters: "email=" + $F(this.form_index + '_email_d') + "&phone=" + $F(this.form_index + '_phone_d'),
onComplete: function(t, json) {
this.json = $H(json || {});
this.createhiddenForm();
}.bind(this)
}
);
}.bindAsEventListener(this));
} else if (this.consumer_id != null) {
var request_url = "/lead_bridge.php";
var test_str = "";
if (base_url.match(/alan/)) {
request_url = 'http://alan.test.leadpile.com/leadpile/lead_bridge.php';
test_str = "&test=1"
}
new Ajax.Request(
request_url,
{
parameters: "consumer_id=" + this.consumer_id + "&consumer_key=" + this.consumer_key + test_str,
onComplete: function(t, json) {
this.json = $H(json || {});
this.createhiddenForm();
}.bind(this)
}
);
}
return true;
},
createFormHTML: function() {
this.visible_form = 'lead_form_' + this.form_index;
form  = '<center>';
form += '<div id="progress_bar" style="display:none;">';
form += '<div id="form_info"></div>';
form += 'Progress: <div id="progress_bar_out"><div id="progress_bar_in"></div></div>';
form += '</div>';
form += '<form id="' + this.visible_form + '" class="lead_form"></form>';
form += '</center>';
if(BrowserDetect.browser == 'Explorer')
{
dcss = base_url + 'leadpile/styles/default.css';
if (document.createStyleSheet)
document.createStyleSheet(dcss);
else
new Insertion.After(document.getElementsByTagName("head")[0],'<link href="' + dcss +'" media="screen" rel="Stylesheet" type="text/css" />');
}
if (this.style && !this.style.match(/[^a-zA-Z0-9_\-\/]+/))
{
css = base_url + 'leadpile/styles/' + this.style + '/style.css'
if (document.createStyleSheet)
document.createStyleSheet(css);
else
new Insertion.After(document.getElementsByTagName("head")[0],'<link href="' + css +'" media="screen" rel="Stylesheet" type="text/css" />');
var header = image_with_trans(base_url + "leadpile/styles/" + this.style + "/top.png");
var footer = image_with_trans(base_url + "leadpile/styles/" + this.style + "/footer.png");
if (navigator.appVersion.match(/\bMSIE 6\b/))
middle = '  <tr><td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + base_url + 'leadpile/styles/' + this.style + '/middle.l.png\', sizingMethod=\'scale\' class="d_left_spacer left_spacer")"><img src="'+base_url+'leadpile/images01/spacer.gif" class="d_left_spacer left_spacer" height="1" /></td><td class="form_container d_middle_spacer middle_spacer" style="background-image:url(' + base_url + 'leadpile/styles/' + this.style + '/middle.m.png);text-align:center;"><div class="d_middle_spacer middle_spacer" style="padding:0 0 0 0;">' + form + '</div></td><td style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + base_url + 'leadpile/styles/' + this.style + '/middle.r.png\', sizingMethod=\'scale\')" class="d_right_spacer right_spacer"><img src="'+base_url+'leadpile/images01/spacer.gif" class="d_right_spacer right_spacer" height="1" /></td></tr>';
else
middle = '  <tr><td style="background:url(' + base_url + 'leadpile/styles/' + this.style + '/middle.l.png) top left repeat-y;"><img src="'+base_url+'leadpile/images01/spacer.gif" class="d_left_spacer left_spacer" height="1" /></td><td class="form_container d_middle_spacer middle_spacer" style="background:url(' + base_url + 'leadpile/styles/' + this.style + '/middle.m.png) top left repeat-y;"><div class="d_middle_spacer middle_spacer" style="text-align: center;padding: 0 0 0 0;">' + form + '</div></td><td style="background:url(' + base_url + 'leadpile/styles/' + this.style + '/middle.r.png)" class="d_right_spacer right_spacer"><img src="'+base_url+'leadpile/images01/spacer.gif" class="d_right_spacer right_spacer" height="1" /></td></tr>';
form = '<table class="form_table" border=0 cellspacing="0" cellpadding="0">' +
'  <tr><td colspan=3 class="form_table_header">' + header + '</td></tr>' +
middle +
'  <tr><td colspan=3 class="form_table_footer">' + footer + '</td></tr>' +
'</table>';
}
if(BrowserDetect.browser != 'Explorer')
{
dcss = base_url + 'leadpile/styles/default.css';
if (document.createStyleSheet)
document.createStyleSheet(dcss);
else
new Insertion.After(document.getElementsByTagName("head")[0],'<link href="' + dcss +'" media="screen" rel="Stylesheet" type="text/css" />');
}
script_tags = $$('script').map(function(e) {return e.innerHTML.match(/new LeadForm/) ? e : undefined}).compact();
if(this.div == '')
new Insertion.After(script_tags[(this.form_index - 1)], form);
else
$(this.div).innerHTML = form;
this.visible_form_elem = $(this.visible_form);
},
createhiddenForm: function(producer) {
this.hidden_form = 'hidden_form_' + this.form_index;
Event.observe(this.visible_form_elem, 'submit', Event.stop);
typeOptions = '';
hiddenForm  = '<form style="display:none;" id="' + this.hidden_form + '" name="' + this.hidden_form + '" method="post" action="' + this.posturl + '">';
$H(generated_types).each(function(pair)
{
inv_generated_types[pair.value.toLowerCase()] = pair.key;
hiddenForm  += '  <input type="hidden" id="' + this.form_index + '_' + pair.key + '_h" name="' + pair.key + '" />';
}.bind(this));
$H(formField).each(function(pair)
{
var t;
while(t = formField[pair.key].match(/<(\d+)>/))
formField[pair.key] = formField[pair.key].replace("<" + t[1] + ">",id_to_field[t[1]]);
}.bind(this));
$H(id_to_field).each(function(pair)
{
field_to_id[pair.value] = pair.key;
}.bind(this));
this.types.each(function(pair)
{
typeOptions += '  <option id="' + this.form_index + '_request_option_value_' + pair.key + '" value="' + pair.key + '">' + pair.value + '</option>';
}.bind(this));
hiddenForm += '  <input type="hidden" class="ignore" id="' + this.form_index + '_site_h" name="site" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_links_h" name="links" value="' + this.links + '"/>' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_rpt_h" name="rpt" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_came_from_h" name="came_from" value="' + this.came_from + '"/>' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_confpage_h" name="confpage" value="' + this.confpage + '"/>' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_source_h" name="source" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_lead_language_h" name="lead_language" value="' + lead_language + '"/>' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_campaign_h" name="campaign" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_action_tracking_id_h" name="action_tracking_id" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_captcha_ignore_h" name="captcha_ignore" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_ad_h" name="ad" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_telemarketing_h" name="telemarketing" value="' + this.telemarketing + '" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_referrer_h" name="referrer" />' +
'  <input type="hidden" class="ignore" id="' + this.form_index + '_producer_h" name="producer" value="' + this.producer + '" />' +
"</form>";
new Insertion.After(this.visible_form, hiddenForm);
this.hidden_form_elem  = $(this.hidden_form);
trackLead(this.site,this.form_index);
if (this.types.keys().length == 1)
this.createVisibleForm(this.types.keys().last(), true);
else
{
Element.update(this.visible_form_elem,
'Select a service type:<br />' +
'<select id="' + this.form_index + '_request_d">' +
'  <option class="head">Choose one...</option>' +
'  <option class="head">----------</option>' +
typeOptions +
'</select>' + this.show_terms);
Event.observe(this.form_index + '_request_d', 'change', function(event)
{
elem = Event.element(event);
if (elem.selectedIndex > 1)
{
this.show_terms = false;
this.createVisibleForm($F(elem), true);
}
}.bindAsEventListener(this));
}
},
createVisibleForm: function(type, focus) {
if (!type) { return; }
this.form_type = type;
this.form_page = this.fields[type].split(",");
this._addFields(this.form_index,this.fields[type], this.form_index + '_' + type + '_h', 'before', false);
this.hidden_form_elements = Form.getElements(this.hidden_form_elem);
$(this.form_index + '_' + type + '_h').value = 'yes';
this.showFirstField(focus);
this.show_terms = false;
},
total_fields: function() {
count = 0;
this.hidden_form_elements.each(function(elem) {if (compiled_form[elem.name]) { count++; };}.bind(this));
return count;
},
completed_fields: function() {
completed = 0;
this.hidden_form_elements.each(function(elem) {
if (compiled_form[elem.name] && $F(this.form_index + '_' + elem.name + '_h')) { completed++; }}.bind(this));
return completed;
},
showFirstField: function(focus) {
elem = this.hidden_form_elements.find(function(felem) { return compiled_form[felem.name];});
if(typeof(elem)!="undefined") this.showField(elem, focus && elem.type != 'hidden');
},
saveTohiddenForm: function() {
this.visible_form_elements.each(function(elem)
{
if (elem.id.match(/_part1$/))
this.numJoin(elem);
if (hidden = $(this.form_index + '_' + elem.name + '_h'))
if(elem.type != "radio")
{
if (elem.name == 'property_value' || elem.name == 'mortgage_balance' || elem.name == 'second_mortgage' || elem.name == 'additional_cash')
{
if (elem.name == 'property_value')
{
property_value = $F(elem);
} 
else if (elem.name == 'mortgage_balance')
{
mortgage_balance = $F(elem);
}
else if (elem.name == 'second_mortgage')
{
second_mortgage = $F(elem);
}
else if (elem.name == 'additional_cash')
{
additional_cash = $F(elem);
}
hidden.value = $F(elem) + '000';
}
else
hidden.value = $F(elem);
}
else
hidden.value = this.radio_value(elem);
}.bind(this));
},
radio_value: function(elem)
{
var all_elems = document.getElementsByName(elem.name);
for(var j=0;j<all_elems.length;j++)
if(all_elems[j].id.split("_")[0] == this.form_index)
if(all_elems[j].checked)
return all_elems[j].value;
return "";
},
numJoin: function(field) {
target = field.name.substr(1);
value = '';
this.visible_form_elements.each(function(elem)
{
if (elem.type != 'text' && elem.type != 'select-one') { throw $continue; }
if (elem.name == 'x' + target) { value = '' + value + '' + $F(elem); }
else if (elem.name == 'm' + target) { value = 1 * value +  1 * $F(elem); }
else if (elem.name == 'y' + target) { value = 1 * value + 12 * $F(elem); }
});
if (elem = $(this.form_index + '_' + target + '_h')) { elem.value = value; }
},
buildProgressBar: function(hash) {
percent = Math.floor((this.completed_fields() + 1)*100 / this.total_fields());
if (percent >= 100) { percent = 95; }
var w = $('progress_bar').offsetWidth;
var h = $('progress_bar_out').offsetHeight || 3;
if(h<3) h = 3;
$('progress_bar').style.display="";
$('progress_bar_in').style.width = (Math.floor(percent*w/100)) + "px";
$('progress_bar_in').style.height = (h-2) + "px";
$('form_info').style.display = "none";
if(type_info[this.form_type] != "")
if(this.display_info == "yes")
{
$('form_info').innerHTML = type_info[this.form_type];
$('form_info').style.display = "";
}
},
showField: function(elem, focus) {
if(max_page_count > 2)
{
if(BrowserDetect.browser == 'Explorer' && this.auto_save == 1)
{
window.onunload = function()
{
if($(this.form_index + '_email_h').value != "" && max_page_count > 2)
{
window.onbeforeunload = null;
$(this.form_index + '_captcha_ignore_h').value="ignore";
this.hidden_form_elem.submit();
window.onunload = null;
}
}.bind(this);
}
window.onbeforeunload = function (e)
{
var message = 'Your application is incomplete.  Please click CANCEL to complete the form.';
return message;
}.bind(this);
}
elem = $(elem);
if(typeof(elem) == 'undefined') return;
temp_form = compiled_form[elem.name].replace(/(type=\"text\")/gi, "$1 autocomplete=\"OFF\"");
temp_form = temp_form.replace(/id=\"/gi, "id=\"" + this.form_index + "_");
info_link = '<a name="pop" style="cursor:pointer;" onclick="popUp(\'about.html\',400,300);"><img src="' + base_url + 'leadpile/images01/info.gif" width=15 height=15 border=0 alt="Click for details on this Online Request."></a>';
if(max_page_count < 3)
lock_track = '<a name="lock_pop" style="cursor:pointer;" onclick="popUp(\'secureSite.html\',400,300);" ><img src="' + base_url + 'cgi-bin/manage_leads/shared/actiontrak.pl?uid=' + $F(this.form_index + '_action_tracking_id_h') + "&pid=" + $F(this.form_index + '_producer_h') + "&rpt=" + $F(this.form_index + '_rpt_h')+ "&form=" + generated_types[this.form_type] + "&page=" + elem.name + "&site=" + $(this.form_index + '_site_h').value + "&ad=" + $(this.form_index + '_ad_h').value + "&source=" + $(this.form_index + '_source_h').value + "&campaign=" + $(this.form_index + '_campaign_h').value + "&url=" + fix_url($(this.form_index + '_came_from_h').value) + "&count=" + max_page_count + '" width=12 height=15 border=0 alt="SSL Secured Form - Click for Details"></a>';
else
lock_track = '<a name="lock_pop" style="cursor:pointer;" onclick="popUp(\'secureSite.html\',400,300);" ><img src="' + base_url + 'leadpile/images01/lock.gif" width=12 height=15 border=0 alt="SSL Secured Form - Click for Details"></a>';
error1=0;
next_click = '<input type="submit" class="button" id="' + this.form_index + '_next_button" value="Next &rarr;" onclick="if (no_checking==1) {window.open(\'http://affiliate.acntracker.com/rd/r.php?affid=620710&sid=16';
try	{ $F("1_producer_h");	}	catch(err)	{ error1 = 1; next_click += '&c1=';	} 
if (error1==0) { next_click += '&c1=' + $F("1_producer_h"); }	else { error1 = 0; }
try	{ $F("1_first_name_h");	}	catch(err)	{ error1 = 1; next_click += '&first_name=';	} 
if (error1==0) { next_click += '&first_name=' + $F("1_first_name_h"); }	else { error1 = 0; }	
try	{ $F("1_last_name_h");	}	catch(err)	{ error1 = 1; next_click += '&last_name=';}	
if (error1==0) { next_click += '&last_name=' + $F("1_last_name_h");	} else { error1 = 0; }		
try	{ $F("1_address_h"); }	catch(err)	{ error1 = 1; next_click += '&address='; }		
if (error1==0) { next_click += '&address=' + $F("1_address_h"); } else { error1 = 0; }	
try	{ $F("1_city_h"); }	catch(err) { error1 = 1; next_click += '&city='; }	
if (error1==0) { next_click += '&city=' + $F("1_city_h"); }	else { error1 = 0;	}	
try	{ $F("1_state_selection_h"); }	catch(err)	{ error1 = 1; next_click += '&state='; }	
if (error1==0) { next_click += '&state=' + $F("1_state_selection_h").toUpperCase();	} else { error1 = 0; }
try	{ $F("1_postal_code_h"); }	catch(err)	{ error1 = 1; next_click += '&postal_code='; }	
if (error1==0) { next_click += '&postal_code=' + $F("1_postal_code_h"); } else { error1 = 0; }	
try	{ $F("1_home_phone_h");	}	catch(err)	{ error1 = 1; next_click += '&home_phone=';	}	
if (error1==0) { next_click += '&home_phone=' + $F("1_home_phone_h"); } else { error1 = 0;}
try	{ $F("1_email_h"); } catch(err)	{ error1 = 1; next_click += '&email='; }	
if (error1==0) { next_click += '&email=' + $F("1_email_h");	} else { error1 = 0; }
if (error1==0) { next_click +=  '\');no_checking=0;window.onbeforeunload = null;window.onunload = null;$(\'hidden_form_1\').submit();}">&nbsp;'; }
form_items = temp_form + '  <div id="no_bank"></div> ' +
'<p>' + lock_track + '&nbsp;' +
'<input type="button" class="button" id="' + this.form_index + '_back_button" value="&larr; Back">&nbsp;' + next_click +	
info_link + '</p>';
if (this.show_terms) form_items += this.show_terms;
Element.update(this.visible_form_elem, form_items);
Event.observe(this.form_index + '_back_button', 'click', function() { this.backStep(true); }.bindAsEventListener(this));
Event.observe(this.form_index + '_next_button', 'click', function() { this.nextStep(true); }.bindAsEventListener(this));
this.visible_form_elements = Form.getElements(this.visible_form_elem);
this.visible_form_elements.each(function(felem)
{
hidden = this.form_index + '_' + felem.name + '_h';
if (typeof($(hidden)) != 'undefined' && $F(hidden))
{
if(felem.type != 'radio')
{
if (felem.name == 'property_value' || felem.name == 'mortgage_balance' || felem.name == 'second_mortgage' || felem.name == 'additional_cash')
{
if (felem.name == 'property_value')
{
felem.value = property_value;
} 
else if (felem.name == 'mortgage_balance')
{
felem.value = mortgage_balance;
}
else if (felem.name == 'second_mortgage')
{
felem.value = second_mortgage;
}
else if (felem.name == 'additional_cash')
{
felem.value = additional_cash;
}
}
else				
felem.value = $F(hidden);
if (felem.type == 'hidden') { numSplit(felem); }
}
else
if(felem.id == this.form_index + "_" + $(hidden).value + "_" + felem.name + "_d")
felem.checked=true;
}
}.bind(this));
if(typeof(this.onchanges) != "undefined")
this.onchanges.setup();
this.setupAutotabHandlers();
if (focus && (felem = this.first_form_field()) && (felem.type != 'hidden')) {Field.focus(felem);}
this.buildProgressBar();
},
setupAutotabHandlers: function () {
autotab.elems = this.visible_form_elements;
$$('.autotab').each(function(elem) { Event.observe(elem, 'keyup', autoTab); });
},
recentlySubmitted: function()
{
return false; // eugen doesn't like this any more
if ((document.baseURI || document.URL).match(/test_mode/)) 	return false;
return getCookie('submitted_form') ? true : false;
},
nextStep: function(focus) {
page_count = page_count + 1;
if(page_count > max_page_count) max_page_count = page_count;
is_valid = true;
this.visible_form_elements.each(function(elem)
{
if (elem.type == 'button' || elem.type == 'submit') { throw $continue; }	
if ((elem.name == 'second_pay_date' && !checkPayDate2(elem, $F(this.form_index + '_next_pay_date_d'), $F(this.form_index + '_pay_period_h'))) ||
(elem.name == 'postal_code'     && !checkZipCode($F(elem), $F(this.form_index + '_state_selection_h'))) ||
(elem.name == 'months_employed' && !checkEmployed($F(elem), $F(this.form_index + '_months_employed_d'))) ||
(elem.name == 'monthly_income'  && !checkIncome($F(elem), $F(this.form_index + '_monthly_income_d'))) ||
(elem.name == 'degree_program'  && !checkDegree($F(elem))))
{
is_valid = false;
throw $break;
}
else
if (elem.type == 'text' && elem.id.match(/_part\d+$/) && $F(elem).length != elem.size)
{
var elemname = elem.name;
if(elem.id.match(/_part\d+$/)) elemname = elem.name.substring(1);
alert('There are not enough digits!');
Field.focus(elem);
is_valid = false;
throw $break;
}
else
if (
(elem.type.match('select') && (Element.hasClassName(elem.options[elem.selectedIndex], 'head') || elem.options[elem.selectedIndex].value == '')) ||
(elem.type == 'text' && ($F(elem) == '' || $F(elem) == 'mmddyyyy')) ||
(elem.type == 'radio' && this.radio_value(elem) == "")
)
{
alert('Please fill out all fields');
if (elem.type != "hidden") { Field.focus(elem); }
is_valid = false;
throw $break;
}
}.bind(this));
if (!is_valid) { return false; }
$(this.form_index + '_back_button').disabled = true;
$(this.form_index + '_next_button').disabled = true;
this.saveTohiddenForm();
if (this.showNextField(focus))
{
$(this.form_index + '_back_button').disabled = false;
$(this.form_index + '_next_button').disabled = false;
   return true;
}
window.onbeforeunload = null;
window.onunload = null;
Element.update(this.visible_form_elem, "<center>Your request is being processed. This may take several minutes. <b>Please wait for your confirmation page.</b></center><br><br>Thank you for your patience.");
expDate = new Date();
expDate.setTime(expDate.getTime() + 1000 * 60 * 10);
setCookie('submitted_form', '1', expDate, '/');
var once = true;
setTimeout(function()
{
if (once && !(document.baseURI || document.URL).match(/test_mode/))
{
if (this.ajax_submit)
new Ajax.Request(this.hidden_form_elem.action, {parameters: Form.serialize(this.hidden_form_elem),onLoading: function() {},onComplete: function(transport) {}});
else
this.hidden_form_elem.submit();
once = false;
}
}.bind(this), 100);
return true;
},
nextFormElement: function(current)
{
found = false;
return this.hidden_form_elements.find(function(elem) {if (found && compiled_form[elem.name]) { return true; }if (elem.name == current.name) { found = true; }return false;}.bind(this));
},
showNextField: function(focus) {
next_field = this.nextFormElement(this.first_form_field());
if (typeof(next_field)!="undefined") { this.showField(next_field, focus); return true; }
return false;
},
previousFormElement: function(current) {
last_item = null;
for (i = 0; i < this.hidden_form_elements.length; i++)
{
elem = $(this.hidden_form_elements[i].id);
if (last_item && (elem.name == current.name))
return last_item;
if (compiled_form[elem.name]) { last_item = elem; }
}
},
showPrevField: function(focus) {
prev_field = this.previousFormElement(this.first_form_field());
if (prev_field)
{
this.showField(prev_field, focus);
return true;
}
return false;
},
backStep: function() {
page_count = page_count - 1;
this.saveTohiddenForm();
this.showPrevField(true);
},
addBefore: function(i, f, t) { this._addFields(i, f, t, 'before'); },
addAfter: function(i, f, t)  { this._addFields(i, f, t, 'after');  },
addTop: function(i, f, t)    { this._addFields(i, f, t, 'top');    },
addBottom: function(i, f, t) { this._addFields(i, f, t, 'bottom'); },
_addFields: function(form_index, fields, adjacent, before_or_after, cache) {
cache = cache || true;
if (typeof(fields) == 'string') { fields = fields.split(','); }
new_fields = '';
(fields || []).each(function(field)
{
i_fields = field.split("+");
field_name = id_to_field[i_fields[0]];
compile = "";
for(j=0;j<i_fields.length;j++)
{
if(compile) compile+="+";
compile += "'<div align=\"center\">' + formField[" + i_fields[j] + "] + '</div>'";
field = id_to_field[i_fields[j]];
if (!$(form_index + '_' + field + '_h'))
{
value = (this.json && this.json[field]) ? this.json[field] : '';
new_fields += "<input type=\"hidden\" id=\"" + form_index + "_" + field + "_h\" name=\"" + field + "\" value=\"" + value + "\">";
}
}
eval("compiled_form[field_name] = " + compile);
}.bind(this));
before_or_after = before_or_after.toLowerCase();
before_or_after = before_or_after.charAt(0).toUpperCase() + before_or_after.substring(1);
new Insertion[before_or_after](adjacent, new_fields);
if (cache)
this.hidden_form_elements = Form.getElements(this.hidden_form_elem);
},
eraseFields: function(form_index, fields)
{
if (typeof(fields) == 'string') fields = fields.split(',');
fields.each(function(elem)
{
i_fields = elem.split("+");
for(j=0;j<i_fields.length;j++)
{
elem = $(form_index + '_' + id_to_field[i_fields[j]] + '_h');
if (elem) Element.remove(elem.id);
}
});
this.hidden_form_elements = Form.getElements(this.hidden_form_elem);
},
first_form_field: function() 
{ 
return this.visible_form_elements.find(function(elem) 
{
return compiled_form[elem.name];
}.bind(this)); 
}
};
function urlvar(u,v)
{
var reg = new RegExp("[&?]" + v + "=([^&]+)","i");
matches = reg.exec(u);
if (matches) return matches[1];
return "";
}
function trackLead(site,form_index) {
source   = urlvar(window.location,"source");
campaign = urlvar(window.location,"campaign");
ad       = urlvar(window.location,"ad");
affp     = urlvar(window.location,"affp");
rpt      = urlvar(window.location,"rpt");
referrer = document.referrer
ref_url  = window.location + "";
oldSource = getCookie('LeadpileFormSource');
if (oldSource && source == '') {
source   = oldSource;
campaign = getCookie('LeadpileFormCampaign');		
ad       = getCookie('LeadpileFormAd');
referrer = getCookie('LeadpileFormReferrer');
ref_url  = getCookie('LeadpileFormCameFrom');
affp     = getCookie('LeadpileFormAffp');
rpt      = getCookie('LeadpileFormRpt');
}
expDays = 30;
expDate = new Date();
expDate.setTime(expDate.getTime() + (24 * 60 * 60 * 1000 * expDays));
setCookie('LeadpileFormSource',   source,   expDate, '/');
setCookie('LeadpileFormCampaign', campaign, expDate, '/');		
setCookie('LeadpileFormAd',       ad,       expDate, '/');
setCookie('LeadpileFormReferrer', referrer, expDate, '/');
setCookie('LeadpileFormCameFrom', ref_url,  expDate, '/');
setCookie('LeadpileFormAffp',     affp,     expDate, '/');
setCookie('LeadpileFormRpt',      rpt,      expDate, '/');
if (affp != '' && affp != 'sas' && affp != 'cxc')
  $(form_index + '_producer_h').value = affp;
t = new Date();
$(form_index + '_rpt_h').value = rpt;
$(form_index + '_came_from_h').value = ref_url;
$(form_index + '_site_h').value = site;
$(form_index + '_source_h').value = source;
$(form_index + '_campaign_h').value = campaign;
$(form_index + '_action_tracking_id_h').value = Math.abs((Math.random() * 65536 * 65536 + Math.random() * 65536) ^ t.getTime());
$(form_index + '_ad_h').value = ad;
$(form_index + '_referrer_h').value = referrer;
}
function calcPayDate2(elem,pd1,pp)
{
var now = new Date();
var pd1a = pd1.split('-');
var pd1d = new Date();
pd1d.setFullYear(pd1a[2], pd1a[0] - 1, pd1a[1]);
if (pd1d.valueOf() < now.valueOf() + 864e2)
{
alert('The first pay date you chose is in the past.');
elem.value = '';
return false;
}
var new_date = pd1d.valueOf();
switch (pp)
{
case 'weekly': new_date += 7 * 60 * 60 * 24*1000; break;
case 'bi-weekly': new_date += 14 * 60 * 60 * 24*1000; break;
case 'monthly': new_date += 30 * 60 * 60 * 24*1000; break;
case 'twice_monthly': new_date += 14 * 60 * 60 * 24*1000; break;
}
new_date = new Date(parseInt(new_date));
var day = new_date.getDate();
if(day<10) day = "0" + day;
var month = new_date.getMonth() + 1;
if(month<10) month = "0" + month;
var year = new_date.getFullYear();
while(calHoliday(month + "-" + day + "-" + year) || new_date.getDay()%6==0)
{
new_date = new_date.valueOf();
new_date -= 60 * 60 * 24*1000;
new_date = new Date(parseInt(new_date));
day = new_date.getDate();
if(day<10) day = "0" + day;
month = new_date.getMonth() + 1;
if(month<10) month = "0" + month;
year = new_date.getFullYear();
}
elem.value = month + "-" + day + "-" + year;
return true;
}
function checkPayDate2(elem, pd1, pp)
{
pd2 = $F(elem);
now = new Date();
pd1a = pd1.split('-');
pd1d = new Date();
pd1d.setFullYear(pd1a[2], pd1a[0] - 1, pd1a[1]);
pd2a = pd2.split('-');
pd2d = new Date();
pd2d.setFullYear(pd2a[2], pd2a[0] - 1, pd2a[1]);
if (pd1d.valueOf() < now.valueOf() + 864e2)
{
alert('The first pay date you chose is in the past.');
elem.value = '';
return false;
}
if (pd2d.valueOf() < pd1d.valueOf() + 864e2)
{
alert('The second pay date you chose is sooner than the first.');
elem.value = '';
return false;
}
dd = Math.floor((pd2d.valueOf() - pd1d.valueOf()) / 864e5);
valid = 1;
switch (pp)
{
case 'weekly':if (dd != 7) valid = 0;break;
case 'bi-weekly':if (dd != 14) valid = 0;break;
case 'monthly':if (dd < 28 || dd > 31) valid = 0;break;
case 'twice_monthly':if (dd < 14 || dd > 16) valid = 0;break;
}
if (valid == 0 && !confirm('The second pay date you chose doesn\'t match your pay period, are you sure it\'s correct?'))
{
elem.value = '';
return false;
}
return true;
}
function fix_url(v)
{
v = v.replace(/\?/g,"}");
v = v.replace(/=/g,"{");
v = v.replace(/&/g,"|");
return encodeURI(v);
}
function checkDegree(value)
{
if (value == 'null')
{
alert('Please select a valid degree program.');
return false;
}
return true;
}
var generated_types = { 1:'Payday',
2:'Auto Financing',
3:'Debt Consolidation',
4:'Home Purchase',
5:'Credit Repair',
6:'Personal Injury',
7:'Home Insurance',
8:'Health Insurance',
9:'Car Insurance',
10:'Credit Card',
11:'Homeowner',
12:'Student Loans Consolidation',
13:'Online Degree',
14:'Home Based Business',
15:'Life Insurance',
16:'Student Loan',
20:'Auto Dealers',
21:'Motorcycle Loans',
22:'Exotic Cars Rental',
23:'Leasing Tips',
24:'Used Cars',
25:'Appraisers',
26:'Consultant',
27:'Service And Repair Consultants',
28:'Driver Training',
30:'Inspection Services',
31:'Auctions And Brokers',
32:'Bankruptcy',
33:'Civil Judgements',
34:'Federal Tax Liens',
35:'Foreclosure',
36:'State Tax Liens',
37:'Criminal Law',
38:'Employment Law',
39:'Family Law',
40:'Financial And Securities Law',
41:'Immigration Law',
42:'International Law',
43:'Ip/Trademark Law',
44:'Litigation Law',
45:'Real Estate Law',
46:'Tax Law',
47:'Corporate Law',
48:'Medical Law',
49:'Malpractice And Negligence',
50:'Social Security',
51:'Traffic Law',
52:'Wrongful Death',
53:'Escrow Services',
54:'Astrology',
56:'Diet And Weight Loss',
57:'Fitness',
58:'Utritionl Supplements',
59:'Vision Care',
60:'Laser Vision Correction',
61:'Plastic Surgery',
62:'Chiropractor',
63:'Homeopathy',
64:'Artificial Insemination',
65:'Veterinars',
66:'Laser Therapy',
67:'Funeral Alternatives',
68:'Funeral Services',
69:'Cremation Services',
71:'Nurses',
72:'Midwives',
73:'Nutritionists',
74:'Attendant Home Care Hospices',
75:'Consultants',
76:'Support Groups',
77:'Counseling',
78:'Physicians And Surgeons',
79:'Entertainment Agencies',
80:'Movie Producers And Studios',
81:'Music',
82:'Event Planning',
83:'Vacation',
84:'Time Share',
85:'Cruises',
86:'Bus Tours',
87:'Travel Insurance',
88:'Horseback Riding Classes',
89:'Passport And Visa Services',
90:'Lodging',
91:'Limousines',
92:'B2b',
94:'Franchise',
95:'Investment',
97:'Payroll Services',
98:'Real Estate',
99:'Telemarketing Services',
100:'Internet Marketing Professionals',
101:'Advertising Agencies',
102:'Demonstration Services',
103:'Outsourcing',
104:'Cleaning Commercial',
105:'Moving And Storage',
106:'Translators',
107:'Writing Services',
108:'Garbage Removal',
109:'Interior Designers',
110:'Printing Services',
111:'Trade Shows Professionals',
112:'Talents',
113:'Background Checks',
114:'Copywriters',
115:'Investigation Services',
116:'Computer Support',
117:'Voip',
118:'Credit Card Processing',
119:'Merchant Account',
120:'Landscaping Commercial',
121:'Marketing And Public Relations',
122:'Security Systems',
123:'Home Inspection',
124:'Home Warranty',
125:'Moving Service',
126:'Pest Control',
127:'Home Improvement',
128:'Gardening',
129:'Building And Home Construction',
130:'Chimney Cleaning',
131:'Interior Cleaning',
132:'Child Care Services',
133:'House Sitting',
134:'Maids And Butlers',
135:'Pet Sitting And Day Care',
136:'Landscaping',
138:'Roof Consulting',
139:'Television Services',
140:'House Plans',
141:'College Funding',
142:'Child Education',
144:'Aptitude Testing',
145:'Vocational Education',
146:'Special Education',
147:'Educational Financing',
148:'Private Schools',
149:'Computer Upgrade',
150:'It Consultant',
151:'Data Storage',
155:'Mortgage Insurance',
156:'Ecommerce Services',
157:'Extended Warranties',
158:'Satellite Television',
160:'Debt Settlement',
162:'Personal Loan',
164:'Home Equity',
168:'Financial Planning',
169:'Second Mortgage',
171:'Media Services',
172:'Wireless Communications',
173:'Long Distance Calls Services',
174:'Agencies And Brokerage',
175:'Apartment And Home Rental',
176:'Commercial And Industrial',
177:'Developers And Subdividers',
178:'Condos',
179:'Townhouses',
180:'Property Management',
181:'Rental And Leasing',
182:'Architects',
183:'Real Estate Appraisers',
184:'Domain Registration',
185:'Email Marketing',
186:'Isp',
187:'Web Design',
188:'Web Hosting',
189:'Internet Marketing Services',
190:'Web Developers',
191:'Plumbing',
192:'Wrecking Demolition And Salvage',
197:'Incorporation',
200:'E-Commerce',
201:'Replacement Windows',
202:'Timber',
203:'Lumber',
204:'Reverse Mortgage',
205:'Restaurant Software',
206:'Software',
207:'Trade Show Booths',
208:'Dating',
209:'Magazine Subscriptions',
210:'Hair Loss',
211:'Hair Transplant',
212:'Hair Restoration',
213:'Central Vacuums',
214:'Billboard Advertising',
215:'Acupuncture',
216:'Biomanufacturing Manager Training',
217:'Annuities',
218:'Credit Report',
219:'Credit Monitoring',
220:'Janitorial',
221:'Office Furniture',
222:'Real Estate Investors',
223:'Prepaid Credit Card',
225:'Product Liability',
227:'Class Action Lawsuit',
228:'Air Purification Systems',
229:'Business Loans',
231:'Heating and cooling',
232:'Network Marketing',
233:'Painting',
235:'Relocation Realestate Agent',
237:'Car Purchase',
239:'Car Warranty',
240:'',
241:'Imagine Credit Card',
242:'Auto Security Systems',
243:'Payday UK',
248:'Divorce',
249:'Equipment Leasing',
250:'Debt Collection',
252:'Tax Debt Relief',
254:'Bid4Prizes',
264:'SYIN',
274:'FCN',
284:'Business Cash Advance',
294:'CashPass',
304:'eClubUSA',
324:'PlatinumClub',
334:'Accounting',
344:'Addiction',
354:'Affiliate',
364:'Air Purification',
374:'Air Conditioning',
384:'Audio Books',
394:'Auto Repair',
404:'Babysitting',
414:'Business Insurance',
424:'Business Opportunity',
434:'Buy Gold',
444:'Cable TV',
454:'Carpet Cleaning',
464:'Commercial Cleaning',
474:'Commercial Lease',
484:'Commercial Mortgage',
494:'Custom Home Building',
504:'Diabetic Supplies',
514:'Gambling',
524:'Green Card',
534:'Handyman',
544:'Housekeeping',
554:'Internet Business',
564:'Long Term Care',
574:'Long Term Care Insurance',
584:'Luxury Automobiles',
594:'Medical Billing Serrvices',
604:'Mesothelioma',
614:'Phone Systems',
624:'Photography',
634:'Prepaid Legal',
644:'Radio Advertising',
654:'Realtors',
664:'Satellite Radio',
674:'Search Engine Optimization',
684:'Singles',
694:'Staffing',
704:'Stock Traders',
714:'Tree Service',
724:'Vacation Rental',
734:'Vending Machines',
744:'Wedding',
754:'Window Replacement',
764:'StarterCredit',
774:'CashForGold',
784:'Loan Modification',
794:'eClubPremier',
804:'Cash Advance',
814:'Web Conferencing',
824:'Online Education',
834:'Bookkeeping',
844:'Mobile Phones',
854:'Annuity Settlement',
864:'Structured Settlement',
874:'Forex Trading System',
884:'Male Enhancement',
894:'Call Center Service',
904:'payday advance',
914:'QPPC - Payday',
924:'Installment Loan' };
var type_info = { 1:'<b><a href="http://www.ezwebsys.com/shared/html/faq/cash-advance-loans-faq.html" style="color:black" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\');return false">Cash Advance Loan Request</a></b>',
2:'<b>Free Auto Financing Quote</b>',
3:'<b>Free Debt Consolidation<br>Quotes</b>',
4:'<b>Free Home Purchase Quote</b>',
5:'<b>Free Credit Repair Quote</b>',
6:'',
7:'',
8:'<b>Free Health Insurance Quote</b>',
9:'',
10:'',
11:'<b>Free Homeowner Loan Quote</b>',
12:'',
13:'',
14:'<b>Home Based Business Info</b>',
15:'<b>Free Life Insurance Quote</b>',
16:'',
20:'',
21:'',
22:'',
23:'',
24:'',
25:'',
26:'',
27:'',
28:'',
30:'',
31:'',
32:'',
33:'',
34:'',
35:'',
36:'',
37:'',
38:'',
39:'',
40:'',
41:'',
42:'',
43:'',
44:'',
45:'',
46:'',
47:'',
48:'',
49:'',
50:'',
51:'',
52:'',
53:'',
54:'',
56:'',
57:'',
58:'',
59:'',
60:'',
61:'',
62:'',
63:'',
64:'',
65:'',
66:'',
67:'',
68:'',
69:'',
71:'',
72:'',
73:'',
74:'',
75:'',
76:'',
77:'',
78:'',
79:'',
80:'',
81:'',
82:'',
83:'',
84:'',
85:'',
86:'',
87:'',
88:'',
89:'',
90:'',
91:'',
92:'',
94:'',
95:'',
97:'',
98:'',
99:'',
100:'',
101:'',
102:'',
103:'',
104:'',
105:'',
106:'',
107:'',
108:'',
109:'',
110:'',
111:'',
112:'',
113:'',
114:'',
115:'',
116:'',
117:'',
118:'',
119:'',
120:'',
121:'',
122:'',
123:'',
124:'',
125:'',
126:'',
127:'',
128:'',
129:'',
130:'',
131:'',
132:'',
133:'',
134:'',
135:'',
136:'',
138:'',
139:'',
140:'',
141:'',
142:'',
144:'',
145:'',
146:'',
147:'',
148:'',
149:'',
150:'',
151:'',
155:'',
156:'',
157:'',
158:'',
160:'<b>- Debt Settlement -</b><br>More than a month past due bills?<br><b>Free Quotes Here:</b>',
162:'',
164:'',
168:'',
169:'',
171:'',
172:'',
173:'',
174:'',
175:'',
176:'',
177:'',
178:'',
179:'',
180:'',
181:'',
182:'',
183:'',
184:'',
185:'',
186:'',
187:'',
188:'',
189:'',
190:'',
191:'',
192:'',
197:'',
200:'',
201:'',
202:'',
203:'',
204:'',
205:'',
206:'',
207:'',
208:'',
209:'',
210:'',
211:'',
212:'',
213:'',
214:'',
215:'',
216:'',
217:'',
218:'',
219:'',
220:'',
221:'',
222:'',
223:'',
225:'',
227:'',
228:'',
229:'',
231:'',
232:'',
233:'',
235:'',
237:'',
239:'',
240:'',
241:'',
242:'',
243:'',
248:'',
249:'',
250:'',
252:'',
254:'',
264:'',
274:'',
284:'',
294:'',
304:'',
324:'',
334:'',
344:'',
354:'',
364:'',
374:'',
384:'',
394:'',
404:'',
414:'',
424:'',
434:'',
444:'',
454:'',
464:'',
474:'',
484:'',
494:'',
504:'',
514:'',
524:'',
534:'',
544:'',
554:'',
564:'',
574:'',
584:'',
594:'',
604:'',
614:'',
624:'',
634:'',
644:'',
654:'',
664:'',
674:'',
684:'',
694:'',
704:'',
714:'',
724:'',
734:'',
744:'',
754:'',
764:'',
774:'',
784:'',
794:'',
804:'',
814:'',
824:'',
834:'',
844:'',
854:'',
864:'',
874:'',
884:'',
894:'',
904:'<b><a href="http://www.ezwebsys.com/shared/html/faq/cash-advance-loans-faq.html" style="color:black" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\');return false">Cash Advance Loan Request</a></b>',
914:'',
924:'' };
var id_to_field = { 2:'state_selection',
3:'working_in_us',
4:'monthly_income',
5:'has_bank_account',
6:'pay_period',
7:'next_pay_date',
8:'second_pay_date',
9:'unsecured_debt',
10:'housing',
11:'first_name',
12:'last_name',
13:'address',
14:'city',
15:'postal_code',
16:'email',
17:'home_phone',
18:'requested_loan_amount',
19:'best_time_to_call',
22:'months_at_residence',
23:'income_type',
24:'occupation',
25:'employer',
26:'supervisor_name',
27:'supervisor_phone',
28:'work_phone',
31:'months_employed',
32:'bank_name',
33:'account_number',
34:'routing_number',
35:'bank_phone',
36:'direct_deposit',
37:'driving_license_state',
38:'driving_license_number',
39:'mother_maiden_name',
40:'birth_date',
41:'social_security_number',
42:'reference_1_first_name',
43:'reference_1_last_name',
44:'reference_1_relationship',
45:'reference_1_phone',
46:'reference_2_first_name',
47:'reference_2_last_name',
48:'reference_2_relationship',
49:'reference_2_phone',
55:'credit',
56:'property_type',
57:'property_value',
58:'mortgage_balance',
59:'additional_cash',
60:'second_mortgage',
61:'interest_rate',
62:'monthly_obligations',
65:'creditors',
66:'case_description',
67:'auto_financing_bonus',
69:'level_of_education',
70:'degree_program',
71:'active_military',
77:'car_insurance_bonus',
78:'life_insurance_bonus',
79:'student_loan_consolidation_bonus',
80:'home_based_business_bonus',
82:'student_loan_debt',
83:'home_purchase_bonus',
92:'title_bonus',
93:'student_loan_type',
94:'student_loan_count',
95:'student_loan_default',
96:'student_loan_already_consolidated',
97:'graduated',
98:'auto_make',
99:'auto_model',
100:'auto_purchase_days',
101:'auto_type',
102:'car_purchase_bonus',
103:'health_insurance_bonus',
104:'loan_to_value',
105:'pre_auto_financing_bonus',
106:'pre_paid_credit_card_bonus',
107:'pre_paid_credit_card_footer_bonus',
109:'loan_amount',
110:'home_improvement_bonus',
113:'home_improvement_service',
114:'bankruptcy_bonus',
115:'move_date',
116:'move_state',
117:'move_to_city',
118:'move_size',
119:'home_security_system_bonus',
120:'uk_privacy_policy',
121:'uk_accept_privacy_policy',
122:'house_name',
123:'street_name',
124:'home_phone_uk',
125:'work_phone_uk',
126:'company_department',
127:'reference_1_phone_uk',
128:'reference_2_phone_uk',
129:'sort_code',
130:'postal_code_uk',
131:'second_pay_date_uk',
132:'pay_period_uk',
133:'next_pay_date_uk',
134:'supervisor_phone_uk',
135:'monthly_income_uk',
143:'homeowner_bonus',
145:'collect_from',
146:'collect_amount',
147:'collect_accounts',
148:'collect_length',
149:'creditor_checkbox',
151:'business_type',
152:'business_phone',
153:'business_turned_down',
154:'business_loan_amount',
155:'accept_credit_cards',
156:'credit_card_volume',
157:'time_in_business',
158:'buying_business',
159:'business_name',
160:'title',
161:'years_in_business',
162:'equipment_cost',
163:'lease_time',
164:'years_married',
165:'number_of_children',
166:'divorce_reason',
167:'divorce_uncontested',
180:'credit_card_processing_bonus',
181:'equipment_leasing_bonus',
186:'voip_bonus',
189:'web_hosting_bonus',
242:'house_zip_code',
243:'time_to_sell',
244:'property_listed_with_realtor',
245:'number_beds',
246:'number_baths',
247:'reason_for_selling',
248:'asking_price',
260:'tax_type',
261:'tax_filed',
262:'tax_debt_amount',
263:'vehicle_year',
264:'vehicle_mileage',
265:'vehicle_fuel',
268:'vehicle_drive',
269:'merchant_account',
270:'voip_users',
271:'voip_within_days',
272:'website_type',
273:'website_budget',
274:'debt_settlement_bonus',
314:'had_bankruptcy',
324:'monthly_housing_cost',
334:'fax',
344:'eclubusa_bonus',
374:'startercredit_bonus',
404:'rate_type',
414:'interest_only',
424:'currently_in_bankruptcy',
434:'terms',
447:'eclub_premier_agree',
464:'past_due_months',
474:'high_school_graduation_year' };
var group_map = { 29:'122',
55:'208',
70:'240',
93:'14',
96:'14',
137:'127',
143:'13',
152:'240',
153:'8',
154:'8',
159:'3',
167:'252',
170:'12',
230:'239',
236:'83',
240:'11' };
var posturl = 'https://www.leadpile.com/cgi-bin/manage_leads/shared/submit_form.pl';
var lead_language = 'en ';
var fields_per_type = { 1:'2,11+12+16+17+28+15+434,13+14+10,3,71,19,4,5,36,6,7+8,18,22,23,24+25+26+27+31,32+33+34+35,37+38+39,40+41,42+43+44+45,46+47+48+49,374,67,114,344',
2:'2,11+12+16+17+28+15,13+14+10,324,3,19,4,22,23,24+25+26+27+31,40+41,314,143,114',
3:'2,11+12+16+17+15,13+14+10,19,9,65+149,105,67,143,114',
4:'2,11+12+16+17+15,13+14,105,67,102,274,92+78+80',
5:'2,11+12+16+17+15,13+14,114',
6:'2,11+12+16+17+15,13+14+10,66,105,67,83,143,102,92+78+80+103',
7:'2,11+12+16+17+15,13+14+10,105,67,83,143,102,92+78+80',
8:'2,11+12+16+17+15,13+14+10,105,67,83,143,102,92+78+80',
9:'2,11+12+16+17+15,13+14+10,105,67,83,143,102,92+78+80',
10:'2,11+12+16+17+15,13+14+10,105,67,83,143,102,114,92+78+79+80',
11:'2,11+12+16+17+15,13+14,55+56+57+58+60+59+61+62+104+109,105,67,102,114,92+78+80+110+119',
12:'2,11+12+16+17+15,13+14+10,40+41,82',
13:'2,11+12+16+17+15,13+14+10,71,69+70,105,67,83,143,102,92+78+80+103',
14:'2,11+12+16+17+15,13+14+10,105,67,143,92+78',
15:'2,11+12+16+17+15,13+14+10,105,67,83,143,102,114,92+80',
16:'2,11+12+16+17+15,13+14+10,105,67,83,143,102,114,92+78+79+80',
20:'2,11+12+16+17+15,13+14+10',
21:'2,11+12+16+17+15,13+14+10',
22:'2,11+12+16+17+15,13+14+10',
23:'2,11+12+16+17+15,13+14+10',
24:'2,11+12+16+17+15,13+14+10',
25:'2,11+12+16+17+15,13+14+10',
26:'2,11+12+16+17+15,13+14+10',
27:'2,11+12+16+17+15,13+14+10',
28:'2,11+12+16+17+15,13+14+10',
30:'2,11+12+16+17+15,13+14+10',
31:'2,11+12+16+17+15,13+14+10',
32:'2,11+12+16+17+15,13+14,4,9,105,67,274,92+78+80',
33:'2,11+12+16+17+15,13+14+10',
34:'2,11+12+16+17+15,13+14+10',
35:'2,11+12+16+17+15,13+14',
36:'2,11+12+16+17+15,13+14+10',
37:'2,11+12+16+17+15,13+14,66,92+78+80',
38:'2,11+12+16+17+15,13+14,92+78+80',
39:'2,11+12+16+17+15,13+14,92+78+80',
40:'2,11+12+16+17+15,13+14',
41:'2,11+12+16+17+15,13+14,92+78+80',
42:'2,11+12+16+17+15,13+14',
43:'2,11+12+16+17+15,13+14+10',
44:'2,11+12+16+17+15,13+14',
45:'2,11+12+16+17+15,13+14+10,92+78+80',
46:'2,11+12+16+17+15,13+14,92+78+80',
47:'2,11+12+16+17+15,13+14,92+78',
48:'2,11+12+16+17+15,13+14,92+78+80',
49:'2,11+12+16+17+15,13+14+10',
50:'2,11+12+16+17+15,13+14,92+78+80',
51:'2,11+12+16+17+15,13+14,92+78+80',
52:'2,11+12+16+17+15,13+14',
53:'2,11+12+16+17+15,13+14+10',
54:'2,11+12+16+17+15,13+14+10',
56:'2,11+12+16+17+15,13+14+10',
57:'2,11+12+16+17+15,13+14+10',
58:'2,11+12+16+17+15,13+14',
59:'2,11+12+16+17+15,13+14',
60:'2,11+12+16+17+15,13+14+10',
61:'2,11+12+16+17+15,13+14',
62:'2,11+12+16+17+15,13+14+10',
63:'2,11+12+16+17+15,13+14+10',
64:'2,11+12+16+17+15,13+14+10',
65:'2,11+12+16+17+15,13+14',
66:'2,11+12+16+17+15,13+14+10',
67:'2,11+12+16+17+15,13+14+10',
68:'2,11+12+16+17+15,13+14+10',
69:'2,11+12+16+17+15,13+14+10',
71:'2,11+12+16+17+15,13+14',
72:'2,11+12+16+17+15,13+14',
73:'2,11+12+16+17+15,13+14',
74:'2,11+12+16+17+15,13+14+10',
75:'2,11+12+16+17+15,13+14+10',
76:'2,11+12+16+17+15,13+14',
77:'2,11+12+16+17+15,13+14+10',
78:'2,11+12+16+17+15,13+14',
79:'2,11+12+16+17+15,13+14+10',
80:'2,11+12+16+17+15,13+14',
81:'2,11+12+16+17+15,13+14',
82:'2,11+12+16+17+15,13+14+10',
83:'2,11+12+16+17+15,13+14',
84:'2,11+12+16+17+15,13+14+10',
85:'2,11+12+16+17+15,13+14+10',
86:'2,11+12+16+17+15,13+14+10',
87:'2,11+12+16+17+15,13+14',
88:'2,11+12+16+17+15,13+14+10',
89:'2,11+12+16+17+15,13+14',
90:'2,11+12+16+17+15,13+14+10',
91:'2,11+12+16+17+15,13+14+10',
92:'2,11+12+16+17+15,13+14+10',
94:'2,11+12+16+17+15,13+14+10',
95:'2,11+12+16+17+15,13+14+10',
97:'2,11+12+16+17+15,13+14',
98:'2,11+12+16+17+15,13+14+10+56+57+58,245+246,247,248,243,244,242,114,92+78+80+110',
99:'2,11+12+16+17+15,13+14',
100:'2,11+12+16+17+15,13+14+10',
101:'2,11+12+16+17+15,13+14+10',
102:'2,11+12+16+17+15,13+14+10',
103:'2,11+12+16+17+15,13+14',
104:'2,11+12+16+17+15,13+14+10',
105:'2,11+12+16+17+15,13+14+10',
106:'2,11+12+16+17+15,13+14',
107:'2,11+12+16+17+15,13+14',
108:'2,11+12+16+17+15,13+14+10',
109:'2,11+12+16+17+15,13+14+10',
110:'2,11+12+16+17+15,13+14+10',
111:'2,11+12+16+17+15,13+14',
112:'2,11+12+16+17+15,13+14',
113:'2,11+12+16+17+15,13+14+10',
114:'2,11+12+16+17+15,13+14+10',
115:'2,11+12+16+17+15,13+14+10',
116:'2,11+12+16+17+15,13+14+10',
117:'2,11+12+16+17+15,13+14,270+271,159,19',
118:'2,11+12+16+17+15,13+14,159+151+152,155,269,156,92+186+189',
119:'2,11+12+16+17+15,13+14',
120:'2,11+12+16+17+15,13+14+10',
121:'2,11+12+16+17+15,13+14',
122:'2,11+12+16+17+15,13+14+10,55,92+78+80+103+110',
123:'2,11+12+16+17+15,13+14+10',
124:'2,11+12+16+17+15,13+14+10',
125:'2,11+12+16+17+15+10,115+116+117+118,19',
126:'2,11+12+16+17+15,13+14',
127:'2,11+12+16+17+15,13+14,113,92+78+80+119',
128:'2,11+12+16+17+15,13+14+10',
129:'2,11+12+16+17+15,13+14+10',
130:'2,11+12+16+17+15,13+14+10',
131:'2,11+12+16+17+15,13+14+10',
132:'2,11+12+16+17+15,13+14+10',
133:'2,11+12+16+17+15,13+14+10',
134:'2,11+12+16+17+15,13+14',
135:'2,11+12+16+17+15,13+14',
136:'2,11+12+16+17+15,13+14+10',
138:'2,11+12+16+17+15,13+14',
139:'2,11+12+16+17+15,13+14',
140:'2,11+12+16+17+15,13+14+10',
141:'2,11+12+16+17+15,13+14+10',
142:'2,11+12+16+17+15,13+14+10',
144:'2,11+12+16+17+15,13+14+10',
145:'2,11+12+16+17+15,13+14',
146:'2,11+12+16+17+15,13+14+10',
147:'2,11+12+16+17+15,13+14+10',
148:'2,11+12+16+17+15,13+14+10',
149:'2,11+12+16+17+15,13+14+10',
150:'2,11+12+16+17+15,13+14',
151:'2,11+12+16+17+15,13+14+10',
155:'2,11+12+16+17+15,13+14+10',
156:'2,11+12+16+17+15,13+14+10',
157:'2,11+12+16+17+15,13+14+10',
158:'2,11+12+16+17+15,13+14',
160:'2,11+12+16+17+15,13+14,9',
162:'2,11+12+16+17+15,13+14+10,4,55,274',
164:'2,11+12+16+17+15,13+14',
168:'2,11+12+16+17+15,13+14+10',
169:'2,11+12+16+17+15,13+14+10',
171:'2,11+12+16+17+15,13+14',
172:'2,11+12+16+17+15,13+14',
173:'2,11+12+16+17+15,13+14+10',
174:'2,11+12+16+17+15,13+14+10',
175:'2,11+12+16+17+15,13+14+10',
176:'2,11+12+16+17+15,13+14+10',
177:'2,11+12+16+17+15,13+14+10',
178:'2,11+12+16+17+15,13+14+10',
179:'2,11+12+16+17+15,13+14+10',
180:'2,11+12+16+17+15,13+14+10',
181:'2,11+12+16+17+15,13+14+10',
182:'2,11+12+16+17+15,13+14+10',
183:'2,11+12+16+17+15,13+14+10',
184:'2,11+12+16+17+15,13+14+10',
185:'2,11+12+16+17+15,13+14+10',
186:'2,11+12+16+17+15,13+14+10',
187:'2,11+12+16+17+15,13+14,272+273,159,19',
188:'2,11+12+16+17+15,13+14',
189:'2,11+12+16+17+15,13+14',
190:'2,11+12+16+17+15,13+14',
191:'2,11+12+16+17+15,13+14+10',
192:'2,11+12+16+17+15,13+14',
197:'2,11+12+16+15,13+14,159+151+152,157,19',
200:'2,11+12+16+17+15,13+14+10',
201:'2,11+12+16+17+15,13+14+10',
202:'2,11+12+16+17+15,13+14',
203:'2,11+12+16+17+15,13+14+10',
204:'2,11+12+16+17+15,13+14+56+57+58+59',
205:'2,11+12+16+17+15,13+14',
206:'2,11+12+16+17+15,13+14',
207:'2,11+12+16+17+15,13+14',
208:'2,11+12+16+17+15,13+14+10',
209:'2,11+12+16+17+15,13+14+10',
210:'2,11+12+16+17+15,13+14+10',
211:'2,11+12+16+17+15,13+14+10',
212:'2,11+12+16+17+15,13+14+10',
213:'2,11+12+16+17+15,13+14+10',
214:'2,11+12+16+17+15,13+14+10',
215:'2,11+12+16+17+15,13+14+10',
216:'2,11+12+16+17+15,13+14+10',
217:'2,11+12+16+17+15,13+14+10,92+78+80',
218:'2,11+12+16+17+15,13+14,5,32+33+34,40+41',
219:'2,11+12+16+17+15,13+14+10',
220:'2,11+12+16+17+15,13+14+10',
221:'2,11+12+16+17+15,13+14',
222:'2,11+12+16+17+15,13+14+10',
223:'2,11+12+16+17+15,13+14+10,19,32+33+34,40+41,106+107',
225:'2,11+12+16+17+15,13+14+10',
227:'2,11+12+16+17+15,13+14,92+78+80',
228:'2,11+12+16+17+15,13+14+10',
229:'2,11+12+16+15,13+14,159+151+152,153,154,155,156,157,158,19,55,92+181+180+186+189',
231:'2,11+12+16+17+15,13+14+10',
232:'2,11+12+16+17+15,13+14',
233:'2,11+12+16+17+15,13+14+10',
235:'2,11+12+16+17+15,13+14+10',
237:'2,11+12+16+17+15,13+14+10,101+98+99+100,83,143,92+77+78+80',
239:'2,11+12+16+17+15,13+14,101+98+99,263+264,265,268',
240:'2,11+12+16+17+15,13+14+10,92+77+78+80+103+110',
241:'2,11+12+16+17+15,13+14,4,36,6,7+8+33+34+39,40+41',
242:'2,11+12+16+17+15,13+14,92+77+78+80',
243:'121+120,11+12+16+124+130+14+123+122,19,135,36,132,133+131,22,23,24+126+25+26+134+125+31,32+33+129,42+43+44+127,46+47+48+128',
248:'2,11+12+16+17+15,13+14+10,164+165+166+167,143,114',
249:'2,11+12+16+160+17+15,13+14,159+151+152+334,19,161+162+163',
250:'2,11+12+16+17+15,13+14,145+146+147+148',
252:'2,11+12+16+17+15,13+14,260,261,262',
254:'17',
264:'2,11+12+16+17+15,13+14,5,32+33+34,40+41',
274:'2,11+12+16+17+15,13+14,5,32+33+34,40+41',
284:'2,11+12+16+15,13+14,159+151+152,153,154,155,156,157,19,55,92+180+186+189',
294:'2,11+12+16+17+28+15,13+14+10,3,71,19,4,5,36,6,7+8,18,22,23,24+25+26+27+31,32+33+34+35,37+38+39,40+41,42+43+44+45,46+47+48+49',
304:'2,11+12+16+17+15,13+14,4,32+33+34,40+41',
324:'2,11+12+16+17+15,13+14+33+34',
334:'2,11+12+16+17+15',
344:'2,11+12+16+17+434',
354:'2,11+12+16+17+15',
364:'2,11+12+16+17+15',
374:'2,11+12+16+17+15',
384:'2,11+12+16+17+15',
394:'2,11+12+16+17+15',
404:'2,11+12+16+17+15',
414:'2,11+12+16+17+15',
424:'2,11+12+16+17+15',
434:'2,11+12+16+17+15',
444:'2,11+12+16+17+15',
454:'2,11+12+16+17+15',
464:'2,11+12+16+17+15',
474:'2,11+12+16+17+15',
484:'2,11+12+16+17+15',
494:'2,11+12+16+17+15',
504:'2,11+12+16+17+15',
514:'2,11+12+16+17+15',
524:'2,11+12+16+17+15',
534:'2,11+12+16+17+15',
544:'2,11+12+16+17+15',
554:'2,11+12+16+17+15',
564:'2,11+12+16+17+15',
574:'2,11+12+16+17+15',
584:'2,11+12+16+17+15',
594:'2,11+12+16+17+15',
604:'2,11+12+16+17+15',
614:'2,11+12+16+17+15',
624:'2,11+12+16+17+15',
634:'2,11+12+16+17+15',
644:'2,11+12+16+17+15',
654:'2,11+12+16+17+15',
664:'2,11+12+16+17+15',
674:'2,11+12+16+17+15',
684:'2,11+12+16+17+15',
694:'2,11+12+16+17+15',
704:'2,11+12+16+17+15',
714:'2,11+12+16+17+15',
724:'2,11+12+16+17+15',
734:'2,11+12+16+17+15',
744:'2,11+12+16+17+15',
754:'2,11+12+16+17+15',
764:'2,11+12+16+17+15,13+14+10,19,32+33+34,40+41',
774:'2,11+12+16+17+15,13+14',
784:'2,11+12+16+17+28+15,13+14,4,55+57+58+60+61+104+109,404,414+424,464,274',
794:'2,11+12+16+17+15,13+14,4,32+33+34,40+41,447',
804:'2,11+12+16+17+28+15,13+14,3,71,19,4,5,36,6,7+8,18,22,23+25+31,32+33+34,37+38,40+41',
814:'2+16',
824:'2,11+12+16+17+15,13+14,71,19,69+70,274,474',
834:'2+16',
844:'2+16',
854:'2+16',
864:'2+16',
874:'2+16',
884:'2+16',
894:'2+16',
904:'2,11+12+16+17+28+15+434,13+14+10,3,71,19,4,5,36,6,7+8,18,22,23,24+25+26+27+31,32+33+34+35,37+38+39,40+41,42+43+44+45,46+47+48+49',
914:'2,71,4,5,36,6',
924:'2,11+12+16+17+28+15+434,13+14+10,3,71,19,4,5,36,6,7+8,18,22,23,24+25+26+27+31,32+33+34+35,37+38+39,40+41,42+43+44+45,46+47+48+49,374',0:'' };
var formField = { 2:'<b>Select your residence state:</b><br /><select class="f_select" id="<2>_d" name="<2>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">State/Province</option><option class="head" value="null">----------</option><option  value="al">Alabama</option><option  value="ak">Alaska</option><option  value="az">Arizona</option><option  value="ar">Arkansas</option><option  value="ca">California</option><option  value="co">Colorado</option><option  value="ct">Connecticut</option><option  value="de">Delaware</option><option  value="dc">District of Columbia</option><option  value="fl">Florida</option><option  value="ga">Georgia</option><option  value="hi">Hawaii</option><option  value="id">Idaho</option><option  value="il">Illinois</option><option  value="in">Indiana</option><option  value="ia">Iowa</option><option  value="ks">Kansas</option><option  value="ky">Kentucky</option><option  value="la">Louisiana</option><option  value="me">Maine</option><option  value="md">Maryland</option><option  value="ma">Massachusetts</option><option  value="mi">Michigan</option><option  value="mn">Minnesota</option><option  value="ms">Mississippi</option><option  value="mo">Missouri</option><option  value="mt">Montana</option><option  value="ne">Nebraska</option><option  value="nv">Nevada</option><option  value="nh">New Hampshire</option><option  value="nj">New Jersey</option><option  value="nm">New Mexico</option><option  value="ny">New York</option><option  value="nc">North Carolina</option><option  value="nd">North Dakota</option><option  value="oh">Ohio</option><option  value="ok">Oklahoma</option><option  value="or">Oregon</option><option  value="pa">Pennsylvania</option><option  value="ri">Rhode Island</option><option  value="sc">South Carolina</option><option  value="sd">South Dakota</option><option  value="tn">Tennessee</option><option  value="tx">Texas</option><option  value="ut">Utah</option><option  value="vt">Vermont</option><option  value="va">Virginia</option><option  value="wa">Washington</option><option  value="wv">West Virginia</option><option  value="wi">Wisconsin</option><option  value="wy">Wyoming</option><option  value="ab">Alberta</option><option  value="bc">British Columbia</option><option  value="mb">Manitoba</option><option  value="nb">New Brunswick</option><option  value="nl">Newfoundland</option><option  value="nt">Northwest Territories</option><option  value="ns">Nova Scotia</option><option  value="nu">Nunavut</option><option  value="on">Ontario</option><option  value="pe">Prince Edward Island</option><option  value="qc">Quebec</option><option  value="sk">Saskatchewan</option><option  value="yt">Yukon Territory</option></select><br />',
3:'<br><b>Are you working and living in the US?</b><br /><select id="<3>_d" class="f_select" name="<3>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option class="head" value="null">------------</option><option value="no">No</option></select>',
4:'<br><b>Your <u>MONTHLY</u> income:</b><br />$<input type="text" class="f_text text" maxlength="4" size="4" id="<4>_d" name="<4>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="return filter(this, \'^[0-9]+$\')" />.00',
5:'<br><b>Do you have a bank account?</b><br /><select id="<5>_d" class="f_select" name="<5>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="checking" title="I have a checking account">I have a checking account</option><option class="head" value="null">------------</option><option value="savings" title="I only have a savings account">I only have a savings account</option><option class="head" value="null">------------</option><option value="no" title="I do not have a bank account">I do not have a bank account</option></select>',
6:'<br><b>How often are you being paid?</b><br /><select id="<6>_d" class="f_select" name="<6>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="weekly">Weekly</option><option value="bi-weekly">Every other week</option><option value="twice_monthly">Twice a month</option><option value="monthly">Monthly</option></select>',
7:'<br><b>When are your next 2 pay dates?</b> <a name=\'\' style=\'cursor:pointer; color: blue;\' onClick="alert(\'Click in the box below and use the calendar which will then become available.\');">( i )</a><br /><input type="text" class="f_text text" id="<7>_d" name="<7>" readonly="readonly" onClick="calOpen(this, \'mm-dd-yyyy\',\'second_pay_date\',\'pay_period\');" />',
8:'<input type="text" class="f_text text" id="<8>_d" name="<8>" readonly="readonly" onClick="calOpen(this, \'mm-dd-yyyy\');" />',
9:'<br><b>Approximate your total unsecured debt</b><br>(credit card or medical bills debt,<br>unsecured loans, etc.)<br /><select id="<9>_d" class="f_select" name="<9>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="20000">Over $20,000</option><option value="15000">$15,000 - $20,000</option><option value="10000">$10,000 - $15,000</option><option value="5000">$5,000 - $10,000</option><option value="1000">$1,000 - $5,000</option><option value="1000">Up to $1,000</option></select>',
10:'<br><b>Do you Own or Rent your home?</b><br /><select id="<10>_d" class="f_select" name="<10>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="own">Own</option><option class="head" value="null">------------</option><option value="rent">Rent</option></select>',
11:'<br><b>Your First Name</b><br /><input type="text" class="f_text text" id="<11>_d" name="<11>" value="" />',
12:'Last Name<br /><input type="text" class="f_text text" id="<12>_d" name="<12>" value="" />',
13:'<br><b>Your Address</b><br /><input type="text" class="f_text text" id="<13>_d" name="<13>" value="" />',
14:'City<br /><input type="text" class="f_text text" id="<14>_d" name="<14>" value="" />',
15:'Your ZIP code:<br /><input type="text" class="f_text text" id="<15>_d" name="<15>" value="" />',
16:'Email<br /><input type="text" class="f_text text" id="<16>_d" name="<16>" onBlur="return filter(this, \'^[a-zA-Z0-9_.-]+@[a-zA-Z0-9_.-]+\\\\.[a-zA-Z]+$\');" value="" />',
17:'Best # to be reached at now:<br /><input type="hidden" id="<17>_d" name="<17>" /><input type="text" class="f_text textPart autotab" id="home_phone_part1" name="xhome_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="home_phone_part2" name="xhome_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="home_phone_part3" name="xhome_phone" maxlength="4" size="4" />',
18:'<br><b>Up to what loan amount<br>would you like to receive?</b><br /><select id="<18>_d" class="f_select" name="<18>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="500">$500 or More</option><option class="head" value="null">----------</option><option value="500">Up to $500</option><option value="400">Up to $400</option><option value="300">Up to $300</option><option value="200">Up to $200</option><option value="100">Up to $100</option></select>',
19:'<br><b>What is the best time to be reached?</b><br /><select id="<19>_d" class="f_select" name="<19>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="anytime">Anytime</option><option value="morning">Morning</option><option value="afternoon">Afternoon</option><option value="evening">Evening</option></select>',
22:'<br><b>How long have you lived<br>at your current residence?</b><br /><input type="hidden" id="<22>_d" name="<22>" value="0" /><select class="f_select" id="months_at_residence_part1" name="ymonths_at_residence" onchange="numJoin(this);"><option selected value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select> Years <select class="f_select" id="months_at_residence_part2" name="mmonths_at_residence" onchange="numJoin(this);"><option selected value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option></select> Months ',
23:'<br><b>What is your main source of income?</b><br /><select id="<23>_d" class="f_select" name="<23>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="employment">Employment</option><option class="head" value="null">------------</option><option value="benefits" title="Benefits (social security, etc.)">Benefits (social security, etc.)</option></select>',
24:'<br><b>Your occupation:</b><br /><input type="text" class="f_text text" id="<24>_d" name="<24>" value="" />',
25:'Employer<br /><input type="text" class="f_text text" id="<25>_d" name="<25>" value="" />',
26:'Supervisor name<br /><input type="text" class="f_text text" id="<26>_d" name="<26>" value="" />',
27:'Supervisor phone<br /><input type="hidden" id="<27>_d" name="<27>" /><input type="text" class="f_text textPart autotab" id="supervisor_phone_part1" name="xsupervisor_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="supervisor_phone_part2" name="xsupervisor_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="supervisor_phone_part3" name="xsupervisor_phone" maxlength="4" size="4" />',
28:'Work or alternate phone:<br /><input type="hidden" id="<28>_d" name="<28>" /><input type="text" class="f_text textPart autotab" id="work_phone_part1" name="xwork_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="work_phone_part2" name="xwork_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="work_phone_part3" name="xwork_phone" maxlength="4" size="4" />',
31:'<br><b>How long have you been employed<br>with your current employer?</b><br /><input type="hidden" id="<31>_d" name="<31>" value="0" /><select class="f_select" id="months_employed_part1" name="ymonths_employed" onchange="numJoin(this);"><option selected value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select> Years <select class="f_select" id="months_employed_part2" name="mmonths_employed" onchange="numJoin(this);"><option selected value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option></select> Months ',
32:'<br><font style=\'color: #004080; font-weight:bold;\'>Should you accept your loan,<br>into what bank account<br> would you like to receive it?</font> <a name=\'\' style=\'cursor:pointer; color: blue;\' onClick="alert(\'At the bottom of your checks,\\nthe First Number is the Bank Routing Number,\\nthe Second Number is the Bank Account Number.\');">( i )</a><br><br><b>Your Bank Name:</b><br /><input type="text" class="f_text text" id="<32>_d" name="<32>" value="" />',
33:'Your Bank Account Number: <a href="https://www.leadpile.com/ezwebsys.com/shared/form/secureSite.html" style="cursor:pointer; color: blue;" target="secure-site" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">( i )</a><br /><input type="text" class="f_text text" maxlength="" size="" id="<33>_d" name="<33>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
34:'Bank Routing Number <a name=\'\' style=\'cursor:pointer; color: blue;\' onClick="alert(\'The Bank Routing Number is found at the bottom of your checks next to the Account Number.\');">( i )</a><br /><input type="text" class="f_text text" maxlength="" size="" id="<34>_d" name="<34>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
35:'Bank phone<br /><input type="hidden" id="<35>_d" name="<35>" /><input type="text" class="f_text textPart autotab" id="bank_phone_part1" name="xbank_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="bank_phone_part2" name="xbank_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="bank_phone_part3" name="xbank_phone" maxlength="4" size="4" />',
36:'<br><b>Do you have Direct Deposit?</b> <a name=\'\' style=\'cursor:pointer; color: blue;\' onClick="alert(\'Select YES if your paycheck is ELECTRONICALLY deposited into your bank account.\');">( i )</a><br /><select id="<36>_d" class="f_select" name="<36>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES</option><option class="head" value="null">---------</option><option value="no">No</option><option value="no">I don\'t know</option></select>',
37:'<br><b>Your driving license state:</b><br /><select class="f_select" id="<37>_d" name="<37>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">State/Province</option><option class="head" value="null">----------</option><option  value="al">Alabama</option><option  value="ak">Alaska</option><option  value="az">Arizona</option><option  value="ar">Arkansas</option><option  value="ca">California</option><option  value="co">Colorado</option><option  value="ct">Connecticut</option><option  value="de">Delaware</option><option  value="dc">District of Columbia</option><option  value="fl">Florida</option><option  value="ga">Georgia</option><option  value="hi">Hawaii</option><option  value="id">Idaho</option><option  value="il">Illinois</option><option  value="in">Indiana</option><option  value="ia">Iowa</option><option  value="ks">Kansas</option><option  value="ky">Kentucky</option><option  value="la">Louisiana</option><option  value="me">Maine</option><option  value="md">Maryland</option><option  value="ma">Massachusetts</option><option  value="mi">Michigan</option><option  value="mn">Minnesota</option><option  value="ms">Mississippi</option><option  value="mo">Missouri</option><option  value="mt">Montana</option><option  value="ne">Nebraska</option><option  value="nv">Nevada</option><option  value="nh">New Hampshire</option><option  value="nj">New Jersey</option><option  value="nm">New Mexico</option><option  value="ny">New York</option><option  value="nc">North Carolina</option><option  value="nd">North Dakota</option><option  value="oh">Ohio</option><option  value="ok">Oklahoma</option><option  value="or">Oregon</option><option  value="pa">Pennsylvania</option><option  value="ri">Rhode Island</option><option  value="sc">South Carolina</option><option  value="sd">South Dakota</option><option  value="tn">Tennessee</option><option  value="tx">Texas</option><option  value="ut">Utah</option><option  value="vt">Vermont</option><option  value="va">Virginia</option><option  value="wa">Washington</option><option  value="wv">West Virginia</option><option  value="wi">Wisconsin</option><option  value="wy">Wyoming</option><option  value="ab">Alberta</option><option  value="bc">British Columbia</option><option  value="mb">Manitoba</option><option  value="nb">New Brunswick</option><option  value="nl">Newfoundland</option><option  value="nt">Northwest Territories</option><option  value="ns">Nova Scotia</option><option  value="nu">Nunavut</option><option  value="on">Ontario</option><option  value="pe">Prince Edward Island</option><option  value="qc">Quebec</option><option  value="sk">Saskatchewan</option><option  value="yt">Yukon Territory</option></select><br />',
38:'Driving license number:<br /><input type="text" class="f_text text" id="<38>_d" name="<38>" value="" />',
39:'Your mother\'s maiden name: <a href="https://www.leadpile.com/ezwebsys.com/shared/form/secureSite.html" style="cursor:pointer; color: blue;" target="secure-site" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">( i )</a><br /><input type="text" class="f_text text" id="<39>_d" name="<39>" value="" />',
40:'<br><b>Your birthdate (mm/dd/yyyy):</b><br /><input type="hidden" id="<40>_d" name="<40>" /><input type="text" class="f_text textPart autotab" id="<40>_part1" name="xbirth_date" size="2" value="" onBlur="return filter(this, \'^(0[1-9]|1[0-2]|mm)$\');" /> / <input type="text" class="f_text textPart autotab" id="<40>_part2" name="xbirth_date" size="2" value="" onBlur="return filter(this, \'^(0[1-9]|[12][0-9]|3[01]|dd)$\');" /> / <input type="text" class="f_text textPart autotab" id="<40>_part3" name="xbirth_date" size="4" value="" onBlur="return filter(this, \'^([0-9]{4}|yyyy)$\');" />',
41:'Social Security number: <a href="https://www.leadpile.com/ezwebsys.com/shared/form/secureSite.html" style="cursor:pointer; color: blue;" target="secure-site" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">( i )</a><br /><input type="hidden" id="<41>_d" name="<41>" /><input type="text" class="f_text textPart autotab" id="social_security_number_part1" name="xsocial_security_number" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="social_security_number_part2" name="xsocial_security_number" maxlength="2" size="2" /> - <input type="text" class="f_text textPart autotab" id="social_security_number_part3" name="xsocial_security_number" maxlength="4" size="4" />',
42:'<br><b>Please give a personal reference</b><br>Full name:<br /><input type="text" class="f_text text" id="<42>_d" name="<42>" value="" />',
43:'<input type="text" class="f_text text" id="<43>_d" name="<43>" value="" />',
44:'Relationship<br /><select id="<44>_d" class="f_select" name="<44>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="parent">Parent</option><option value="sibling">Sibling</option><option value="fiend">Friend</option><option value="co-worker">Co-worker</option><option value="employer">Employer</option><option value="relative">Relative</option><option value="friend">Other</option></select>',
45:'Phone:<br /><input type="hidden" id="<45>_d" name="<45>" /><input type="text" class="f_text textPart autotab" id="reference_1_phone_part1" name="xreference_1_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="reference_1_phone_part2" name="xreference_1_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="reference_1_phone_part3" name="xreference_1_phone" maxlength="4" size="4" />',
46:'<br><b>Please give a <em>SECOND</em> personal reference</b><br>Full name:<br /><input type="text" class="f_text text" id="<46>_d" name="<46>" value="" />',
47:'<input type="text" class="f_text text" id="<47>_d" name="<47>" value="" />',
48:'Relationship<br /><select id="<48>_d" class="f_select" name="<48>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="parent">Parent</option><option value="sibling">Sibling</option><option value="fiend">Friend</option><option value="co-worker">Co-worker</option><option value="employer">Employer</option><option value="relative">Relative</option><option value="friend">Other</option></select>',
49:'Phone:<br /><input type="hidden" id="<49>_d" name="<49>" /><input type="text" class="f_text textPart autotab" id="reference_2_phone_part1" name="xreference_2_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="reference_2_phone_part2" name="xreference_2_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="reference_2_phone_part3" name="xreference_2_phone" maxlength="4" size="4" />',
55:'Your credit<br /><select id="<55>_d" class="f_select" name="<55>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="excellent">Excellent</option><option value="good">Good</option><option value="fair">Fair</option><option value="poor">Poor</option></select>',
56:'Your home type<br /><select id="<56>_d" class="f_select" name="<56>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="single_family_home">Single Family Home</option><option value="condominium">Condominium</option><option value="multi_family_home">Multi Family Home</option></select>',
57:'Approximate your home value<br />$<input type="text" class="f_text text" maxlength="3" size="3" id="<57>_d" name="<57>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="if (this.value < 30 && this.value != \'\') {alert(\'Minimum home value accepted is $30,000.00\');this.value=\'\';};return filter(this, \'^[0-9]+$\')" />,000.00',
58:'Approximate your mortgage balance<br />$<input type="text" class="f_text text" maxlength="3" size="3" id="<58>_d" name="<58>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="return filter(this, \'^[0-9]+$\')" />,000.00',
59:'Additional cash wanted<br />$<input type="text" class="f_text text" maxlength="3" size="3" id="<59>_d" name="<59>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="return filter(this, \'^[0-9]+$\')" />,000.00',
60:'Second Mortgage<br />$<input type="text" class="f_text text" maxlength="3" size="3" id="<60>_d" name="<60>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="return filter(this, \'^[0-9]+$\')" />,000.00',
61:'Your current interest rate<br>(round up to closest value)<br />%<input type="text" class="f_text text" maxlength="2" size="2" id="<61>_d" name="<61>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="if (this.value <= 0 && this.value != \'\') {alert(\'Please enter interest rate between 1 to 99\');this.value=\'\';};return filter(this, \'^[0-9]+$\')" />.00',
62:'Your monthly obligations excluding housing<br>(credit cards, child support, etc.)<br />$<input type="text" class="f_text text" maxlength="4" size="4" id="<62>_d" name="<62>" onkeyup="checkNumber(document.getElementById(this.id));" onBlur="return filter(this, \'^[0-9]+$\')" />.00',
65:'<br><b>Name one or more companies<br>that you owe money to:</b><br /><input type="text" class="f_text text" id="<65>_d" name="<65>" value="" />',
66:'Please briefly describe your case<br /><textarea class="f_textarea" cols=20 rows=10 id="<66>_d" name="<66>"></textarea>',
67:'<br><font style=\'color: brown; font-weight: bold\'>Congratulations!</font><br /><b>You are also PRE-APPROVED<br>for a new car loan.</b><br><i>(bad or no credit OK with credit check)</i><br /><select id="<67>_d" class="f_select" name="<67>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes" title="<font color=red>YES, get me approved!</font>"><font color=red>YES, get me approved!</font></option><option class="head" value="null">------------------------</option><option value="no">no</option></select>',
69:'Education Level<br /><select id="<69>_d" class="f_select" name="<69>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="high_school">High School</option><option value="ged">GED</option><option value="some_college">Some College</option><option value="associate">Associate\'s Degree</option><option value="bachelor">Bachelor\'s Degree</option><option value="master">Master\'s Degree</option><option value="doctorate">Doctorate</option></select>',
70:'Program of Interest<br /><select id="<70>_d" class="f_select" name="<70>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option class="head" value="null">Associate\'s Degrees</option><option class="head" value="null">----------</option><option value="a_avionics">Avionics</option><option value="a_airframe_powerplant">Airframe and Powerplant</option><option value="a_automotive_technology">Automotive Technology</option><option value="a_cad" title="CAD-Architectural Drafting">CAD-Architectural Drafting</option><option value="a_computer_network" title="Computer Network Engineering">Computer Network Engineering</option><option value="a_construction_management">Construction Management</option><option value="a_graphic_design" title="Graphic Design and Multimedia">Graphic Design and Multimedia</option><option value="a_hotel_restaurant_management" title="Hotel and Restaurant Management">Hotel and Restaurant Management</option><option value="a_hvac">HVAC/R</option><option value="a_information_technology">Information Technology</option><option value="a_medical_assisting">Medical Assisting</option><option value="a_paralegal">Paralegal</option><option value="a_surveying">Surveying</option><option class="head" value="null">----------</option><option class="head" value="null">Bachelor\'s Degree</option><option class="head" value="null">----------</option><option value="b_animation">Animation</option><option value="b_ba_accounting">BA - Accounting</option><option value="b_ba_marketing_sales">BA - Marketing/Sales</option><option value="b_financial_management" title="BA - Financial Management">BA - Financial Management</option><option value="b_ba_business_management">BA - Business Management</option><option value="b_ba_healthcare_management" title="BA - Healthcare Management">BA - Healthcare Management</option><option value="b_ba_marketing_management" title="BA - Marketing Management">BA - Marketing Management</option><option value="b_business_management">Business Management</option><option value="b_computer_network" title="Computer Network Management">Computer Network Management</option><option value="b_contruction_management">Construction Management</option><option value="b_criminal_justice">Criminal Justice</option><option value="b_e_business_management">E-Business Management</option><option value="b_fashion_merchandising">Fashion Merchandising</option><option value="b_game_art">Game Art and Design</option><option value="b_game_software_development" title="Game Software Development">Game Software Development</option><option class="head" value="null">----------</option><option class="head" value="null">Master\'s Degrees</option><option class="head" value="null">----------</option><option value="m_instruction">Instructional Technology</option><option value="m_information">Information Technology</option><option value="m_accounting">Accounting and Finance</option><option value="m_healthcare">Healthcare Management</option><option value="m_human_resources">Human Resources</option><option value="m_management">Management</option><option value="m_marketing">Marketing</option><option value="m_operations">Operations Management</option><option value="m_org_psych" title="Organizational Psychology">Organizational Psychology</option><option value="m_projects">Project Management</option><option value="m_international">International Business</option><option value="none">None of the Above</option></select>',
71:'<br><b>Are you</b>, or are you the dependent of someone <b>employed by a branch of the U.S. Military</b>?<br /><select id="<71>_d" class="f_select" name="<71>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="no">No, I am not</option><option class="head" value="null">---------------</option><option value="yes">yes</option></select>',
77:'<font style=\'color: #004080; font-weight: bold\'>My Car Insurance</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_car_insurance_bonus_d" name="<77>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_car_insurance_bonus_d" name="<77>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
78:'<font style=\'color: #004080; font-weight: bold\'>Life Insurance Quote</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_life_insurance_bonus_d" name="<78>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_life_insurance_bonus_d" name="<78>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
79:'<font style=\'color: #004080; font-weight: bold\'>My Student Loan Debt of over $10,000</font><br>(must be out of school)<br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_student_loan_consolidation_bonus_d" name="<79>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_student_loan_consolidation_bonus_d" name="<79>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
80:'<font style=\'color: #004080; font-weight: bold\'>Home Business Opportunity</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_home_based_business_bonus_d" name="<80>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_home_based_business_bonus_d" name="<80>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
82:'Student Loan Debt<br /><input type="text" class="f_text text" maxlength="" size="" id="<82>_d" name="<82>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
83:'<font style=\'color: brown; font-weight: bold\'>Why Rent when you can OWN?</font><br />Learn how you can own your own home<br><u>for the same money</u> you pay in rent.<br><b>No money down!</b><br><i>(bad credit OK)</i><br /><select id="<83>_d" class="f_select" name="<83>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES, I\'d rather OWN</option><option class="head" value="null">-----------</option><option value="no">no, I like rent</option></select>',
92:'<br><b>Based on your information<br>we can help you save money!</b><br><font style=\'color: brown; font-weight: bold\'>YES, I would like to save up to 60%<br>on the following:</font><br /><br /><input type="hidden" id="<92>_d" name="<92>" value="" />',
93:'What type of loans do you currently have?<br /><select id="<93>_d" class="f_select" name="<93>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="federal">Federal</option><option value="private">Private</option></select>',
94:'How many loans do you currently have?<br /><input type="text" class="f_text text" maxlength="" size="" id="<94>_d" name="<94>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
95:'Are you in default on any student loans?<br /><select id="<95>_d" class="f_select" name="<95>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="no">No</option></select>',
96:'Do you have any student loans already consolidated?<br /><select id="<96>_d" class="f_select" name="<96>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="no">No</option></select>',
97:'Have you graduated or will you graduate in the next 6 months?<br /><select id="<97>_d" class="f_select" name="<97>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="no">No</option></select>',
98:'Select a Make:<br /><select id="<98>_d" class="f_select" name="<98>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="Acura">Acura</option><option value="AlfaRomeo">Alfa Romeo</option><option value="AMC">AMC</option><option value="AstonMartin">Aston Martin</option><option value="Audi">Audi</option><option value="Avanti">Avanti</option><option value="Bentley">Bentley</option><option value="BMW">BMW</option><option value="Buick">Buick</option><option value="Cadillac">Cadillac</option><option value="Chevrolet">Chevrolet</option><option value="Chrysler">Chrysler</option><option value="Daewoo">Daewoo</option><option value="Daihatsu">Daihatsu</option><option value="Datsun">Datsun</option><option value="DeLorean">DeLorean</option><option value="Dodge">Dodge</option><option value="Eagle">Eagle</option><option value="Ferrari">Ferrari</option><option value="Fiat">Fiat</option><option value="Ford">Ford</option><option value="Geo">Geo</option><option value="GMC">GMC</option><option value="Honda">Honda</option><option value="HUMMER">HUMMER</option><option value="Hyundai">Hyundai</option><option value="Infiniti">Infiniti</option><option value="Isuzu">Isuzu</option><option value="Jaguar">Jaguar</option><option value="Jeep">Jeep</option><option value="Kia">Kia</option><option value="Lamborghini">Lamborghini</option><option value="Lancia">Lancia</option><option value="LandRover">Land Rover</option><option value="Lexus">Lexus</option><option value="Lincoln">Lincoln</option><option value="Lotus">Lotus</option><option value="Maserati">Maserati</option><option value="Maybach">Maybach</option><option value="Mazda">Mazda</option><option value="Mercedes-Benz">Mercedes-Benz</option><option value="Mercury">Mercury</option><option value="Merkur">Merkur</option><option value="MINI">MINI</option><option value="Mitsubishi">Mitsubishi</option><option value="Nissan">Nissan</option><option value="Oldsmobile">Oldsmobile</option><option value="Peugeot">Peugeot</option><option value="Plymouth">Plymouth</option><option value="Pontiac">Pontiac</option><option value="Porsche">Porsche</option><option value="Renault">Renault</option><option value="Rolls-Royce">Rolls-Royce</option><option value="Saab">Saab</option><option value="Saturn">Saturn</option><option value="Scion">Scion</option><option value="Sterling">Sterling</option><option value="Subaru">Subaru</option><option value="Suzuki">Suzuki</option><option value="Toyota">Toyota</option><option value="Triumph">Triumph</option><option value="Volkswagen">Volkswagen</option><option value="Volvo">Volvo</option><option value="Yugo">Yugo</option></select>',
99:'Model, type or "any":<br /><input type="text" class="f_text text" id="<99>_d" name="<99>" value="" />',
100:'I consider buying in the next:<br /><select id="<100>_d" class="f_select" name="<100>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="2">48 Hours</option><option value="7">7 Days</option><option value="30">30 Days</option><option value="90">90 Days</option></select>',
101:'<div nowrap style="width:125px; text-align:left;"><input  class="f_radio" type="radio" value="new" id="new_auto_type_d" name="<101>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">Brand New Car</input><br /><input  class="f_radio" type="radio" value="used" id="used_auto_type_d" name="<101>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">Pre-Owned Car</input><br /></div>',
102:'<font style=\'color: brown; font-weight: bold\'>Are you in the market for a<br>New or Pre-Owned vehicle?</font><br />Get Free Quotes<br>from dealers in your area<br /><select id="<102>_d" class="f_select" name="<102>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes" title="YES, I may consider a new car">YES, I may consider a new car</option><option class="head" value="null">-----------</option><option value="no">No</option></select>',
103:'<font style=\'color: #004080; font-weight: bold\'>Health Insurance Quote</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_health_insurance_bonus_d" name="<103>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_health_insurance_bonus_d" name="<103>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
104:'<input type="hidden" class="text" id="<104>_d" name="<104>" value="" />',
105:'<br><font style=\'color: brown; font-weight: bold\'>FOR A LIMITED TIME:</font><br /><b>FREE - No Obligation Auto Loan Quotes</b><br>No one is turned down!<br>Receive a quote today!<br /><i>(bad or no credit OK with credit check)</i><br /><select id="<105>_d" class="f_select" name="<105>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes" title="<font color=red>YES (recommended)</font>"><font color=red>YES (recommended)</font></option><option class="head" value="null">------------------------</option><option value="no">no</option></select>',
106:'<br><font style="color: brown; font-weight: bold;">Would you ALSO like a Prepaid MasterCard&reg; Card with $2,500 Max Value?</font><br><font size="-1">SterlingVIP gives you the Purchasing Power you need. Easy Application! <br>Your Basic Information is Already on File! Simply choose YES to apply!</font><br><br><img src="https://www.leadpile.com/leadpile/images01/bonus_questions/sterling-vip.gif"><br><br /><br /><select id="<106>_d" class="f_select" name="<106>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES, SEND ME THE CARD</option><option class="head" value="null">-----------</option><option value="no">No, I don\'t want it</option></select>',
107:'<input type="hidden" class="text" id="<107>_d" name="<107>" value="" /><p><table bgcolor="#F4F4F4" width="200" border=1><tr><td><iframe width="200" height="200" src="https://esuperoffers.com/new/monterey/privacy-monterey.asp?from=sca&bank=1" align="justify"></iframe><p style="text-align: left; font-family: Times New Roman; width=200; font-size: 11pt;"><b>By selecting YES above,  you understand: STERLINGVIP, not Monterey County Bank, will electronically debit your checking account for our one-time <font style="font-size: 14pt;">$49.95</font> Application and Processing fee.</b><br><br><font style="color:black; font-size: 10pt;">This is a one-time fee will appear on your banking statement from Sterling VIP for your Sterling VIP Prepaid MasterCard&reg; Card. See Terms and Conditions for Card usage fees. A monthly maintenance fee of <font style="font-size: 14pt;"><b>$6.95</b></font> will be assessed and deducted from your card balance and NOT from your bank account. By clicking "Yes" you agree to the <a href="https://servedoc.com/new//monterey/privacy-monterey.asp?from=sca&bank=1" style="color:blue; text-decoration:underline; font-size: 11pt;" target="privacy-monterey" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">Privacy Policy</a> and <a href="https://servedoc.com/new/monterey/terms-split_4900_text.asp" style="color:blue; text-decoration:underline; font-size: 11pt;" target="terms-monterey" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">Terms & Conditions</a> as stated, you certify that you are at least 18 years old, and that this is not a credit card and no credit is extended and that you may receive special email offers from marketing partners, including, but not limited to credit weekly. <br><br>This Prepaid MasterCard&reg; Card is issued by Monterey County Bank under license from MasterCard&reg; International. I have read, understood and agree to the Privacy Policy and Terms & Conditions and that this is not a credit card and no credit is extended and that I may receive special email offers from marketing partners, including, but not limited to credit weekly. This Prepaid MasterCard Card is issued by Monterey County Bank under license from MasterCard&reg; International. Monterey County Bank is NOT AFFILIATED WITH, NOR DOES IT ENDORSE ANY OTHER OFFER ON THIS PAGE EXCEPT THE PREPAID DEBIT CARD.</font></p></table></p>',
109:'<input type="hidden" class="text" id="<109>_d" name="<109>" value="" />',
110:'<font style=\'color: #004080; font-weight: bold\'>Home Improvement</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_home_improvement_bonus_d" name="<110>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_home_improvement_bonus_d" name="<110>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
113:'Select a Home Improvement Service<br>that best describes your needs:<br /><select id="<113>_d" class="f_select" name="<113>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="additions_major">Additions - Major</option><option value="additions_minor">Additions - Minor</option><option value="architectural_and_plan_designs" title="Architectural and Plan Designs">Architectural and Plan Designs</option><option value="basement_remodeling">Basement Remodeling</option><option value="bath_remodeling_major">Bath Remodeling - Major</option><option value="bath_remodeling_minor">Bath Remodeling - Minor </option><option value="cabinet_install">Cabinet - Install</option><option value="cabinet_refacing">Cabinet - Refacing</option><option value="counter_tops_install">Counter Tops - Install</option><option value="custom_homes_w__lot">Custom Homes w/ Lot</option><option value="custom_homes_w_o_lot">Custom Homes w/o Lot</option><option value="deck_new">Deck - New</option><option value="deck_repair_modification" title="Deck - Repair/Modification">Deck - Repair/Modification</option><option value="fence_wood">Fence - Wood</option><option value="flooring_hardwood_install" title="Flooring - Hardwood Install">Flooring - Hardwood Install</option><option value="flooring_hardwood_refinishing" title="Flooring - Hardwood Refinishing">Flooring - Hardwood Refinishing</option><option value="flooring_laminate">Flooring - Laminate</option><option value="framing">Framing</option><option value="kitchen_remodeling_major" title="Kitchen Remodeling - Major">Kitchen Remodeling - Major</option><option value="kitchen_remodeling_minor" title="Kitchen Remodeling - Minor">Kitchen Remodeling - Minor</option><option value="marble_and_granite">Marble and Granite</option><option value="painting_exterior">Painting - Exterior</option><option value="painting_interior">Painting - Interior</option><option value="painting_minor">Painting - Minor</option><option value="remodeling_major">Remodeling - Major</option><option value="remodeling_minor">Remodeling - Minor</option><option value="roofing_cedar_shake">Roofing - Cedar Shake</option><option value="roofing_composite">Roofing - Composite</option><option value="roofing_metal">Roofing - Metal</option><option value="roofing_tar_torchdown">Roofing - Tar/Torch-down</option><option value="roofing_tile">Roofing - Tile</option><option value="siding_aluminum">Siding - Aluminum</option><option value="siding_composite_wood">Siding - Composite/Wood</option><option value="siding_vinyl">Siding - Vinyl</option><option value="sunrooms">Sunrooms</option><option value="swimming_pools">Swimming Pools</option><option value="tile_exterior">Tile - Exterior</option><option value="tile_interior">Tile - Interior</option><option value="window_install_major">Window Install - Major</option><option value="window_install_minor">Window Install - Minor</option></select>',
114:'<br><font style=\'color: brown; font-weight: bold\'>Are you overwhelmed with debt<br>and unable to pay your bills?</font><br><br><font style=\'color: #004080; font-weight: bold\'>Learn how <br>BANKRUPTCY CAN HELP<br> <u>keep what you have</u><br>and reduce or <u>eliminate</u> your debt!</font><br /><select id="<114>_d" class="f_select" name="<114>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes, please have a local</option><option value="yes">bankruptcy attorney</option><option value="yes">contact me ASAP</option><option class="head" value="null">-----------</option><option value="no">no</option></select>',
115:'moving date:<br /><input type="text" class="f_text text" id="<115>_d" name="<115>" readonly="readonly" onClick="calOpen(this, \'mm-dd-yyyy\');" />',
116:'move to state:<br /><select class="f_select" id="<116>_d" name="<116>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">State/Province</option><option class="head" value="null">----------</option><option  value="al">Alabama</option><option  value="ak">Alaska</option><option  value="az">Arizona</option><option  value="ar">Arkansas</option><option  value="ca">California</option><option  value="co">Colorado</option><option  value="ct">Connecticut</option><option  value="de">Delaware</option><option  value="dc">District of Columbia</option><option  value="fl">Florida</option><option  value="ga">Georgia</option><option  value="hi">Hawaii</option><option  value="id">Idaho</option><option  value="il">Illinois</option><option  value="in">Indiana</option><option  value="ia">Iowa</option><option  value="ks">Kansas</option><option  value="ky">Kentucky</option><option  value="la">Louisiana</option><option  value="me">Maine</option><option  value="md">Maryland</option><option  value="ma">Massachusetts</option><option  value="mi">Michigan</option><option  value="mn">Minnesota</option><option  value="ms">Mississippi</option><option  value="mo">Missouri</option><option  value="mt">Montana</option><option  value="ne">Nebraska</option><option  value="nv">Nevada</option><option  value="nh">New Hampshire</option><option  value="nj">New Jersey</option><option  value="nm">New Mexico</option><option  value="ny">New York</option><option  value="nc">North Carolina</option><option  value="nd">North Dakota</option><option  value="oh">Ohio</option><option  value="ok">Oklahoma</option><option  value="or">Oregon</option><option  value="pa">Pennsylvania</option><option  value="ri">Rhode Island</option><option  value="sc">South Carolina</option><option  value="sd">South Dakota</option><option  value="tn">Tennessee</option><option  value="tx">Texas</option><option  value="ut">Utah</option><option  value="vt">Vermont</option><option  value="va">Virginia</option><option  value="wa">Washington</option><option  value="wv">West Virginia</option><option  value="wi">Wisconsin</option><option  value="wy">Wyoming</option><option  value="ab">Alberta</option><option  value="bc">British Columbia</option><option  value="mb">Manitoba</option><option  value="nb">New Brunswick</option><option  value="nl">Newfoundland</option><option  value="nt">Northwest Territories</option><option  value="ns">Nova Scotia</option><option  value="nu">Nunavut</option><option  value="on">Ontario</option><option  value="pe">Prince Edward Island</option><option  value="qc">Quebec</option><option  value="sk">Saskatchewan</option><option  value="yt">Yukon Territory</option></select><br />',
117:'moving to city:<br /><input type="text" class="f_text text" id="<117>_d" name="<117>" value="" />',
118:'move size:<br /><select id="<118>_d" class="f_select" name="<118>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="small_studio">small studio</option><option value="large_studio">large studio</option><option value="one_bdr_apt">1 bdr apt</option><option value="two_bdr_apt">2 bdr apt</option><option value="three_bdr_apt">3  bdr apt</option><option value="two_bdr_house">2 bdr house</option><option value="three_bdr_house">3 bdr house</option><option value="four_bdr_house">4 bdr house</option><option value="five_bdr_house">5  bdr house</option><option value="table_chairs_only">table/chairs only</option><option value="dining_set_only">dining set only</option></select>',
119:'<font style=\'color: #004080; font-weight: bold\'>Home Security System</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_home_security_system_bonus_d" name="<119>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style=\'color:brown; font-weight:bold\'>YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_home_security_system_bonus_d" name="<119>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
120:'<input type="hidden" class="text" id="<120>_d" name="<120>" value="" /><p>As a condition of extending credit, some lenders you may be matched with may run a credit check from a major credit reporting bureau.</p>',
121:'Please select one:<br /><select id="<121>_d" class="f_select" name="<121>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes,</option><option value="yes">I read the terms of use</option><option value=" yes">and the privacy policy</option></select>',
122:'House Number/Name<br /><input type="text" class="f_text text" id="<122>_d" name="<122>" value="" />',
123:'Street Name<br /><input type="text" class="f_text text" id="<123>_d" name="<123>" value="" />',
124:'Phone Number<br>Ex: 0115557777<br /><input type="text" class="f_text text" id="<124>_d" name="<124>" onBlur="return filter(this, \'^0[0-9]{10}$\');" value="" />',
125:'Work Phone<br>Ex: 0115557777<br /><input type="text" class="f_text text" id="<125>_d" name="<125>" onBlur="return filter(this, \'^0[0-9]{10}$\');" value="" />',
126:'Company Department<br /><input type="text" class="f_text text" id="<126>_d" name="<126>" value="" />',
127:'Phone:<br>Ex: 0115557777<br /><input type="text" class="f_text text" id="<127>_d" name="<127>" onBlur="return filter(this, \'^0[0-9]{10}$\');" value="" />',
128:'Phone:<br>Ex: 0115557777<br /><input type="text" class="f_text text" id="<128>_d" name="<128>" onBlur="return filter(this, \'^0[0-9]{10}$\');" value="" />',
129:'Sort Code<br>Ex: 112233<br /><input type="text" class="f_text text" id="<129>_d" name="<129>" onBlur="return filter(this, \'^0[0-9]{6}$\');" value="" />',
130:'Postcode<br>Ex: AA9A 9AA<br /><input type="text" class="f_text text" id="<130>_d" name="<130>" onBlur="return filter(this, \'^[a-z]{1,2}[0-9][a-z0-9]? [0-9][a-z]{2}$\');" value="" />',
131:'<input type="text" class="f_text text" id="<131>_d" name="<131>" readonly="readonly" onClick="calOpen(this, \'dd-mm-yyyy\');" />',
132:'Pay Period<br /><select id="<132>_d" class="f_select" name="<132>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="weekly">Weekly</option><option value="four_weekly">Four Weekly</option><option value="last_working_day_of_month" title="Last Working Day of Month">Last Working Day of Month</option><option value="specific_day_of_month">Specific Day of Month</option><option value="last_monday_of_month">Last Monday of Month</option><option value="last_tuesday_of_month">Last Tuesday of Month</option><option value="last_wednesday_of_month">Last Wednesday of Month</option><option value="last_thursday_of_month">Last Thursday of Month</option><option value="last_friday_of_month">Last Friday of Month</option><option value="other">Other</option></select>',
133:'When are your next 2 pay dates (dd-mm-yyyy)<br /><input type="text" class="f_text text" id="<133>_d" name="<133>" readonly="readonly" onClick="calOpen(this, \'dd-mm-yyyy\');" />',
134:'Supervisor Phone<br /><input type="text" class="f_text text" id="<134>_d" name="<134>" onBlur="return filter(this, \'^0[0-9]{10}$\');" value="" />',
135:'Your <b>monthly</b> income (in &pound;)<br /><input type="text" class="f_text text" maxlength="" size="" id="<135>_d" name="<135>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
143:'As a homeowner,<br>you qualify for MORE CASH:<br /><select id="<143>_d" class="f_select" name="<143>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes, I want more cash</option><option class="head" value="null">-------------</option><option value="no" title="no, I don\'t want more cash">no, I don\'t want more cash</option></select>',
145:'Do you want to collect from other businesses, or individual consumers?<br /><select id="<145>_d" class="f_select" name="<145>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="business">Businesses Only</option><option value="individual">Individuals Only</option><option value="both">Both</option></select>',
146:'How much money are you currently looking to collect?<br /><select id="<146>_d" class="f_select" name="<146>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="500">$500 - 1,000</option><option value="1000">$1,000 - 5,000</option><option value="5000">$5,000 - 10,000</option><option value="10,000">$10,000 - 50,000</option><option value="50000">$50,000 - 100,000</option><option value="100000">$100,000 - 500,000</option><option value="500000">$500,000 - 1,000,000</option><option value="1000000">$1,000,000 </option></select>',
147:'How many individual accounts are you looking to collect on?<br /><select id="<147>_d" class="f_select" name="<147>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="1">1</option><option value="2">2-5</option><option value="6">6-10</option><option value="11">11-25</option><option value="26">26-49</option><option value="50">50 </option></select>',
148:'How long have the accounts been outstanding?<br /><select id="<148>_d" class="f_select" name="<148>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="1">Less than 2 months</option><option value="2">2-4 months</option><option value="4">4-6 months</option><option value="6">6-12 months</option><option value="12">More than 1 year</option><option value="24">More than 2 years</option></select>',
149:'<b>OR</b><br /><input type="checkbox" id="<149>_d" name="<149>" value="" /> Provide Later',
151:'Your Business Type:<br /><select id="<151>_d" class="f_select" name="<151>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="agriculture">Agriculture</option><option value="banking">Banking</option><option value="bar-club">Bar/Club</option><option value="business_services">Business Services</option><option value="construction">Construction</option><option value="convenience_store">Convenience Store</option><option value="ecommerce">Ecommerce</option><option value="electronics">Electronics</option><option value="export">Export</option><option value="food-beverage">Food/Beverage</option><option value="gas_station">Gas Station</option><option value="government">Government</option><option value="grocery Store">Grocery Store</option><option value="healthcare">HealthCare</option><option value="high_risk_merchant">High Risk Merchant</option><option value="insurance">Insurance</option><option value="internet">Internet</option><option value="lodging">Lodging</option><option value="manufacturing">Manufacturing</option><option value="media">Media</option><option value="medical">Medical</option><option value="office_building">Office Building</option><option value="phone-mail">Phone/Mail</option><option value="restaurant">Restaurant</option><option value="retail_store">Retail Store</option><option value="school">School</option><option value="shipping">Shipping</option><option value="telecommunication">Telecommunication</option><option value="transportation">Transportation</option><option value="university">University</option><option value="utilities">Utilities</option><option value="retail_store">OTHER</option></select>',
152:'Business Phone<br /><input type="hidden" id="<152>_d" name="<152>" /><input type="text" class="f_text textPart autotab" id="business_phone_part1" name="xbusiness_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="business_phone_part2" name="xbusiness_phone" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="business_phone_part3" name="xbusiness_phone" maxlength="4" size="4" />',
153:'Have you ever been turned down for a business loan?<br /><select id="<153>_d" class="f_select" name="<153>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="no">No</option><option class="head" value="null">-----------</option><option value="yes">Yes</option></select>',
154:'Business loan amount<br /><select id="<154>_d" class="f_select" name="<154>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="5000">Up to $5,000</option><option value="10000">Up to $10,000</option><option value="20000">Up to $20,000</option><option value="30000">Up to $30,000</option><option value="40000">Up to $40,000</option><option value="50000">$50,000 or more</option></select>',
155:'Do you accept credit cards?<br /><select id="<155>_d" class="f_select" name="<155>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option class="head" value="null">-----------</option><option value="no">No</option></select>',
156:'Monthly credit card volume<br /><select id="<156>_d" class="f_select" name="<156>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="5000">Up to $5,000</option><option value="10000">Up to $10,000</option><option value="20000">Up to $20,000</option><option value="30000">Up to $30,000</option><option value="40000">Up to $40,000</option><option value="50000">$50,000 or more</option></select>',
157:'Time in business<br /><select id="<157>_d" class="f_select" name="<157>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="6">0-6 months</option><option value="12">6-12 months</option><option value="24">1 - 2 years</option><option value="36">2 - 3 years</option><option value="48">3 or more years</option></select>',
158:'Are you buying a business?<br /><select id="<158>_d" class="f_select" name="<158>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="no">No</option><option class="head" value="null">--------</option><option value="yes">Yes</option></select>',
159:'Business name<br /><input type="text" class="f_text text" id="<159>_d" name="<159>" value="" />',
160:'Your job title<br /><input type="text" class="f_text text" id="<160>_d" name="<160>" value="" />',
161:'Years in Business<br /><select id="<161>_d" class="f_select" name="<161>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="2">Less than 2 years</option><option value="3">2 years or more</option></select>',
162:'How much will your equipment cost?<br /><select id="<162>_d" class="f_select" name="<162>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="4999">Less than $4,999</option><option value="5000">$5,000 - 7,499</option><option value="7500">$7,500 - 24,999</option><option value="25000">$25,000 - 49,999</option><option value="50000">$50,000 - 99,999</option><option value="100000">$100,000 - 249,999</option><option value="250000">$250,000 - 499,999</option><option value="500000">$500,000 - 999,999</option><option value="1000000">$1,000,000 - 1,999,999</option><option value="2000000">$2,000,000 </option></select>',
163:'When do you want to take the lease?<br /><select id="<163>_d" class="f_select" name="<163>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="1">Now</option><option value="30">30 day</option><option value="60">60 days</option><option value="90">90 days</option><option value="91">More than 90 days</option></select>',
164:'Years Married<br /><input type="text" class="f_text text" maxlength="2" size="2" id="<164>_d" name="<164>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
165:'Number of Children<br>( 0 if none )<br /><input type="text" class="f_text text" maxlength="2" size="2" id="<165>_d" name="<165>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
166:'Reason for Divorce<br /><select id="<166>_d" class="f_select" name="<166>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="infidelity">Infidelity</option><option value="medical">Medical</option><option value="differences" title="Irreconcilable Differences">Irreconcilable Differences</option><option value="other">Other</option></select>',
167:'Are you and your spouse in agreement about the divorce details? (divorce <b>un</b>contested)<br /><select id="<167>_d" class="f_select" name="<167>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option class="head" value="null">---------</option><option value="no">No</option></select>',
180:'<br><font style="color: #004080; font-weight: bold">Credit Card Processing</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_credit_card_processing_bonus_d" name="<180>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style="color:brown; font-weight:bold">YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_credit_card_processing_bonus_d" name="<180>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
181:'<font style="color: #004080; font-weight: bold">Equipment Leasing</font><br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_equipment_leasing_bonus_d" name="<181>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style="color:brown; font-weight:bold">YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_equipment_leasing_bonus_d" name="<181>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
186:'<br><font style="color: #004080; font-weight: bold">Voice Over IP (VOIP)</font><br>Save 60% on telephone costs.<br>Free VoIP Buyers Guide from VOIP-News<br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_voip_bonus_d" name="<186>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style="color:brown; font-weight:bold">YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_voip_bonus_d" name="<186>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
189:'<br><font style="color: #004080; font-weight: bold">Web Hosting</font><br>Save up to 60%<br>Free Hosting Guide available<br /><div align="center"><table class="form_container"><tr><td><input  class="f_radio" type="radio" value="yes" id="yes_web_hosting_bonus_d" name="<189>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><font style="color:brown; font-weight:bold">YES</font></input></td><td><input  class="f_radio" type="radio" value="no" id="no_web_hosting_bonus_d" name="<189>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}">no</input></td></tr></table></div>',
242:'ZIP code of house being sold<br /><input type="text" class="f_text text" id="<242>_d" name="<242>" value="" />',
243:'How soon do you want to sell?<br /><select id="<243>_d" class="f_select" name="<243>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="1">Immediately</option><option value="6">6 Months</option><option value="7">7-12 Months</option><option value="13">More than 12 Months</option></select>',
244:'Is the property listed with a Realtor?<br /><select id="<244>_d" class="f_select" name="<244>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="no">No</option></select>',
245:'Number of Bedrooms<br /><input type="text" class="f_text text" maxlength="" size="" id="<245>_d" name="<245>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
246:'Number of Bathrooms<br /><input type="text" class="f_text text" maxlength="" size="" id="<246>_d" name="<246>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
247:'Reason for Selling<br /><textarea class="f_textarea" cols=20 rows=10 id="<247>_d" name="<247>"></textarea>',
248:'Asking Price<br /><input type="text" class="f_text text" maxlength="" size="" id="<248>_d" name="<248>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
260:'Tax Type<br /><select id="<260>_d" class="f_select" name="<260>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="personal">Personal</option><option value="business">Business</option><option value="state">State</option><option value="federal">Federal</option></select>',
261:'Have you filed yet?<br /><select id="<261>_d" class="f_select" name="<261>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="no">No</option></select>',
262:'Tax Debt Amount<br /><select id="<262>_d" class="f_select" name="<262>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="52500">$50,000 or more</option><option value="47500">$45,000 - $49,999</option><option value="42500">$40,000 - $44,999</option><option value="37500">$35,000 - $39,999</option><option value="32500">$30,000 - $34,999</option><option value="27500">$25,000 - $29,999</option><option value="22500">$20,000 - $24,999</option><option value="17500">$15,000 - $19,999</option><option value="12500">$10,000 - $14,999</option><option value="7500">$5,000 - $9,999</option><option value="2500">up to $5,000</option></select>',
263:'Vehicle Year<br /><input type="text" class="f_text text" maxlength="" size="" id="<263>_d" name="<263>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
264:'Vehicle Mileage<br /><input type="text" class="f_text text" maxlength="" size="" id="<264>_d" name="<264>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
265:'Gas or Diesel<br /><select id="<265>_d" class="f_select" name="<265>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="gas">Gas</option><option value="diesel">Diesel</option></select>',
268:'Is the vehicle all wheel or four wheel drive?<br /><select id="<268>_d" class="f_select" name="<268>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="no">No</option></select>',
269:'Do you have a Merchant Account?<br /><select id="<269>_d" class="f_select" name="<269>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option class="head" value="null">-----------</option><option value="no">No</option></select>',
270:'How many VOIP users will you have?<br /><select id="<270>_d" class="f_select" name="<270>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="5">5-10</option><option value="11">11-20</option><option value="21">21-50</option><option value="51">51-100</option><option value="101">101-200</option><option value="201">201 </option></select>',
271:'When do you need it by?<br /><select id="<271>_d" class="f_select" name="<271>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="14">Within 2 weeks</option><option value="30">Within 1 month</option><option value="60">Within 2 months</option><option value="90">Within 3 months</option><option value="180">Within 6 months</option><option value="360">6 Months or more</option></select>',
272:'What type of website do you need?<br /><select id="<272>_d" class="f_select" name="<272>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="b2b" title="Business to Business (B2B)">Business to Business (B2B)</option><option value="b2c" title="Business to Consumer (B2C)">Business to Consumer (B2C)</option></select>',
273:'What is your budget for this project?<br /><select id="<273>_d" class="f_select" name="<273>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="500">under $500</option><option value="3000">$500 - $3,000</option><option value="5000">$3,000 - $5,000</option><option value="10000">$5000 - $10,000</option><option value="20000">$10,000 - $20,000</option><option value="40000">$20,000 - $40,000</option><option value="75000">$40,000 - $75,000</option><option value="100000">$75,000 - $100,000</option><option value="100001">100,000 </option></select>',
274:'<br>More than $10,000 in <u>past due</u> bills?<br><b>- Free debt settlement advice -<br>Settle for less than you owe!</b><br>(when late 30 days or more)<br /><select id="<274>_d" class="f_select" name="<274>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">Yes</option><option value="yes" title="I am late 30 days or more">I am late 30 days or more</option><option value="yes">on over $10,000 in bills</option><option class="head" value="null">------</option><option value="no">no</option></select>',
314:'<br><b>Have you filed for bankruptcy<br>in the past 7 years?</b><br /><select id="<314>_d" class="f_select" name="<314>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="no">NO</option><option class="head" value="null">------</option><option value="yes">Yes, I have filed</option></select>',
324:'<br><b>Your Monthly Payment<br>for Rent or Mortgage</b><br /><input type="text" class="f_text text" maxlength="" size="" id="<324>_d" name="<324>" onBlur="return filter(this, \'^[0-9.]+$\')" />',
334:'Fax nr.<br /><input type="hidden" id="<334>_d" name="<334>" /><input type="text" class="f_text textPart autotab" id="fax_part1" name="xfax" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="fax_part2" name="xfax" maxlength="3" size="3" /> - <input type="text" class="f_text textPart autotab" id="fax_part3" name="xfax" maxlength="4" size="4" />',
344:'<br><b><font color="#ff0000">Optional</font> Credit Line of<br>- Up to $3,500! -</b><font size="-1"><br>Nothing else to fill out! Just select <font color="#ff0000">"YES"</font><br>$3,500 from the World\'s Best Option<br>for NO INTEREST FINANCING</font><br><br /><select id="<344>_d" class="f_select" name="<344>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES</option><option class="head" value="null">-------</option><option value="no">no, thank you</option></select><br><table bgcolor="#F4F4F4" width="200" border=1><tr><td><p style="text-align: left; font-family: Times New Roman; width=200; font-size: 11pt; color: black;">Once a member you will have the ability to finance, interest free, computers, laptops, TVs and dozens of other electronic items as well as vacations to hundreds of destinations. <b>By clicking "yes", you are authorizing eClubUSA.com to enroll you into our 14-day free trial</b> . You will be automatically billed if you do not cancel the membership before the trial period ends. You will be charged the yearly membership fee of only <font style="font-size: 14pt;">$49.95</font> in 15 days following todays date and billed to the account number you provided today and then <font style="font-size: 14pt;">$14.95</font> per month.(membership is automatically renewed each year thereafter unless you wish to cancel). To cancel, simply call our membership services center toll free at 1-877-532-2800. <br><br>eClubUSA.com is not affiliated with this website. I have read and understand the above listed disclosures and the additional terms and conditions listed on this linking url: <a href="https://www.eclubusa.com/mkt/14monthly_terms_pop.php" style="color:blue; text-decoration:underline; font-size: 11pt;" target="terms" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">Terms and Conditions</a></p></table>',
374:'<br><b>Optional <font color=#ff0000>Bonus</font> Credit Line<br>- Up To $12,500<sup>1</sup>! -</b><font size="-1"><br>Nothing else to fill out! We already have your information, just click <font color=#ff0000>"Yes, Sign Me Up!"</font></font><br><br /><select id="<374>_d" class="f_select" name="<374>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES</option><option value="yes">Sign me up</option><option class="head" value="null">--------</option><option value="no">no, thank you</option></select><br><br><table bgcolor="#F4F4F4" width="200" border=1><tr><td><p style="text-align: left; font-family: Times New Roman; width=200; font-size: 11pt;"><b>Your AUTHORIZATION Required:<br>By choosing &ldquo;Yes&rdquo; I understand and authorize  StarterCreditDirect to electronically debit my checking account for my one-time $99.00 Application and Processing fee. <br /></b><br>I also understand that USA Credit&trade;, NOT  StarterCreditDirect will electronically debit my bank account for the  StarterCredit membership fee of <strong>$14 per month.</strong> &nbsp;My Starter Credit  membership is being fulfilled by USA Credit as a service to  StarterCreditDirect. By choosing &ldquo;Yes&rdquo;, I have read and agree to the Starter  Credit <a href="http://servedoc.com/new/edp_regulations/startercreditdirect/usa_terms&amp;cond.htm"  style="color:blue; text-decoration:underline; font-size: 11pt;" target="terms" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">Terms  &amp; Conditions</a>&sup1; and the USA Credit&trade; <a href="https://servedoc.com/new/monterey/privacy-monterey.asp?from=scd&amp;bank=1"  style="color:blue; text-decoration:underline; font-size: 11pt;" target="terms" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">Privacy  Policy</a>. I will allow 15-20 working days from the date my payment is  verified and received, to receive my membership kit. I understand that Starter  Credit is an authorized marketer of USA Credit&trade; membership programs. This  account is a line of credit that can be used by an Accountholder to shop  exclusively at the USA Credit&trade; Shopping Club Web Site. This is not a credit  repair service. USA Credit&trade; is not a credit services organization, financial or  banking institution. Do not use this charge account before you read the USA  Credit&trade; <a href="http://servedoc.com/new/edp_regulations/startercreditdirect/usa_terms&amp;cond.htm"  style="color:blue; text-decoration:underline; font-size: 11pt;" target="terms" onclick="window.open(this.href,this.target,\'width=488,height=610,resizable=yes,scrollbars=yes\'); return false;">Terms  &amp; Conditions</a> for additional details. The USA Credit&trade; StarterCredit  Shopping Card is not a VISA&reg; or a MASTERCARD&reg;. Guaranteed <br />qualifications: You  must be 18 years of age, a U.S. Citizen <br /> (EXCLUDING RESIDENTS OF WISCONSIN, VERMONT AND INDIANA)<br /> OR PERMANENT RESIDENT. The $2,500 loan feature requires <br />prior on time repayment of product purchased at  the USA Credit&trade; <br />shopping club web site.</span> <br /></p></table>',
404:'<br><b>Do you have a fixed<br>or an adjustable interest rate?</b><br /><select id="<404>_d" class="f_select" name="<404>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="adjustable">Adjustable</option><option class="head" value="null">------------</option><option value="fixed">Fixed</option></select>',
414:'<br><b>Is your First Mortage<br>Interest Only?</b><br /><select id="<414>_d" class="f_select" name="<414>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="no">No</option><option class="head" value="null">------------</option><option value="yes">Yes</option></select>',
424:'<br>Have you started<br>Bankruptcy Proceedings?<br /><select id="<424>_d" class="f_select" name="<424>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="no">No</option><option class="head" value="null">------------</option><option value="yes">Yes</option></select>',
434:'<font style="font-size: 12px;">I have read and I agree to this form<br><a href="terms.html" style="color:blue; text-decoration:underline;" target="form_terms" onclick="window.open(this.href,this.target,&#39;width=488,height=610,resizable=yes,scrollbars=yes&#39;); return false;">Terms and Conditions</a></font><br /><select id="<434>_d" class="f_select" name="<434>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES, I Agree</option></select>',
447:'<center><br><b>Please review the terms<br>and conditions located below<br>and select "Yes, I Agree"::<br></b></center><br /><select id="<447>_d" class="f_select" name="<447>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="yes">YES, I agree</option><option class="head" value="null">--------</option><option value="no">no</option></select><br><br><table bgcolor="#F4F4F4" width="200" border=1><tr><td><p style="text-align: left; font-family: Times New Roman; width=200; font-size: 11pt; color: black;">Once a member, you will have the ability to finance, interest free, computers, laptops, TVs and dozens of other electronic items as well as vacations to hundreds of destinations. By clicking "yes", you are authorizing eClubUSA.com to enroll you into our 14-day free trial . You will be automatically billed if you do not cancel the membership before the trial period ends. You will be charged the yearly membership fee of only <font style="font-size: 14pt;">$49.95</font> in 15 days following todays date and billed to the account number you provided today and then <font style="font-size: 14pt;">$14.95</font> per month.(membership is automatically renewed each year thereafter unless you wish to cancel). To cancel, simply call our membership services center toll free at 1-877-532-2800.<br><br>eClubUSA.com is not affiliated with this website. I have read and understand the above listed disclosures and the additional terms and conditions listed on this linking url: <a href="https://www.eclubusa.com/mkt/14monthly_terms_pop.php" style="color:blue; text-decoration:underline; font-size: 11pt;" target="AID_terms" onclick="window.open(this.href,this.target,&#39;width=488,height=610,resizable=yes,scrollbars=yes&#39;); return false;">Terms and Conditions</a>',
464:'<br>Months behind on payments:<br /><select id="<464>_d" class="f_select" name="<464>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="4">4 months or more</option><option value="3">3 months</option><option value="2">2 months</option><option value="1">1 month</option><option class="head" value="null">current</option></select>',
474:'High School Graduation Year<br /><select id="<474>_d" class="f_select" name="<474>" onkeydown="if (event.keyCode ==8) {backStep(); return false;}"><option class="head" value="null">Select One...</option><option class="head" value="null">-----------</option><option value="1930">1930</option><option value="1931">1931</option><option value="1932">1932</option><option value="1933">1933</option><option value="1934">1934</option><option value="1935">1935</option><option value="1936">1936</option><option value="1937">1937</option><option value="1938">1938</option><option value="1939">1939</option><option value="1940">1940</option><option value="1941">1941</option><option value="1942">1942</option><option value="1943">1943</option><option value="1944">1944</option><option value="1945">1945</option><option value="1946">1946</option><option value="1947">1947</option><option value="1948">1948</option><option value="1949">1949</option><option value="1950">1950</option><option value="1951">1951</option><option value="1952">1952</option><option value="1953">1953</option><option value="1954">1954</option><option value="1955">1955</option><option value="1956">1956</option><option value="1957">1957</option><option value="1958">1958</option><option value="1959">1959</option><option value="1960">1960</option><option value="1961">1961</option><option value="1962">1962</option><option value="1963">1963</option><option value="1964">1964</option><option value="1965">1965</option><option value="1966">1966</option><option value="1967">1967</option><option value="1968">1968</option><option value="1969">1969</option><option value="1970">1970</option><option value="1971">1971</option><option value="1972">1972</option><option value="1973">1973</option><option value="1974">1974</option><option value="1975">1975</option><option value="1976">1976</option><option value="1977">1977</option><option value="1978">1978</option><option value="1979">1979</option><option value="1980">1980</option><option value="1981">1981</option><option value="1982">1982</option><option value="1983">1983</option><option value="1984">1984</option><option value="1985">1985</option><option value="1986">1986</option><option value="1987">1987</option><option value="1988">1988</option><option value="1989">1989</option><option value="1990">1990</option><option value="1991">1991</option><option value="1992">1992</option><option value="1993">1993</option><option value="1994">1994</option><option value="1995">1995</option><option value="1996">1996</option><option value="1997">1997</option><option value="1998">1998</option><option value="1999">1999</option><option value="2001">2001</option><option value="2002">2002</option><option value="2003">2003</option><option value="2004">2004</option><option value="2005">2005</option><option value="2006">2006</option><option value="2007">2007</option><option value="2008">2008</option><option value="2009">2009</option><option value="2010">2010</option><option value="2011">2011</option><option value="2012">2012</option></select>',0:'' };
