function  get_course_field(g)
{
	document.forms['phpform'].cours_sel.options.length = 1;
	document.forms['phpform'].cours_sel.options[0].value=0;
	document.forms['phpform'].cours_sel.options[0].text="waiting ...";
	
	if(g.selectedIndex==0)
	{
		document.forms['phpform'].cours_sel.options[0].text="یک رشته را انتخاب نمایید ";
	return false;
	}
	var myerer=g.options[g.selectedIndex].value;
	//show('mask_window');
	htmlRequest =ajaxall();
	//alert(htmlRequest);
	if (htmlRequest==null){ // If it cannot create a new Xmlhttp object.
		alert ("Browser does not support HTTP Request");
		return;
	} 
	htmlRequest.onreadystatechange = function(){
		if(htmlRequest.readyState == 4){
			document.getElementById("panel_course_sel").innerHTML = htmlRequest.responseText;
			// alert(htmlRequest.responseText);
			// hide('mask_window');
		}
	}
	htmlRequest.open('POST', '/include/med_ajaxx_call.php');//get filed from report
	htmlRequest.setRequestHeader("Method", "POST /include/med_ajaxx_call.php HTTP/1.1");
	htmlRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	htmlRequest.setRequestHeader("Connection", "close");
	var myurl;
	myurl='func=show_course_by_course_type&ajaxcall=true&arg='+myerer+'&contact=test';//+document.shoutbox.shouter_contact.value;
	//alert(myurl);
	htmlRequest.send(myurl); 
	}
