<!--
 
 function createRequestObject() 
     {
           var xmlhttp;
	 try 
                 { 
                    xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
                 }
	  catch(e) 
                 {
	    try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
	    catch(f) { xmlhttp=null; }
	    }
	        if(!xmlhttp&&typeof XMLHttpRequest!="undefined") 
                        {
	  	   xmlhttp=new XMLHttpRequest();
	           }
		   return  xmlhttp;
 }
 
 function sndRating(idnum,rateval) 
  {
	  
	var http = createRequestObject();
	var dvelement = document.getElementById('dvResp');
            dvelement.innerHTML = "<img src='images/progressimgred.gif'>";
           	http.open('GET', 'ratingprocess.asp?id='+idnum+'&rateval='+rateval);
		  	http.onreadystatechange = function() 
			{
        		if (http.readyState==4){
              			 if(http.status==200){
                   			respuesta=http.responseText;
							update = respuesta.split('|');
							
                  			document.getElementById('dvResp').innerHTML=update[0];
							document.getElementById('result').innerHTML=update[1];
						}
				}else if(http.status==404){
                      			//capaContenedora.innerHTML = "La direccion no existe";
                		}
						else
                   		{
							//alert("Error: "+http.status);
                         }
                
             }
         http.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
         http.send(null);
         return;
	} 

				 
				 
		