// --------------------------------------------------------------
// Nama file: submit_confirm.js
// Developer: Andri Ferdianto
// Tanggal: 19 November 2003
//
//      JavaScript untuk menghandle setiap aksi submit_form.php
//
// Update:
//     1. Nama developer
//      Tanggal:
//      Rincian:
//     2. Nama developer
//      Tanggal:
//      Rincian:
// -------------------------------------------------------------

function save_click(objek)
{
	obj = window.document.MyForm;

	test = uji(obj);
	if(test)
	{
		obj.submit();
	}
}

function sector_change()
{
	obj = window.document.MyForm;

	obj.locationSector.style.color = "black";
	obj.style.fontWeight = "normal";

	if (obj.sector.value == 0 || obj.sector.value == (obj.sector.length - 1))
	{
		obj.locationSector.id = 'Sector|||0';
	} else
	{
		obj.locationSector.id = 'Sector|||';
	}
}

function location_change()
{
	obj = window.document.MyForm;

	obj.locationOther.style.color = "black";
	obj.style.fontWeight = "normal";

	if (obj.locations.value == 0 || obj.locations.value == (obj.locations.length - 1))
	{
		obj.locationOther.id = 'Location|||0';
	} else
	{
		obj.locationOther.id = 'Location|||';
	}
}