function showHCSchedule(){
	window.open ("http://www.hypnotherapiststraining.com/hypnosis-courses-schedule.html", "hypnosisClasses", "width=700,height=500,resizable=no,status=no,menubar=no,toolbar=no,location=no,scrollbars=no");
}

function setAR(frm){
	isAR = false;
	str = frm.field3.value;
		
	if (str==''){isAR = false;}
	else if (str=='H123'){
		frm.defaultar.value = '216069';
		frm.ARThankyouURL.value = 'http://www.hypnotherapiststraining.com/hypnosis101-103.html';
		isAR = true;
	}
	else if (str=='ITT'){
		frm.defaultar.value = '465327';			
		frm.ARThankyouURL.value = 'http://www.hypnotherapiststraining.com/inner-transformation-therapy.php';
		isAR = true;
	}
	else if (str=='HF'){
		frm.defaultar.value = '407044';			
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/hypno-fertility.html';
		isAR = true;
	}
	else if (str=='PT'){
		frm.defaultar.value = '317522';			
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/parts-therapy.html';
		isAR = true;
	}
	else if (str=='PM'){
		frm.defaultar.value = '317524';			
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/pain-management.html';
		isAR = true;
	}
	else if (str=='CH'){
		frm.defaultar.value = '---';			
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/pain-management-certification.html';
		isAR = true;
	}
	else if (str=='BW'){
		frm.defaultar.value = '317521';			
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/body-wisdom.html';
		isAR = true;
	}
	else if (str=='PLR'){
		frm.defaultar.value = '---';			
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/pain-management-certification.html';
		isAR = true;
	}
	else {isAR = false;}
	return isAR;
	}

function validate_required(field,alerttxt){
	with (field){
		if (value==null||value==""){
  			alert(alerttxt);return false;
  		}
		else {return true}
	}
}

function isSet(thisform){

	with (thisform){
		if (validate_required(Name,"Please enter your name")==false){
  			Name.focus();return false;
  			}
  		else if (validate_required(Email1,"Please provide your primary email address")==false){
  			Email1.focus();return false;
  			}
  		else if (validate_required(field3,"Please select the course from the drop-down list box")==false){
  			field3.focus();return false;
  			}
  		else {return true;}
	}
}
	
function setEnroll(theList){

	with (theList){
		if (value==''){
			alert('Please select the course from the drop-down list box');
			return false;
		}
		else if (value=='SH'){
			document.location='http://www.hypnotherapiststraining.com/self-hypnosis-enroll.html';
			return true;	
		}
		else if (value=='HC'){
			document.location='http://www.hypnotherapiststraining.com/hypnosis101-103-enroll.html';
			return true;
		}
		else {return false;}
	}
}
