function verifyConsultantCart()
{
	var cartForm = $('#cart'); 
	cartForm.submit();
}

function verifyVipCart() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd1').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd1').attr('checked');
	var vipOnline1_select_status = $('#vipOnline1').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar1').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel1').val(); 
	
	var vipHomeDvd2_select_status = $('#vipHomeDvd2').attr('checked');
	var vipHomeCd2_select_status = $('#vipHomeCd2').attr('checked');
	var vipOnline2_select_status = $('#vipOnline2').attr('checked');
	var vipSeminar2_select_status = $('#vipSeminar2').attr('checked');
	var vipSeminarSel2 = $('#vipSeminarSel2').val(); 
	var cartForm = $('#cart'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	var checkCount2 = 0;
	if(vipHomeDvd2_select_status == true) {
		checkCount2++; 
	}
	if(vipHomeCd2_select_status == true) {
		checkCount2++; 
	}
	if(vipOnline2_select_status == true) {
		checkCount2++; 
	}
	if(vipSeminar2_select_status == true) {
		checkCount2++; 
	}
	
	if(checkCount1 >=0 && checkCount1 <=1) {
		alert('Please select any two of four formats for CLNC Certification Program.');
		$('#vipOnline1').focus(); 
	}
	else if(checkCount1 > 2) {
		alert('You can select only 2 formats for CLNC Certification Program.');
		$('#vipHomeDvd1').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel1').focus(); 
	}
	else if(checkCount2 ==0) {
		alert('Please select any one of four formats for NACLNC Apprenticeship.');
		$('#vipOnline2').focus(); 
	}
	else if(checkCount2 > 1) {
		alert('You can select only one format for NACLNC Apprenticeship.');
		$('#vipHomeDvd2').focus(); 
	}
	else if(vipSeminar2_select_status == true && vipSeminarSel2 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel2').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyVipDiscountCart() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd1').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd1').attr('checked');
	var vipOnline1_select_status = $('#vipOnline1').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar1').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel1').val(); 
	
	var vipHomeDvd2_select_status = $('#vipHomeDvd2').attr('checked');
	var vipHomeCd2_select_status = $('#vipHomeCd2').attr('checked');
	var vipOnline2_select_status = $('#vipOnline2').attr('checked');
	var vipSeminar2_select_status = $('#vipSeminar2').attr('checked');
	var vipSeminarSel2 = $('#vipSeminarSel2').val(); 
	var cartForm = $('#vipcart'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	var checkCount2 = 0;
	if(vipHomeDvd2_select_status == true) {
		checkCount2++; 
	}
	if(vipHomeCd2_select_status == true) {
		checkCount2++; 
	}
	if(vipOnline2_select_status == true) {
		checkCount2++; 
	}
	if(vipSeminar2_select_status == true) {
		checkCount2++; 
	}
	
	if(checkCount1 >=0 && checkCount1 <=1) {
		alert('Please select any two of three formats for CLNC Certification Program.');
		$('#vipOnline1').focus(); 
	}
	else if(checkCount1 > 2) {
		alert('You can select only 2 formats for CLNC Certification Program.');
		$('#vipHomeDvd1').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel1').focus(); 
	}
	else if(checkCount2 ==0) {
		alert('Please select any one of three formats for NACLNC Apprenticeship.');
		$('#vipOnline2').focus(); 
	}
	else if(checkCount2 > 1) {
		alert('You can select only one format for NACLNC Apprenticeship.');
		$('#vipHomeDvd2').focus(); 
	}
	else if(vipSeminar2_select_status == true && vipSeminarSel2 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel2').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyVipCart1() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd11').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd11').attr('checked');
	var vipOnline1_select_status = $('#vipOnline11').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar11').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel11').val(); 
	
	var vipHomeDvd2_select_status = $('#vipHomeDvd22').attr('checked');
	var vipHomeCd2_select_status = $('#vipHomeCd22').attr('checked');
	var vipOnline2_select_status = $('#vipOnline22').attr('checked');
	var vipSeminar2_select_status = $('#vipSeminar22').attr('checked');
	var vipSeminarSel2 = $('#vipSeminarSel22').val(); 
	var cartForm = $('#cart1'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	var checkCount2 = 0;
	if(vipHomeDvd2_select_status == true) {
		checkCount2++; 
	}
	if(vipHomeCd2_select_status == true) {
		checkCount2++; 
	}
	if(vipOnline2_select_status == true) {
		checkCount2++; 
	}
	if(vipSeminar2_select_status == true) {
		checkCount2++; 
	}
	
	if(checkCount1 >=0 && checkCount1 <=1) {
		alert('Please select any two of four formats for CLNC Certification Program.');
		$('#vipOnline11').focus(); 
	}
	else if(checkCount1 > 2) {
		alert('You can select only 2 formats for CLNC Certification Program.');
		$('#vipHomeDvd11').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel11').focus(); 
	}
	else if(checkCount2 ==0) {
		alert('Please select any one of four formats for NACLNC Apprenticeship.');
		$('#vipOnline22').focus(); 
	}
	else if(checkCount2 > 1) {
		alert('You can select only one format for NACLNC Apprenticeship.');
		$('#vipHomeDvd22').focus(); 
	}
	else if(vipSeminar2_select_status == true && vipSeminarSel2 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel22').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyExecutiveCart() {
	
	var vipHomeDvd1_select_status = $('#vipHomeDvd1').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd1').attr('checked');
	var vipOnline1_select_status = $('#vipOnline1').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar1').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel1').val(); 
	
	var vipHomeDvd2_select_status = $('#vipHomeDvd2').attr('checked');
	var vipHomeCd2_select_status = $('#vipHomeCd2').attr('checked');
	var vipOnline2_select_status = $('#vipOnline2').attr('checked');
	var vipSeminar2_select_status = $('#vipSeminar2').attr('checked');
	var vipSeminarSel2 = $('#vipSeminarSel2').val(); 
	var cartForm = $('#cart'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	var checkCount2 = 0;
	if(vipHomeDvd2_select_status == true) {
		checkCount2++; 
	}
	if(vipHomeCd2_select_status == true) {
		checkCount2++; 
	}
	if(vipOnline2_select_status == true) {
		checkCount2++; 
	}
	if(vipSeminar2_select_status == true) {
		checkCount2++; 
	}
	
	if(checkCount1 == 0) {
		alert('Please select any one of three formats for CLNC Certification Program.');
		$('#vipOnline1').focus(); 
	}
	else if(checkCount1 > 1) {
		alert('You can select only 1 format for CLNC Certification Program.');
		$('#vipHomeDvd1').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel1').focus(); 
	}
	else if(checkCount2 ==0) {
		alert('Please select any one of three formats for NACLNC Apprenticeship.');
		$('#vipOnline2').focus(); 
	}
	else if(checkCount2 > 1) {
		alert('You can select only one format for NACLNC Apprenticeship.');
		$('#vipHomeDvd2').focus(); 
	}
	else if(vipSeminar2_select_status == true && vipSeminarSel2 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel2').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyExecutiveDiscountCart() {
	
	var vipHomeDvd1_select_status = $('#vipHomeDvd11').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd11').attr('checked');
	var vipOnline1_select_status = $('#vipOnline11').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar11').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel11').val(); 
	
	var vipHomeDvd2_select_status = $('#vipHomeDvd22').attr('checked');
	var vipHomeCd2_select_status = $('#vipHomeCd22').attr('checked');
	var vipOnline2_select_status = $('#vipOnline22').attr('checked');
	var vipSeminar2_select_status = $('#vipSeminar22').attr('checked');
	var vipSeminarSel2 = $('#vipSeminarSel2').val(); 
	var cartForm = $('#execcart'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	var checkCount2 = 0;
	if(vipHomeDvd2_select_status == true) {
		checkCount2++; 
	}
	if(vipHomeCd2_select_status == true) {
		checkCount2++; 
	}
	if(vipOnline2_select_status == true) {
		checkCount2++; 
	}
	if(vipSeminar2_select_status == true) {
		checkCount2++; 
	}
	
	if(checkCount1 == 0) {
		alert('Please select any one of three formats for CLNC Certification Program.');
		$('#vipOnline11').focus(); 
	}
	else if(checkCount1 > 1) {
		alert('You can select only 1 format for CLNC Certification Program.');
		$('#vipHomeDvd11').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel11').focus(); 
	}
	else if(checkCount2 ==0) {
		alert('Please select any one of three formats for NACLNC Apprenticeship.');
		$('#vipOnline22').focus(); 
	}
	else if(checkCount2 > 1) {
		alert('You can select only one format for NACLNC Apprenticeship.');
		$('#vipHomeDvd22').focus(); 
	}
	else if(vipSeminar2_select_status == true && vipSeminarSel2 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel22').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyExecutiveCart1() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd11').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd11').attr('checked');
	var vipOnline1_select_status = $('#vipOnline11').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar11').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel11').val(); 
	
	var vipHomeDvd2_select_status = $('#vipHomeDvd22').attr('checked');
	var vipHomeCd2_select_status = $('#vipHomeCd22').attr('checked');
	var vipOnline2_select_status = $('#vipOnline22').attr('checked');
	var vipSeminar2_select_status = $('#vipSeminar22').attr('checked');
	var vipSeminarSel2 = $('#vipSeminarSel22').val(); 
	var cartForm = $('#cart1'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	var checkCount2 = 0;
	if(vipHomeDvd2_select_status == true) {
		checkCount2++; 
	}
	if(vipHomeCd2_select_status == true) {
		checkCount2++; 
	}
	if(vipOnline2_select_status == true) {
		checkCount2++; 
	}
	if(vipSeminar2_select_status == true) {
		checkCount2++; 
	}
	
	if(checkCount1 == 0) {
		alert('Please select any one of three formats for CLNC Certification Program.');
		$('#vipOnline11').focus(); 
	}
	else if(checkCount1 > 1) {
		alert('You can select only 1 format for CLNC Certification Program.');
		$('#vipHomeDvd11').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel11').focus(); 
	}
	else if(checkCount2 ==0) {
		alert('Please select any one of three formats for NACLNC Apprenticeship.');
		$('#vipOnline22').focus(); 
	}
	else if(checkCount2 > 1) {
		alert('You can select only one format for NACLNC Apprenticeship.');
		$('#vipHomeDvd22').focus(); 
	}
	else if(vipSeminar2_select_status == true && vipSeminarSel2 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel22').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyBasicCart() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd1').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd1').attr('checked');
	var vipOnline1_select_status = $('#vipOnline1').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar1').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel1').val(); 
	
	var cartForm = $('#cart'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	
	if(checkCount1 == 0) {
		alert('Please select any one of four formats for CLNC Certification Program.');
		$('#vipOnline1').focus(); 
	}
	else if(checkCount1 > 1) {
		alert('You can select only 1 format for CLNC Certification Program.');
		$('#vipHomeDvd1').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel1').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyBasicDiscountCart() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd111').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd111').attr('checked');
	var vipOnline1_select_status = $('#vipOnline111').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar111').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel111').val(); 
	
	var cartForm = $('#basiccart'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	
	if(checkCount1 == 0) {
		alert('Please select any one of three formats for CLNC Certification Program.');
		$('#vipOnline111').focus(); 
	}
	else if(checkCount1 > 1) {
		alert('You can select only 1 format for CLNC Certification Program.');
		$('#vipHomeDvd111').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel111').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyBasicCart1() {
	var vipHomeDvd1_select_status = $('#vipHomeDvd11').attr('checked');
	var vipHomeCd1_select_status = $('#vipHomeCd11').attr('checked');
	var vipOnline1_select_status = $('#vipOnline11').attr('checked');
	var vipSeminar1_select_status = $('#vipSeminar11').attr('checked');
	var vipSeminarSel1 = $('#vipSeminarSel11').val(); 
	
	var cartForm = $('#cart1'); 
	
	var checkCount1 = 0;
	if(vipHomeDvd1_select_status == true) {
		checkCount1++; 
	}
	if(vipHomeCd1_select_status == true) {
		checkCount1++; 
	}
	if(vipOnline1_select_status == true) {
		checkCount1++; 
	}
	if(vipSeminar1_select_status == true) {
		checkCount1++; 
	}
	
	
	if(checkCount1 == 0) {
		alert('Please select any one of four formats for CLNC Certification Program.');
		$('#vipOnline11').focus(); 
	}
	else if(checkCount1 > 1) {
		alert('You can select only 1 format for CLNC Certification Program.');
		$('#vipHomeDvd11').focus(); 
	}
	else if(vipSeminar1_select_status == true && vipSeminarSel1 == '') {
		alert('Please select seminar.');
		$('#vipSeminarSel11').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyApprenticeshipCart() {
	var apprenticeshipSeminarSel1 = $('#apprenticeshipSeminarSel1').val(); 
	
	var cartForm = $('#cart'); 
	
	if(apprenticeshipSeminarSel1 == '') {
		alert('Please select date.');
		$('#apprenticeshipSeminarSel1').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function verifyApprenticeshipCart1() {
	var apprenticeshipSeminarSel1 = $('#apprenticeshipSeminarSel11').val(); 
	
	var cartForm = $('#cart1'); 
	
	if(apprenticeshipSeminarSel1 == '') {
		alert('Please select date.');
		$('#apprenticeshipSeminarSel11').focus(); 
	}
	else{
		cartForm.submit(); 
	}

}

function checkSeminar(srno) {
	srno = parseInt(srno); 
	if(srno == 1) {
		$('#vipSeminar1').attr('checked', true);
	}
	if(srno == 2) {
		$('#vipSeminar2').attr('checked', true);
	}
	if(srno == 11) {
		$('#vipSeminar11').attr('checked', true);
	}
	if(srno == 22) {
		$('#vipSeminar22').attr('checked', true);
	}
	if(srno == 33) {
		$('#sixDayRefresher').attr('checked', true);
	}
	if(srno == 34) {
		$('#sixDayRefresher2').attr('checked', true);
	}
}

function verifySeminarRefresherCart() {
	var refresher_6day_select_status = $('#sixDayRefresher').attr('checked');
	var refresherSeminarCity = $('#seminarRefresherCity').val(); 
	
	var cartForm = $('#cart'); 
	
	var checkCount1 = 0;
	if(refresher_6day_select_status == true) {
		checkCount1++; 
	}
	
	if(checkCount1 == 0) {
		alert('Please select 6-Day Seminar Refresher.');
		$('#sixDayRefresher').focus(); 
	}
	else if(refresher_6day_select_status == true && refresherSeminarCity == '') {
		alert('Please select seminar refresher city.');
		$('#seminarRefresherCity').focus(); 
	}
	else{
		cartForm.submit(); 
	}
}

function verifySeminarRefresherCart2() {
	var refresher_6day_select_status = $('#sixDayRefresher2').attr('checked');
	var refresherSeminarCity = $('#seminarRefresherCity2').val(); 
	
	var cartForm = $('#cart2'); 
	
	var checkCount1 = 0;
	if(refresher_6day_select_status == true) {
		checkCount1++; 
	}
	
	if(checkCount1 == 0) {
		alert('Please select 6-Day Seminar Refresher.');
		$('#sixDayRefresher2').focus(); 
	}
	else if(refresher_6day_select_status == true && refresherSeminarCity == '') {
		alert('Please select seminar refresher city.');
		$('#seminarRefresherCity2').focus(); 
	}
	else{
		cartForm.submit(); 
	}
}
