jQuery().ready(function(){var A=false;var B=new Object();var D=true;var F='<p class="ibm-ind-error ibm-error"><strong>If you do not want to provide us with the required information, please use the back button on your browser to return to the previous page.</strong></p><div class="ibm-rule ibm-error"><hr /></div>';var G='<img src="//www.ibm.com/i/v16/icons/error.gif" width="16" height="16" alt="" />';oErrImage=new Image();oErrImage.src="//www.ibm.com/i/v16/icons/error.gif";function C(H){H.parent().addClass("ibm-error");
H.parent().next().append(G);if(B==null){B=H.parent().next().children("input,select,textarea")[0]}D=false}function E(J,H){var I;if(H=="Email"){I=/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$/}else{if(H=="Phone"){I=/[0-9\(\)-]+/}}if(!I.test(J.parent().next().children("input,select,textarea").val())){C(J)}else{J.parent().removeClass("ibm-error")}}jQuery(".ibm-column-form,.ibm-row-form").submit(function(){jQuery('img[src$="error.gif"]').remove();
B=null;jQuery(".ibm-required").each(function(){var H=jQuery(this).parent().next().children("input,select,textarea");if(H.attr("type")=="checkbox"||H.attr("type")=="radio"){if(jQuery("input[id^='"+H.attr("name")+"']:checked").length==0){C(jQuery(this))}else{jQuery(this).parent().removeClass("ibm-error")}}else{if(H.val()==""){C(jQuery(this))}else{if(H.attr("name")=="Email"){E(jQuery(this),"Email")}else{if(H.attr("name")=="Telephone"||H.attr("name")=="Fax"||H.attr("name")=="Phone"){E(jQuery(this),"Phone")
}else{jQuery(this).parent().removeClass("ibm-error")}}}}});if(jQuery("#Sendcopy:checked").length>0){jQuery("#copy").html('<input type="hidden" name="Carboncopy" value="'+jQuery("#Email").val()+'" />')}if(B!=null){B.focus()}if(D){jQuery("h3,label,legend").removeClass("ibm-error");jQuery("p,div").remove(".ibm-error");jQuery.ajax({type:"POST",url:jQuery("#toolform").attr("action"),data:jQuery("#toolform").serialize(),error:function(H){alert(H.status)},success:function(){jQuery("#form").hide();jQuery("#thanks").show()
}});return false}else{if(A==false){jQuery(".ibm-column-form,.ibm-row-form").prepend(F);A=true}D=true;return false}return false})});function show_form(){jQuery("#thanks").hide();jQuery("#form").show();jQuery("#copy").html("")};