function helppoisk() {
	help=window.open("helppoisk.htm", "HelP", "width=399,height=299,toolbar=no,status=no,scrollbars=no,menubar=no,resizable=no");
    help.focus();
    
}




function spisok (poisk,MID,RID,VID,ids) {
    var xml_http = null;
    if (window.XMLHttpRequest){
        xml_http = new XMLHttpRequest();
    }
    else if (window.ActiveXObject){
        try{
            xml_http = new ActiveXObject("Msxml2.XMLHTTP");
            }
        catch(e){
            try{
                xml_http = new ActiveXObject("Microsoft.XMLHTTP");
            }
        catch(e){}
        }
    }
    
   
   switch (ids) {
	  case 1:
	     xml_http.open("GET", "spisok.aspx?ids=1&MID="+MID, true)
    xml_http.onreadystatechange = function() {
        if (xml_http.readyState == 4) {
            document.getElementById("spisok1").innerHTML = xml_http.responseText
            document.getElementById("spisok2").innerHTML = ""
           document.getElementById("spisok3").innerHTML = ""
       }
    }
    xml_http.send(null)
	    break
	    case 2:
	     xml_http.open("GET", "spisok.aspx?ids=2&MID="+MID+"&RID="+RID, true)
    xml_http.onreadystatechange = function() {
        if (xml_http.readyState == 4) {
            document.getElementById("spisok2").innerHTML = xml_http.responseText
           document.getElementById("spisok3").innerHTML = ""
        }
    }
    xml_http.send(null)
	    break
	    case 3:
	     xml_http.open("GET", "spisok.aspx?ids=3&MID="+MID+"&RID="+RID+"&VID="+VID, true)
    xml_http.onreadystatechange = function() {
        if (xml_http.readyState == 4) {
            document.getElementById("spisok3").innerHTML = xml_http.responseText
            document.PoiskName.poisk.focus()
        }
    }
    xml_http.send(null)
	    break
	     case 4:
	     xml_http.open("GET", "spisok.aspx?ids=4&MID="+MID+"&RID="+RID+"&VID="+VID, true)
    xml_http.onreadystatechange = function() {
        if (xml_http.readyState == 4) {
            document.getElementById("pravilo").innerHTML = xml_http.responseText
            document.PoiskNameEdite.poisk_good.focus()
        }
    }
    xml_http.send(null)
	   break
	    default:
	   
	}
}

