function doEcho1(text) 
{

document.echo.category.value=text;
div2.style.visibility='hidden';
}


function Start(page) 
{
  OpenWin = this.open(page, "menu", "height=520,width= 900,"+
  "directories=no,location=no,menubar=no," +
  "resizable,status=no,toolbar=no,history=no,scrollbars=yes");
  OpenWin.focus();
}
function checkAll(field, value) {
for (var i=0;i<document.forms[0].elements[field].length;i++) {
if(value == 1) {
document.forms[0].elements[field][i].checked = true
} else {
document.forms[0].elements[field][i].checked = false
}
}
} 

function getquerystring(formid) {
    var form    = document.forms[formid];
	var de = form.de.value;
	
    qstr = 	 'prodidx='  + escape(de) ;  
    alert (qstr);
}


function pricechange(formid) {


de = document.forms["frm1"].elements["de"].value

if(de == 'RL') {
  html='<p><label  for="pf">Price min: </label><select name="pf"><option value="0"> 0</option><option value="250"> 250</option><option value="500"> 500</option><option value="750"> 750</option><option value="1000"> 1000</option></select></p><p>	<label  for="pt">Price max: </label><select name="pt"><option value="250"> 250</option><option value="500"> 500</option><option value="750"> 750</option><option value="1000"> 1000</option><option value="99999" selected> 1000 +</option></select> </p>';
document.getElementById('prices').innerHTML = html;
}
 if(de == 'RS') {
   html='<p><label  for="pf">Price min: </label><select name="pf"><option value="0"> 0</option><option value="100000"> 100,000</option><option value="200000"> 200,000</option><option value="300000"> 300,000</option><option value="400000"> 400,000</option></select></p><p>	<label  for="pt">Price max: </label><select name="pt"><option value="100000"> 100,000</option><option value="200000"> 200,000</option><option value="300000"> 300,000</option><option value="400000"> 400,000</option><option value="2000000" selected> 500,000 +</option></select> </p>';
document.getElementById('prices').innerHTML = html;
} 
   


}

  function showDiv(id) 

{
 //alert (id);
 var divid=  id;
     if (document.getElementById)
     { // DOM3 = IE5, NS6
	 //alert (document.getElementById(divid).style.display);
       if(document.getElementById(divid).style.display == 'block')
       {document.getElementById(divid).style.display = 'none';
	   document.getElementById(divid).style.visibility= 'hidden';
	  //document.getElementById(id).innerHTML = '';
	   }
       else
       {document.getElementById(divid).style.display = 'block';
	   document.getElementById(divid).style.visibility= 'visible';
	   //document.getElementById(id).innerHTML = 'Added';
	   }
     }
     else
     {
       if (document.layers)
       { // Netscape 4
         document.hideShow.display = 'block';
       }
       else 
       { // IE 4
           document.all.hideShow.style.display = 'block';
       }
     }
}




