<!--

  function setPriceRange(srcSelect, destSelect, catid_acc)
  {
    var srcSel  = document.getElementById(srcSelect);
    var destSel = document.getElementById(destSelect);

    //clears the select object
    destSel.options.length=0;

    var selectedCatId = srcSel.options[srcSel.selectedIndex].value;
    var prText;
    var prValue;

    if(catid_acc == selectedCatId){
      prText = new Array('Pilih Selang Harga',
                         'di bawah 0,5 juta',
                         'antara 0,5 - 1 juta',
                         'antara 1 - 1,5 juta',
                         'antara 1,5 - 2 juta',
                         'di atas 2 juta',
                         'semua harga');

      prValue = new Array('',
                          '0-500000',
                          '500000-1000000',
                          '1000000-1500000',
                          '1500000-2000000',
                          '2000000-*',
                          '0-*');
    }else{
      prText = new Array('Pilih Selang Harga',
                         'di bawah 1 juta',
                         'antara 1 - 2 juta',
                         'antara 2 - 3 juta',
                         'antara 3 - 4.juta',
                         'di atas 4 juta',
                         'semua harga');

      prValue = new Array('',
                          '0-1000000',
                          '1000000-2000000',
                          '2000000-3000000',
                          '3000000-4000000',
                          '4000000-*',
                          '0-*');
    }

    for(i=0;i<prText.length;i++)
    {
     destSel.options[i] = new Option(prText[i],prValue[i]);
    }
  }

  function setFeature(srcSelect, destSelect, catid_hp)
  {
    var srcSel  = document.getElementById(srcSelect);
    var destSel = document.getElementById(destSelect);

    //clears the select object
    //destSel.options.length=0;

    var selectedCatId = srcSel.options[srcSel.selectedIndex].value;
    var fText;
    var fValue;

    if (catid_hp == selectedCatId) {
      fText = new Array('3G',
      			'GPRS',
                        'MMS',
                        'Mobile Mail',
                        'Infrared',
                        'Bluetooth',
                        'Kamera',
                        'Video Recorder',
                        'FM Radio',
                        'Music Player',
                        'WAP',
                        'Java Enabled',
                        'Triband',
                        'Layar Warna',
                        'Memory Tambahan',
                        'Polyphonic',
                        'MP3 Ringtone',
                        'Fitur apa saja');

      fValue = new Array('3G',
      			 'GPRS',
                         'MMS',
                         'Mail,email',
                         'Infrared',
                         'Bluetooth',
                         'camera,kamera',
                         'Video',
                         'Radio',
                         'Player',
                         'WAP',
                         'Java',
                         'Triband',
                         'LCD warna,layar warna,warna,color',
                         'Card,card included',
                         'polyphonic',
                         'MP3',
                         '');
    } else{
      fText = new Array('Pilih Fitur');
      fValue = new Array('');
    }

    var noOfOptions = fText.length;
    var theSpan = document.getElementById('dynafiturselect');
    if(noOfOptions <= 1) {
	  theSpan.innerHTML = "<select name='feature' class='FT' id='findfeature'>"
	                    + "  <option value=''>Pilih Fitur</option>"
	                    + "</select>";
    }
    //else if (noOfOptions > 3) {
	//  var size = 3;
	//}
	else {
	  var s = "<select name='feature' class='FT' id='findfeature' size='3' multiple='multiple'>";
      for (i=0; i < fText.length; i++) {
	    s += "  <option value='" + fValue[i] + "'>" + fText[i] + "</option>";
      }
      s += "</select>";
      theSpan.innerHTML = s;
	}

    //for(i=0;i<fText.length;i++)
    //{
    // destSel.options[i] = new Option(fText[i],fValue[i]);
    //}
  }

  function submitForm(form, act) {
     //var theForm = document.forms[formPostion];
     form.act.value=act;
     form.submit();
     return false;
  }

  function doPrintWindow(){
    bV = parseInt(navigator.appVersion);
    if (bV >= 4) {
      window.print();
    }
  }

  function doPrint() {
  doPrintWindow();
  setTimeout('window.close()', 2000);
  }

-->
