function checkform(){
	var cName = document.getElementById('cNameid').value;
	if(cName == '') {
		alert('Course name be not empty');
		document.getElementById('cNameid').focus();
		return false;
	}
	var sName = document.getElementById('sNameid').value;
	if(sName == '') {
		alert('School name be not empty');
		document.getElementById('sNameid').focus();
		return false;
	}
	/*var outcity = document.getElementById('outcity').value;
	if (outcity.length<=0) {
		alert('City!');
		document.getElementById('outcity').focus();
		return false;
	}
	var outprovince = document.getElementById('outprovince').value;
	if (outprovince.length<=0) {
		alert('State/Region/Province!');
		document.getElementById('outprovince').focus();
		return false;
	}
	var outcountry = document.getElementById('outcountry').value;
	if (outcountry.length <= 0) {
		alert('Country!');
		document.getElementById('outcountry').focus();
		return false;
	}*/
	var email = document.getElementById('emailid').value;
	if(email == '') {
		alert('E-mail be not empty');
		document.getElementById('emailid').focus();
		return false;
	}
	var cwebsite2 = document.getElementById('cWebSiteid').value;
	if(cwebsite2 == '') {
		alert('Website be not empty');
		document.getElementById('cWebSiteid').focus();
		return false;
	}
	var cContent = document.getElementById('cContentid').value;
	if(cContent == '') {
		alert('Course description be not empty');
		document.getElementById('cContentid').focus();
		return false;
	}
	return true;
}

//��ҳͨ����4��ת��js����
function goCourseList(varl){
		if(varl.length<=0){
			return false;
		} else {
			var index_country = 'by_country';
			if($('#onlin_course').attr('checked')){
				index_country = 'by_online';
			}
			
			$.post('index.php', 
			  {
			  	search_type:index_country,
				act: 'course',
				country: varl
			  }, 
				function(data) {
					if(data != 'error'){
						$('#teflcourseid').html(data);
					}
				}
			);	
		}
	}
	
	function goCourseList1(varl){
		if(varl.length<=0){
			return false;
		} else {
			var index_country = 'by_country';
			if($('#onlin_course1').attr('checked')){
				index_country = 'by_online';
			}
			
			$.post('index.php', 
			  {
			  	search_type:index_country,
				act: 'course1',
				country: varl
			  }, 
				function(data) {
					if(data != 'error'){
						$('#teflcourseid1').html(data);
					}
				}
			);	
		}
	}
//-->
