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.field6.value;	
	if (str==''){isAR = false;}
	
	else if (str=='TTT-I'){
		frm.defaultar.value = '465327';			
		frm.ARThankyouURL.value = 'http://www.hypnotherapiststraining.com/inner-transformation-therapy.php';
		isAR = true;
	}
	else if (str=='HM-I'){
		frm.defaultar.value = '487731';		// Stand-By	
		frm.ARThankyouURL.value = 'www.hypnotherapiststraining.com/hypnosis-mastery.php';
		isAR = true;
	}
	else if (str=='PT-I'){
		frm.defaultar.value = '317522';		// Stand-By	
		frm.ARThankyouURL.value = 'http://www.hypnotherapiststraining.com/parts-therapy.php';
		isAR = true;
	}
	else if (str=='PT-E'){
		frm.defaultar.value = '511287';		// ~ Enrolled - Parts Therapy	
		frm.ARThankyouURL.value = 'http://www.hypnotherapiststraining.com/enrollment-reminder.html';
		isAR = true;
	}

	else if (str=='PM-I'){
		frm.defaultar.value = '317524';	   // Stand-By				
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/pain-management.html';
		isAR = true;
	}
	else if (str=='CH-I'){
		frm.defaultar.value = '303257';		// Information request - Clicnical	
		frm.ARThankyouURL.value = 'http://www.hypnotherapiststraining.com/complementary-clicnical-hypnotism.html';
		isAR = true;
	}
	else if (str=='BW-I'){
		frm.defaultar.value = '317521';		// Stand-By	
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/body-wisdom.html';
		isAR = true;
	}
	else if (str=='PM-I'){
		frm.defaultar.value = '317524';		// Stand-By	
		frm.ARThankyouURL.value = 'http://hypnotism.apaclasses.com.com/pain-management-certification.html';
		isAR = true;
	}
	else {isAR = false;}
	// if (isAR){alert(frm.ARThankyouURL.value);}
	return isAR;
	}

function setARValue(str){
	arValue = '';
	if (str!=''){alert(str);}
	if (str=='H123'){
		arValue = '216069';
	}
	else if (str=='TTT'){
		arValue = '465327';	
	}
	else if (str=='HM'){
		arValue = '407044';
	}
	else if (str=='PT'){
		arValue = '317522';	
	}
	else if (str=='PM'){
		arValue = '317524';	
	}
	else if (str=='CH'){
		arValue = '---';
	}
	else if (str=='BW'){
		arValue = '317521';	
	}
	else if (str=='PLR'){
		arValue = '---';
	}
	else {arValue = '';}
	return arValue;
	}

function setNP(str){
	nextP = '';
	
	if (str=='HTV'){
		nextP = 'http://www.apatoday.com/hypnotherapy-training-tobeawareof-video.html';
	}
	else if (str=='TTT'){
		nextP = '465327';	
	}
	else if (str=='HM'){
		nextP = '407044';
	}
	else if (str=='PT'){
		nextP = '317522';	
	}
	else if (str=='PM'){
		nextP = '317524';	
	}
	else if (str=='CH'){
		nextP = '---';
	}
	else if (str=='BW'){
		nextP = '317521';	
	}
	else if (str=='PLR'){
		nextP = '---';
	}
	else {nextP = '';}
	return nextP;
	}



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;}
	}
}
