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

var formcheck = 'rad1';
       var url = "order.php?string=";
	 
		function handleHttpResponse() {   
	   //alert (http.readyState);
        if (http.readyState == 4) {
              if(http.status==200) {
              
              }
              }
        }
      
       function send_order(order){
		http.open("GET", url + escape(order) , true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);		
		}


		

		
function getHTTPObject() {
  var xmlhttp;

  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
   
}
  return xmlhttp;

 
}

var http = getHTTPObject(); // We create the HTTP Object

 function doorder(ul){
 //alert(ul);
var list=document.getElementById(ul);
 var items = list.getElementsByTagName("li");
    var itemsString = "";
    for (var i = 0; i < items.length; i++) {
        if (itemsString.length > 0) itemsString += "|";
        itemsString += items[i].id;
    }
	send_order( itemsString);
  //  alert ( itemsString);
 }
