function ReviewReplyToggle(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}

function StripChars(Input) {

    var Output=""
    
    for (a=0; a<Input.length; a++) {
        var Char = Input.charAt(a).toLowerCase()    
        if ((Char>="0" && Char<="9") || (Char>="a" && Char<="z")){
         Output+=Input.charAt(a)
        }
    }
    return Output
}



// Provide the XMLHttpRequest class for IE 5.x-6.x:
if( typeof XMLHttpRequest == "undefined" ) XMLHttpRequest = function() {
  try { return new ActiveXObject("Msxml2.XMLHTTP.6.0") } catch(e) {}
  try { return new ActiveXObject("Msxml2.XMLHTTP.3.0") } catch(e) {}
  try { return new ActiveXObject("Msxml2.XMLHTTP") } catch(e) {}
  try { return new ActiveXObject("Microsoft.XMLHTTP") } catch(e) {}
  throw new Error( "This browser does not support XMLHttpRequest." )
};


function ShowAllComments(rID) {
	var http = false;
	http = new XMLHttpRequest();
	  http.open("GET", "../actinet/plugins/plug_ratings/external-ajax.php?all=true&actProdID="+rID, true);
	  http.onreadystatechange=function() {
	    if(http.readyState == 4) {
	      document.getElementById('Review'+rID).innerHTML = http.responseText;
	    }
	  }
	  http.send(null);
}
