	function updateCity(thisForm)
	{
	  if (thisForm.State.value==0)
	    EmptyList(thisForm.Town);
	  if (thisForm.State.value=='KL')
	    KLTownList(thisForm.Town);
	  if (thisForm.State.value=='MK')
	    MelakaTownList(thisForm.Town);
	  if (thisForm.State.value=='NS')
	    NSembilanTownList(thisForm.Town);
	  if (thisForm.State.value=='SL')
	    SelangorTownList(thisForm.Town);
	  if (thisForm.State.value=='PK')
	    PerakTownList(thisForm.Town);
	  if (thisForm.State.value=='PP')
	    PinangTownList(thisForm.Town);
	  if (thisForm.State.value=='KH')
	    KedahTownList(thisForm.Town);
	  if (thisForm.State.value=='PS')
	    PerlisTownList(thisForm.Town);
	  if (thisForm.State.value=='KN')
	    KelantanTownList(thisForm.Town);
	  if (thisForm.State.value=='TR')
	    TerengganuTownList(thisForm.Town);
	  if (thisForm.State.value=='PH')
	    PahangTownList(thisForm.Town);
	  if (thisForm.State.value=='SBH')
	    SabahTownList(thisForm.Town);
	  if (thisForm.State.value=='SWK')
	    SarawakTownList(thisForm.Town);
	  if (thisForm.State.value=='JH')
	    JohorTownList(thisForm.Town);
	  if (thisForm.State.value=='LB')
	    LBTownList(thisForm.Town);
	  if (thisForm.State.value=='PTJ')
	    PTJTownList(thisForm.Town);
	}

	function updateCityOff(thisForm)
	{
	  if (thisForm.ofcState.value==0)
	    EmptyList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='KL')
	    KLTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='MK')
	    MelakaTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='NS')
	    NSembilanTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='SL')
	    SelangorTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='PK')
	    PerakTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='PP')
	    PinangTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='KH')
	    KedahTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='PS')
	    PerlisTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='KN')
	    KelantanTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='TR')
	    TerengganuTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='PH')
	    PahangTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='SBH')
	    SabahTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='SWK')
	    SarawakTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='JH')
	    JohorTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='LB')
	    LBTownList(thisForm.ofcTown);
	  if (thisForm.ofcState.value=='PTJ')
	    PTJTownList(thisForm.ofcTown);
	}
	
	function checkSex(value,check)
	{
	  if (check==true)
	  {
	    if (value!=2)
	    {
	      box=eval("document.signUpForm.sexF");
	      if (box.checked==true)
	        box.checked=false;
	    }
	    if (value!=1)
	    {
	      box=eval("document.signUpForm.sexM");
	      if (box.checked==true)
	        box.checked=false;
	    }
	  }
	  if (check==false)
	  {
	    if (value==1)
	    {
	      box=eval("document.signUpForm.sexM");
	      box.checked=true;
	    }
	    if (value==2)
	    {
	      box=eval("document.signUpForm.sexF");
	      box.checked=true;
	    }
	  }	  
	}

	function checkKeturunan(value,check)
	{
	  if (check==true)
	  {
	    if (value==1)
	    {
		  boxC=eval("document.signUpForm.kCina");
		  boxI=eval("document.signUpForm.kIndia");
		  boxO=eval("document.signUpForm.kOther");
	      if (boxC.checked==true)
	        boxC.checked=false;
	      if (boxI.checked==true)
	        boxI.checked=false;
	      if (boxO.checked==true)
	        boxO.checked=false;
		}
	    if (value==2)
	    {
		  boxM=eval("document.signUpForm.kMelayu");
		  boxI=eval("document.signUpForm.kIndia");
		  boxO=eval("document.signUpForm.kOther");
	      if (boxM.checked==true)
	        boxM.checked=false;
	      if (boxI.checked==true)
	        boxI.checked=false;
	      if (boxO.checked==true)
	        boxO.checked=false;
		}
	    if (value==3)
	    {
		  boxM=eval("document.signUpForm.kMelayu");
		  boxC=eval("document.signUpForm.kCina");
		  boxO=eval("document.signUpForm.kOther");
	      if (boxM.checked==true)
	        boxM.checked=false;
	      if (boxC.checked==true)
	        boxC.checked=false;
	      if (boxO.checked==true)
	        boxO.checked=false;
		}
	    if (value==4)
	    {
		  boxM=eval("document.signUpForm.kMelayu");
		  boxC=eval("document.signUpForm.kCina");
		  boxI=eval("document.signUpForm.kIndia");
	      if (boxM.checked==true)
	        boxM.checked=false;
	      if (boxC.checked==true)
	        boxC.checked=false;
	      if (boxI.checked==true)
	        boxI.checked=false;
		}
	  }
	  if (check==false)
	  {
	    if (value==1)
	    {
	      boxM=eval("document.signUpForm.kMelayu");
	      boxM.checked=true;
	    }
	    if (value==2)
	    {
	      boxC=eval("document.signUpForm.kCina");
	      boxC.checked=true;
	    }
	    if (value==3)
	    {
	      boxI=eval("document.signUpForm.kIndia");
	      boxI.checked=true;
	    }
	    if (value==4)
	    {
	      boxO=eval("document.signUpForm.kOther");
	      boxO.checked=true;
	    }
	  }
	}
	
	function openUploadForm()
	{
		window.open("img_upload.php","","toolbars=no,height=240,width=465");
	}
	
	function updateDaerah(thisForm)
	{
	  if (thisForm.category_state.value==0)
	    EmptyList(thisForm.category_district);
	  if (thisForm.category_state.value=='WPKL')
	    WPKLDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='WPPJ')
	    WPPJDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='WPLB')
	    WPLBDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='MK')
	    MelakaDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='NS')
	    NSembilanDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='SL')
	    SelangorDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='PK')
	    PerakDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='PP')
	    PinangDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='KH')
	    KedahDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='PS')
	    PerlisDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='KN')
	    KelantanDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='TR')
	    TerengganuDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='PH')
	    PahangDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='SBH')
	    SabahDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='SWK')
	    SarawakDaerahList(thisForm.category_district);
	  if (thisForm.category_state.value=='JH')
	    JohorDaerahList(thisForm.category_district);
	}
	
