//var savedFields = {};
function jsForm() {
	var box;
	$("form td a").click(function(){
		if (!box)
			box = new $.msgBox(this.innerHTML.replace(":", ""), $("#form .pop").show());
		else
			box.show();
		return false;
	}).not("a[title]").each(function(){
		if (dHover)
			$(this).attr("title", "What is unsecured debt?").Tooltip({ showURL: false, extraClass: "small" });
	});
	$("#fb a").not("a[target]").unbind().click(function(){ return false; }).Tooltip({ showURL: false, extraClass: "small" });
	$("input[defval]").focus(function(){
		var me = $(this);
		if (me.val() == me.attr("defval"))
			me.val("").removeClass("def");
	}).blur(function(){
		var me = $(this);
		if ($.trim(me.val()).length == 0 || me.val() == me.attr("defval"))
			me.val(me.attr("defval")).addClass("def");
	}).blur();
	$("form td.phone input").each(function(){
		var all = $(this).parent().children("input");
		var l = all.length;
		var i = all.index(this) + 1;
		$(this).autotab({format: "numeric", target: (i < l ? all.get(i) : null), previous: (i > 1 ? all.get(i - 2) : null)});
	});
	
	
}
$(function(){
	jsForm();
	var ot = $("input:radio[name=over_ten]").click(function(){
		overten = true;
		var f = function(first, second){
		};
	});
});
