//AJAX OBJECT
var xmlHttp

function GetXmlHttpObject() {
	var xmlHttp=null;
	try
	 {
		 // Firefox, Opera 8.0+, Safari
		 xmlHttp=new XMLHttpRequest();
	 }
	catch (e)
	 {
	 //Internet Explorer
	 try
	  {
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	 catch (e)
	  {
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
 	}
	return xmlHttp;
}


function GetStafName_stateChanged () 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("nama_ahli").innerHTML=xmlHttp.responseText;
 } 
}



//END AJAX SECTIONS

function Pick_Taraf(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_smp_pradaftar.taraf.value = symbol;
		window.opener.document.f_smp_pradaftar.kettaraf.value = symbol2;
		window.opener.document.f_smp_pradaftar.taraf.focus();
	  window.close();
}

function Pick_Kursus(symbol,symbol2,symbol3) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_smp_pradaftar.kodkursus.value = symbol;
		window.opener.document.f_smp_pradaftar.ketkursus.value = symbol2;
		window.opener.document.f_smp_pradaftar.jam.value = symbol3;
		window.opener.document.f_smp_pradaftar.kodkursus.focus();
	  window.close();
}

function Pick_Bangsa(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.bangsa.value = symbol;
		window.opener.document.f_profil.kod_bangsa.value = symbol2;
		window.opener.document.f_profil.bangsa.focus();
	  window.close();
}

function Pick_Bangsa_Grad(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.bakal.bangsa.value = symbol;
		window.opener.document.bakal.kod_bangsa.value = symbol2;
		window.opener.document.bakal.bangsa.focus();
	  window.close();
}


function Pick_Agama(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.agama.value = symbol;
		window.opener.document.f_profil.kod_agama.value = symbol2;
		window.opener.document.f_profil.agama.focus();
	  window.close();
}

function Pick_Taraf_Kahwin(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.taraf.value = symbol;
		window.opener.document.f_profil.kod_trf_kahwin.value = symbol2;
		window.opener.document.f_profil.taraf.focus();
	  window.close();
}



function Pick_Negeri_Sementara(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.alamats4.value = symbol;
		window.opener.document.f_profil.kod_negeris.value = symbol2;
		window.opener.document.f_profil.alamats4.focus();
	  window.close();
}

function Pick_Negeri_Surat(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.alamatsrt.value = symbol;
		window.opener.document.f_profil.kod_negerisrt.value = symbol2;
		window.opener.document.f_profil.alamatsrt.focus();
	  window.close();
}

function Pick_Negeri_Waris1(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.ng1.value = symbol;
		window.opener.document.f_profil.kod_negeri1.value = symbol2;
		window.opener.document.f_profil.ng1.focus();
	  window.close();
}
function Pick_Negeri_Waris2(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.ng2.value = symbol;
		window.opener.document.f_profil.kod_negeri2.value = symbol2;
		window.opener.document.f_profil.ng2.focus();
	  window.close();
}


function Pick_Negeri_Tetap(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_profil.alamat4.value = symbol;
		window.opener.document.f_profil.kod_negerit.value = symbol2;
		window.opener.document.f_profil.alamat4.focus();
	  window.close();
}

function Pick_Negeri_Tetap_Grad(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.bakal.negeri.value = symbol;
		window.opener.document.bakal.kod_negerit.value = symbol2;
		window.opener.document.bakal.negeri.focus();
	  window.close();
}


function Pick_Bangsa_Tbg(symbol,symbol2) {
	  if (window.opener && !window.opener.closed)
		window.opener.document.f_smp_tbg_penjaga.bangsa.value = symbol;
		window.opener.document.f_smp_tbg_penjaga.keturunan.value = symbol2;
		window.opener.document.f_smp_tbg_penjaga.bangsa.focus();
	  window.close();
}

