// Clickable Designs | JavaScript Document //

function specChar1() {
	//var iChars = "!#$%^&*()+=[]\\\';,/{}|\":<>?";
	var iChars = "=;[]\\\/{}|<>";
	for (var a = 0; a < document.form1.Name.value.length; a++) {
		if (iChars.indexOf(document.form1.Name.value.charAt(a)) != -1) {
		alert ("Please fix the following item(s): \n- Name field cannot contain special characters.\n  =  ;  [  ]  \\\  /  {  }  |  <  >  are not allowed.\n");
		return false;
        }
	}
	for (var b = 0; b < document.form1.ContactInformation.value.length; b++) {
		if (iChars.indexOf(document.form1.ContactInformation.value.charAt(b)) != -1) {
		alert ("Please fix the following item(s): \n- Contact Information field cannot contain special characters.\n  =  ;  [  ]  \\\  /  {  }  |  <  >  are not allowed.\n");
		return false;
        }
	}
	for (var c = 0; c < document.form1.DaysAndTimes.value.length; c++) {
		if (iChars.indexOf(document.form1.DaysAndTimes.value.charAt(c)) != -1) {
		alert ("Please fix the following item(s): \n- Days And Times field cannot contain special characters.\n  =  ;  [  ]  \\\  /  {  }  |  <  >  are not allowed.\n");
		return false;
        }
	}
	for (var d = 0; d < document.form1.AreasOfInterest.value.length; d++) {
		if (iChars.indexOf(document.form1.AreasOfInterest.value.charAt(d)) != -1) {
		alert ("Please fix the following item(s): \n- Areas Of Interest field cannot contain special characters.\n  =  ;  [  ]  \\\  /  {  }  |  <  >  are not allowed.\n");
		return false;
        }
	}
}

function specChar2() {
	//var iChars = "!#$%^&*()+=[]\\\';,/{}|\":<>?";
	var iChars = "=;[]\\\/{}|<>";
	for (var a = 0; a < document.form1.Email.value.length; a++) {
		if (iChars.indexOf(document.form1.Email.value.charAt(a)) != -1) {
		alert ("Please fix the following item(s): \n- Email field cannot contain special characters.\n  =  ;  [  ]  \\\  /  {  }  |  <  >  are not allowed.\n");
		return false;
        }
	}
}

function specChar3() {
	//var iChars = "!#$%^&*()+=[]\\\';,/{}|\":<>?";
	var iChars = "=;[]\\\/{}|<>";
	for (var a = 0; a < document.form2.EmailAddress.value.length; a++) {
		if (iChars.indexOf(document.form2.EmailAddress.value.charAt(a)) != -1) {
		alert ("Please fix the following item(s): \n- EmailAddress cannot contain special characters.\n  =  ;  [  ]  \\\  /  {  }  |  <  >  are not allowed.\n");
		return false;
        }
	}
}