var _4INFO = {
	env:{ fstClr:0 },
	gel:function(id) { return document.getElementById(id); },
	val:function(id) { return document.getElementById(id).value; },
	dsp:function(id, bool) { this.gel(id).style.display = bool?'':'none'; },
	enb:function(id, bool) { this.gel(id).disabled = !bool; },
	vsb:function(id) { return this.gel(id).style.display != 'none'; },
	chk:function(num) { var reInt = /^\d+$/; return !(!reInt.test(num) || num.length!=10 || num.substring(0,1)==0 || num.substring(0,1)==1); },	
	eml:function(e) { return /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e); },	
	tab:function(fld,pfx,idx,e,sfx) { sfx = sfx||''; if(fld.value.length>2 && idx<3) { this.gel(pfx+(idx+1)+sfx).focus();this.env.fstClr=1;return; } var evt = e || window.event;this.env.fstClr=!this.env.fstClr&&fld.value.length==0;if(fld.value.length==0 && !this.env.fstClr && evt.keyCode==8 && idx>1){this.gel(pfx+(idx-1)+sfx).focus();this.env.fstClr=0;} },
	xst:function(id) { return this.gel(id)!=null; },
	kwd:function() {
		if (!this.xst('_4iChsCtn')) return true;
		var a = document.getElementsByName('bundleKeywords');
		for(var i=0;i<a.length;i++) if (a[i].checked) return true; return false;
	},
	snd:function() {
		var err = '', foc = '';		
		if (!this.chk(this.val('_4iPh1')+this.val('_4iPh2')+this.val('_4iPh3'))) { err='Please enter a valid phone number.'; foc='_4iPh1'; }
		if (err=='' && this.xst('_4iEmail') && this.gel('_4iEmail').value!='') if (!this.eml(this.val('_4iEmail'))) { err='Please enter a valid email address.'; foc='_4iEmail'; }
		if (err=='' && !this.kwd()) { err='Please select at least one keyword.'; }
		if (err!='') { alert(err); if (foc != '') this.gel(foc).focus(); return false; } 
		else win=window.open('','4INFO','toolbars=0,width=300,height=150');
	}
};