function parseResults(res,box){
	if(res=="ERROR1"){
		var box = document.getElementById("comp"+box);
		box.checked=false;
		alert("Maximum of 4 models only");
	}
}
function addBox(boxId){
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==1)
      {
		//document.getElementById("solutions").innerHTML="";
		//document.getElementById("mainImg").src="assets/main_search.gif";
		
      }
    if(xmlHttp.readyState==4)
      {
		parseResults(xmlHttp.responseText,boxId);
		//document.getElementById("mainImg").src="assets/main_start.gif";
      }
    }
  xmlHttp.open("GET","_addBox.php?boxId="+boxId,true);
  xmlHttp.send(null);
}
//addLoadEvent(getSolutions);
