function CekField(Field)
	{
		return true;
	}

function GoModule(Module,Page,Part,Var1,Var2,Var3,Var4,Var5,IdProp,IdKab,IdKec,IdDesa,IdSek,Hal)
{
	document.write ("<form name=fmModule method=post action='index.php'>")
	document.write ("<input type=hidden name=Module value='"+Module+"' >")
	document.write ("<input type=hidden name=Page value='"+Page+"' >")
	document.write ("<input type=hidden name=Part value='"+Part+"' >")
	document.write ("<input type=hidden name=Var1 value='"+Var1+"' >")
	document.write ("<input type=hidden name=Var2 value='"+Var2+"' >")
	document.write ("<input type=hidden name=Var3 value='"+Var3+"' >")
	document.write ("<input type=hidden name=Var4 value='"+Var4+"' >")
	document.write ("<input type=hidden name=Var5 value='"+Var5+"' >")
	document.write ("<input type=hidden name=IdProp value='"+IdProp+"' >")
	document.write ("<input type=hidden name=IdKab value='"+IdKab+"' >")
	document.write ("<input type=hidden name=IdKec value='"+IdKec+"' >")
	document.write ("<input type=hidden name=IdDesa value='"+IdDesa+"' >")
	document.write ("<input type=hidden name=IdSek value='"+IdSek+"' >")
	document.write ("<input type=hidden name=Hal value='"+Hal+"' >")
	document.write ("</form>")
	fmModule.submit()
//	MyFormGis.IDKEC.value = IdKec
//	MyFormGis.submit();
}



function popUp(URL, type) {
//	var nilai = "";
	day = new Date();
	id = day.getTime();
//	sWidth = (screen.width*80)/100;
//	sHeight = (screen.height*80)/100;
//	pTop = (screen.Height-sHeight)/2;
//	pLeft = (screen.Width-sWidth)/2;
	tIdKec = FormWilayah.Kec.value;
	tIdDesa = FormWilayah.Des.value;
	URL = URL+"&IdKec="+tIdKec+"&IdDesa="+tIdDesa+"&Hay=Gue";
	sWidth = ((screen.width)/2)+100;
	sHeight = (screen.height*80)/100;
	pTop = 50;
	pLeft = ((screen.Width)/2)-20;
	MyObjek = new Object();
	MyObjek.modal = "";
	MyObjek.xy = "";
	MyObjek.teks = "";
	MyObjek.url = URL;
	//alert(MyObjek.url);
	if (type == 1) {
		//window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=590,height=440,left = 262,top = 134');
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+sWidth+",height="+sHeight+",left = 262,top = 134');");
	} else {
		//		window.showModalDialog(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,titlebar=0,width=590,height=440,left = 262,top = 134');
		window.showModalDialog(URL, MyObjek , "dialogWidth:"+sWidth+"px;dialogHeight:"+sHeight+"px;resizeable:no;status:no;scrollbars:yes;dialogTop:"+pTop+";dialogLeft:"+pLeft+"");
		//alert("hello : "+MyObjek.nilai);
		if (MyObjek.modal=='1')
		{
			popUp(MyObjek.url,0);
		}
		if (MyObjek.modal=='2')
		{
			tunjukLokasi(MyObjek.xy,MyObjek.teks);
		}
	}
}


function HapusIsiElemen(o)
	{
		i=0;
		while (o.elements[i])
			{
				n = o.elements[i].type;
				if(n != 'button' && n != 'submit' && n != 'reset' && n != 'image' && n != 'radio')
					{
						o.elements[i].value = '';
					}
				i++;
			}
	}



	function klikTingkat(oGanti,oGantiText,oPrg,arrPrg)
		{
			oGanti.innerHTML = oGantiText;
			//alert(oPrg)
			oPrg.innerHTML = "";
			jml = arrPrg[0].length;
		for (i=0;i<jml;i++ )
			{
				cText = arrPrg[1][i];
				cValue = arrPrg[0][i];
				Combo(oPrg,cValue,cText)
			}
		}

	function Combo(o,cValue,cText)
	{
	 oOption = o.document.createElement("OPTION");
	 oOption.value = cValue	;
	 oOption.text =  cText;
	 o.add(oOption);
	}