<!--
document.writeln ("<script language='JavaScript'>");
document.writeln ("<!--Begin of Script--");
document.writeln ("var namaMerek = merek.split(',');");
document.writeln ("var MerekLoaded = 0;");
document.writeln ("function loadMerek()");
document.writeln ("{");
document.writeln ("if (MerekLoaded < 1){");
document.writeln ("MerekLoaded = 1;");
document.writeln ("var kodeMerek = kode.split(',');");
document.writeln ("document.spek.merek.length = 1;");
document.writeln ("document.spek.model.length = 1;");
document.writeln ("for (var i = 0; i < namaMerek.length; i++)");
document.writeln ("document.spek.merek.options[i + 1] = new Option(namaMerek[i], kodeMerek[i]);");
document.writeln ("document.spek.merek.options[0].selected = true;");
document.writeln ("document.spek.model.options[0].selected = true;");
document.writeln ("}}");
document.writeln ("function loadModel()");
document.writeln ("{");
document.writeln ("var currMerek = document.spek.merek.selectedIndex;");
document.writeln ("document.spek.model.length = 1;");
document.writeln ("if (currMerek > 0)");
document.writeln ("{");
document.writeln ("var namaModel = model[currMerek - 1].split(',');");
document.writeln ("for (var i = 0; i < namaModel.length; i++)");
document.writeln ("document.spek.model.options[i + 1] = new Option(namaModel[i], namaModel[i]);");
document.writeln ("}");
document.writeln ("document.spek.model.options[0].selected = true;");
document.writeln ("document.spek.namaMerek.value = namaMerek[currMerek - 1];");
document.writeln ("}");
document.writeln ("function validData()");
document.writeln ("{");
document.writeln ("if (document.spek.merek.options[0].selected)");
document.writeln ("{");
document.writeln ("alert('Pilih Merek mobil yang diinginkan');");
document.writeln ("document.spek.merek.focus;");
document.writeln ("}");
document.writeln ("else if (document.spek.model.options[0].selected)");
document.writeln ("{");
document.writeln ("alert('Pilih Model mobil yang diinginkan');");
document.writeln ("document.spek.model.focus;");
document.writeln ("}");
document.writeln ("else");
document.writeln ("{");
document.writeln ("document.spek.action='http://www.oto.co.id/affiliate/mhatta/list_harga_mobil_baru.asp';");
document.writeln ("document.spek.submit()");
document.writeln ("}");
document.writeln ("}");
document.writeln ("//--End Of Script-->");
document.writeln ("</script>");
document.writeln ("<form name='spek' method='post' onsubmit='validData();'>");
document.writeln ("<table border='0' width='120' cellspacing='0' cellpadding='2' bgcolor='#003366'><tr><td>");
document.writeln ("<table border='0' width='120' cellspacing='0' cellpadding='0' bgcolor='#ffffcc'>");
document.writeln ("<tr>");
document.writeln ("<td width='100%' align='center' valign='middle'><img border='0' src='http://www.oto.co.id/images/poweredby.gif' alt='oto.co.id' width='120' height='32'></td>");
document.writeln ("</tr>");
document.writeln ("<tr>");
document.writeln ("<td width='100%' height='20' align='center'>");
document.writeln ("<font color='#cc0000'>");
document.writeln ("<span style='font-family: Arial; font-size: 12px; font-weight: bold'>");
document.writeln ("Cari Mobil Baru?</span>");
document.writeln ("</td>");
document.writeln ("</tr>");
document.writeln ("<tr>");
document.writeln ("<td width='100%' align='center'>");
document.writeln ("<select name='merek' size='1' style='width: 110px; font-family: Arial; font-size: 12px; font-weight: bold' onFocus='loadMerek();' onChange='loadModel();'>");
document.writeln ("<option value='' selected>Pilih Merek</option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("</select>");
document.writeln ("<input type='hidden' name='namaMerek'>");
document.writeln ("<input type='hidden' name='kota' value='JABOTABEK'>");
document.writeln ("</td>");
document.writeln ("</tr>");
document.writeln ("<tr>");
document.writeln ("<td width='100%' align='center'>");
document.writeln ("<select name='model' size='1'  style='width: 110px; font-family: Arial; font-size: 12px; font-weight: bold'>");
document.writeln ("<option value='' selected>Pilih Model</option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("<option value=''> </option>");
document.writeln ("</select>");
document.writeln ("</td>");
document.writeln ("</tr>");
document.writeln ("<tr>");
document.writeln ("<td width='100%' height='30' align='center'>");
document.writeln ("<input style='font-weight: bold; font-size: 12px; font-family: Arial,Tahoma,Verdana' type='submit' value=' PROSES '>");
document.writeln ("</td>");
document.writeln ("</tr>");
document.writeln ("</table>");
document.writeln ("</td></tr></table>");
document.writeln ("</form>");
//-->
