
function getitems(value,id)
{
if (value in {"":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1})
  {
  return;
  } 
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
		document.getElementById(id+"div").style.display="block";
		var box=document.getElementById(id);
		box.options.length=0;
		box.options[0]=new Option('','');
		if(xmlhttp.responseText){
		var arrbox=xmlhttp.responseText.split(",");
		for(i=0;i<arrbox.length;i+=2)
		if(arrbox[i])
		box.options[box.options.length]=new Option(arrbox[i+1],arrbox[i]);	
		}
   // document.getElementById(id).innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","getitems.php?value="+value+"&id="+id,true);
xmlhttp.send(null);
}
function hideelement(element){
for(var i=0;i<element.length;i++)
		document.getElementById(element[i]).style.display='none';
}
