jQuery.validator.addMethod("cd1", function(value, element) { return this.optional(element) || !/aol.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd2", function(value, element) { return this.optional(element) || !/ymail.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd3", function(value, element) { return this.optional(element) || !/live.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd4", function(value, element) { return this.optional(element) || !/rocketmail.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd5", function(value, element) { return this.optional(element) || !/hotmail.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd6", function(value, element) { return this.optional(element) || !/msn.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd7", function(value, element) { return this.optional(element) || !/yahoo.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd8", function(value, element) { return this.optional(element) || !/eyelit.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd9", function(value, element) { return this.optional(element) || !/pilgrimsoftware.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd10", function(value, element) { return this.optional(element) || !/assurx.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd11", function(value, element) { return this.optional(element) || !/sparta-systems.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd12", function(value, element) { return this.optional(element) || !/etq.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd13", function(value, element) { return this.optional(element) || !/yahoo.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd14", function(value, element) { return this.optional(element) || !/apriso.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd15", function(value, element) { return this.optional(element) || !/honeywell.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd16", function(value, element) { return this.optional(element) || !/werum.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd17", function(value, element) { return this.optional(element) || !/emersonsolutions.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd18", function(value, element) { return this.optional(element) || !/elansoftware.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd19", function(value, element) { return this.optional(element) || !/amat.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd20", function(value, element) { return this.optional(element) || !/preactor.com/.test(value); }, "Unacceptable address");

jQuery.validator.addMethod("cd21", function(value, element) { return this.optional(element) || !/lighthousesystems.com/.test(value); }, "Unacceptable address");/**/



jQuery(document).ready(function($) {

  

  $("#slider").easySlider({

		auto: true, 

		continuous: true,

		pause: 13000

	});

  

  $(".contactForm").validate();

  $(".contactFormSide").validate();

  

  $('#formLife').hide();

  $('#formSemi').hide();

  $('#formOther').hide();

  

  

  

  //Qualifacturing Factor Form

  $('.industrySelect').change(function() {

  	var str = "";

    $(".industrySelect option:selected").each(function () {

        str += $(this).text(); // Converts HTML entities?

		str2 = str;

    });

		if (str == "Please Choose") {
			$('#formLife').hide();
			$('#formOther').hide();
		}
		else {
			if (str == "Biotech" || str == "Medical Devices & Diagnostics" || str == "Pharma") {
				$('#formOther').hide();		
				$('#formLife').fadeIn('slow');
			}
			else if (str == "Electronics" || str == "Industrial" || str == "Metals" || str == "Solar & Clean Tech" || str == "Semiconductor" || str == "Other") {
				$('#formLife').hide();
				$('#formOther').fadeIn('slow');
			}
			else {
				$('#formLife').hide();	
				$('#formOther').fadeIn('slow');
			};
		}
        //alert(str);

	})

  

    //.trigger('change');

}) 




