<!--
var url = "http://www.superwraps.com/includes/chooseFunctions.php?CarType=";
var http = getHTTPObject();
function handleHttpResponse() {
  if (http.readyState == 4) {
    if (http.responseText.indexOf('invalid') == -1) {
      var xmlDocument = http.responseXML;
      	var HasFullView = xmlDocument.getElementsByTagName('HasFullView').item(0).firstChild.data;
      	var HasWindowView = xmlDocument.getElementsByTagName('HasWindowView').item(0).firstChild.data;
		var HasTailgateView = xmlDocument.getElementsByTagName('HasTailgateView').item(0).firstChild.data;
		//alert("window "+HasWindowView);
		if(HasFullView==0){
			document.form1.CarView[0].disabled=true;
		}
		else{
			document.form1.CarView[0].disabled=false;
		}
		if(HasWindowView==0){
			document.form1.CarView[1].disabled=true;
		}
		else{
			document.form1.CarView[1].disabled=false;
		}
		if(HasTailgateView==0){
			document.form1.CarView[2].disabled=true;
		}
		else{
			document.form1.CarView[2].disabled=false;
		}

      isWorking = false;
    }
  }
}
var isWorking = false;
function updateViews(designType) {
  if (!isWorking && http) {
	carType = document.form1.CarType.options[document.form1.CarType.selectedIndex].value;
	//alert("here "+carType);
    http.open("GET", url + escape(carType)+"&DesignType="+escape(designType), true);
    http.onreadystatechange = handleHttpResponse;
    isWorking = true;
    http.send(null);
  }
}
function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}
//-->