var subcategoryindex=0;
var referentialflag=false;




function changecss(obj,css,submenu,visual)
{
	var menutable=null;
	if (submenu!=null)
	{	
		menutable=document.getElementById(submenu);
		menutable.style.visibility=visual;
	}
	obj.className=css;	
}

function buyselect(obj,css)
{
	var tr=obj.parentNode;
	var nextTr=tr.nextSibling;
	var cellNumber=obj.cellIndex;
	var cell=nextTr.cells[cellNumber];
	
	changecss(obj,css);
	nextTr.deleteCell(cellNumber+1);
	cell.colSpan="2";
	cell.className=css;
	cell.innerText="Today : 4 536 Ads";
	cell.style.paddingLeft="20px";
	}
function buydeselect(obj,css)
{
	var tr=obj.parentNode;
	var nextTr=tr.nextSibling;
	var cellNumber=obj.cellIndex;
	var cell=nextTr.cells[cellNumber];
	
	changecss(obj,css);
	cell.colSpan="1";
	cell.className="";
	cell.innerText="";
	nextTr.insertCell(cellNumber+1);
	}

function automobile()
{
	var table=document.getElementById("menu");
	var tablerowauto
	var tablerow=document.getElementById("motobike");
	var temprow;
	var td;
	if (tablerow.rowIndex==1)
	{
		temprow=table.insertRow(1);
		td=document.createElement("td");
		td.className="subnormaloutset";
		td.innerHTML="Van";
		temprow.appendChild(td);
		td.onmouseover=function(){changecss(this,'subselectedoutset');};
		td.onmouseout=function(){changecss(this,'subnormaloutset');};
		
		temprow=table.insertRow(1);
		td=document.createElement("td");
		td.className="subnormaloutset";
		td.innerHTML="Monospace";
		temprow.appendChild(td);
		td.onmouseover=function(){changecss(this,'subselectedoutset');};
		td.onmouseout=function(){changecss(this,'subnormaloutset');};
		
		
		
		
		temprow=table.insertRow(1);
		td=document.createElement("td");
		td.className="subnormaloutset";
		td.innerHTML="Coupe";
		temprow.appendChild(td);
		td.onmouseover=function(){changecss(this,'subselectedoutset');};
		td.onmouseout=function(){changecss(this,'subnormaloutset');};
		
		temprow=table.insertRow(1);
		td=document.createElement("td");
		td.className="subnormaloutset";
		td.innerHTML="Cabrio";
		temprow.appendChild(td);
		td.onmouseover=function(){changecss(this,'subselectedoutset');};
		td.onmouseout=function(){changecss(this,'subnormaloutset');};
		
		temprow=table.insertRow(1);
		td=document.createElement("td");
		td.className="subnormaloutset";
		td.innerHTML="4 &times; 4";
		temprow.appendChild(td);
		td.onmouseover=function(){changecss(this,'subselectedoutset');};
		td.onmouseout=function(){changecss(this,'subnormaloutset');};
		
		temprow=table.insertRow(1);
		td=document.createElement("td");
		td.className="subnormaloutset";
		td.innerHTML="Sedan";
		temprow.appendChild(td);
		td.onmouseover=function(){changecss(this,'subselectedoutset');};
		td.onmouseout=function(){changecss(this,'subnormaloutset');};
	}
	else
	{
		
		var end=tablerow.rowIndex;
		for(var i=1;i<end;i++)
		{
			
			table.deleteRow(1);
			
		}
	}
	return;
}
/*
function clickmenu(obj,addr)
{
	var tr=obj.parentNode;
	for (var i=0;i<tr.cells.length;i++)
	{
		tr.cells[i].className="menu";
	}
	obj.className="menuselected";
	window.location=addr;
}
*/



function accountValidate(surface,url){
       
        
        var http=getHTTPObject();
      
       
	    var account = partRegisterForm.account.value;
	    
	    var str=url+"/AccountValidateUser?account="+account+"&url="+url+"&surface="+surface;
	       
          http.open("POST", str, false); 
		
		
		  http.onreadystatechange = getHello; 
		 
          http.send();  
          
          if(getHello(surface)) {
         
          return true;
          }else{
         
          return false;
          }

function getHello(surface)       
    { 
          
          if (http.readyState == 4) 
          { 

               
                 var helloStr = http.responseText; 
               
                 if(helloStr=="<img src='"+url+"/img/exclamation.gif' id='countimg' onclick='erroContent(this)'><font style='font-weight:bold;color:red'>"+surface+"</font>"){
                   document.getElementById('counttd').innerHTML=helloStr;
                  
                  return false;
                 
                   
                }else{
                  document.getElementById('counttd').innerHTML=helloStr;
                  
                  return true;
                }
	         
          }
    }         
                            

}



 function getHTTPObject() {                       
          var http;
          
          if(window.ActiveXObject) 
          {  
                //if use IE?return XMLHTTP  ActiveX  object
                http = new ActiveXObject("Microsoft.XMLHTTP"); 
          }
          else
          {  
                //else return XMLHttpRequest object
                http = new XMLHttpRequest(); 
          }

          return http;
    }




















function pwCheckAgain(obj,td,surface){
	var temptd = document.getElementById(td);
	var opd = document.getElementById("registerpassword");
	if(obj.value==""){
		temptd.innerHTML="<img src='img/exclamation.gif' id='passwordagainimg' onclick='erroContent(this)'><font style='font-weight:bold;color:red'>"+surface+"</font>";
		//obj.focus();
		return false;
	}else if(obj.value!==opd.value){
		temptd.innerHTML="<img src='img/exclamation.gif' id='passwordagainimg' onclick='erroContent(this)'><font style='font-weight:bold;color:red'>"+surface+"</font>";
		obj.focus();
		return false;
	}else{
		document.getElementById('passwordagaintd').innerHTML="<font style='font-weight:bold'>"+surface+"</font>";
		return true;
	}
}

//////////////////////////////////////////////other check////////////////////////////////////////////

//when user choose the third radio button,this function will be called
function choose3(){
		document.all.password.innerHTML="<table >"+
		  "<tr>"+
		    "<td id='companytd' align='right'><font style='font-weight:bold'>Company:</font>"+
			"</td>"+
			"<td><input type='text' name='company'>"+
			"</td>"+
			"<td id='nurntd' align='right'><font style='font-weight:bold'>National registed number:</font>"+
			"</td>"+
			"<td><input type='text' name='nurn'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td id='responsibleFirstnametd' align='right'><font style='font-weight:bold'>responsible First name:</font>"+
			"</td>"+
			"<td><input type='text' name='responsibleFirstname'>"+
			"</td>"+
			"<td id='nameinvoicingtd' align='right'><font style='font-weight:bold'>Name invoicing:</font>"+
			"</td>"+
			"<td><input type='text' name='nameinvoicing'>"+
			"</td>"+
		  "</tr><tr>"+
		    "<td id='telephonefixestd' align='right'><font style='font-weight:bold'>Telephone fixes:</font>"+
			"</td>"+
			"<td><input type='text' name='telephonefixes'>"+
			"</td>"+
			"<td id='mobiletelephonetd' align='right'><font style='font-weight:bold'>mobile Telephone</font>"+
			"</td>"+
			"<td><input type='text' name='mobiletelephone'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>Fax:</font>"+
			"</td>"+
			"<td><input type='text' name='fax'>"+
			"</td>"+
			"<td id='responsiblee-mailinvoicingtd' align='right'><font style='font-weight:bold'>responsible e-mail invoicing:</font>"+
			"</td>"+
			"<td><input type='text' name='responsiblee-mailinvoicing'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>Address:</font>"+
			"</td>"+
			"<td><input type='text' name='address'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>Sector:</font>"+
			"</td>"+
		    "<td><input type='text' name='sector:'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>postal code:</font>"+
			"</td>"+
			"<td><input type='text' name='postalcode'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>invoicing City:</font>"+
			"</td>"+
			"<td><input type='text' name='invoicingcity:'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>responsible First name:</font>"+
			"</td>"+
			"<td><input type='text' name='esponsiblefirstname:'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>Name establishment:</font>"+
			"</td>"+
			"<td><input type='text' name='nameestablishment'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>Phone fixe number:</font>"+
			"</td>"+
			"<td><input type='text' name='phonefixenumber'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>mobile phone:</font>"+
			"</td>"+
			"<td><input type='text' name='mobilephone'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>Fax number:</font>"+
			"</td>"+
			"<td><input type='text' name='faxnumber'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>responsible establishment e-mail:</font>"+
			"</td>"+
		    "<td><input type='text' name='responsibleestablishmente-mail'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>Address:</font>"+
			"</td>"+
			"<td><input type='text' name='address'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>Sector:</font>"+
			"</td>"+
			"<td><input type='text' name='sector'>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>postal code:</font>"+
			"</td>"+
			"<td><input type='text' name='postalcode'>"+
			"</td>"+
			"<td align='right'><font style='font-weight:bold'>establishment City:</font>"+
			"</td>"+
			"<td><input type='text' name='establishmentcity'>"+
			"</td>"+
		  "</tr>"+
		   "<tr>"+
		    "<td align='right'><font style='font-weight:bold'>Country:</font>"+
			"</td>"+
			"<td><select name='country'>"+
			    "<option value='France'>Romania"+
				"<option value='Romania'>France"+
				"<option value='apple'>English"+
				"<option value='orange'>Australia"+
				"<option value='apple'>American"+
				"<option value='orange'>Italia"+
				"<option value='orange'>Roman"+
				"<option value='apple'>German"+
				"<option value='orange'>China"+
				"<option value='apple'>Korea"+
				"<option value='orange'>Greece"+
		    "</select>"+
			"</td>"+
			"<td id='counttd' align='right'><font style='font-weight:bold'>Counts:</font>"+
			"</td>"+
			"<td><input type='text' name='logincounts'>"+
			"</td>"+
		  "</tr>"+
			"<td id='passwordtd' align='right'><font style='font-weight:bold'>Password:</font>"+
			"</td>"+
			"<td><input type='text' name='passwordcounts'>"+
			"</td>"+
			"<td id='passwordagaintd' align='right'><font style='font-weight:bold'>Password again:</font>"+
			"</td>"+
			"<td><input type='text' name='passwordagaincounts'>"+
			"</td>"+
		  "<tr>"+
			"<td bgcolor='#666666' colspan='4' align='center'>"+
			  "<div color='#ffffff'>I would like to receib commercial offers and gift from our best partners by e-mail; I can change anytime</div>"+
			  "<input type='radio' name='radio' checked>YES<input type='radio' name='radio'>NO"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
			"<td bgcolor='lightyellow' colspan='4' align='center'>"+
			  "<input type='checkbox' name='checkbox'>I have read and fully accept all <a href='#'>general conditions if sales</a>"+
			"</td>"+
		  "</tr>"+
		  "<tr>"+
			"<td colspan='4' align='center' align='center'><input id='submit' type='button' value='creat my account' name='submit' style='height:25px;width:120px;background-color:orange' onclick='submitCheck3()'>"+
			"</td>"+
		  "</tr>"+
		"</table>";
}





function bigpicture(obj){	
	
	big.src="img/pic.jpg"
	}



function picture(obj){
	var big = document.getElementById("big");	
	big.src=obj.src;
	}



function show(){ 

	if(change.style.visibility=="visible")
  
  {
 	 	  change.style.visibility="hidden"
      }
  	else{change.style.visibility="visible"}
  
 
}




function show1(){ 
	
	
	 if(price.innerText=="10 000")
	  {
	 dropdown.src="img/select1.jpg";
	 change.style.visibility="hidden"
   price.innerText="11 700";
    change.innerHTML="&euro;"
    }
     else{dropdown.src="img/select.jpg";
	 change.style.visibility="hidden";
   price.innerText="10 000";
   change.innerText="$"
     	
     	}
 
  }

function clickmenu(obj,addr)
{
	window.location=addr; 	
}
function zreset(url){
input.value="";
zex.src=url+"/img/eurup.jpg"; 
zron.innerText="RON";
}
function zshowex(){
if(zchoose.style.visibility=="visible")
  
  {
 	 	  zchoose.style.visibility="hidden"
      }
  	else{zchoose.style.visibility="visible"}
}
function  tochange(url){
      if(zron.innerText=="RON")
	  {zex.src=url+"/img/ronup.jpg";
	  input.value=input.value*3.45;
	  zchoose.style.visibility="hidden";
	  zron.innerText="EUR";
	  
	  } 
      else{
      zex.src=url+"/img/eurup.jpg";
	  input.value=input.value/3.45;
	  zchoose.style.visibility="hidden";
	  zron.innerText="RON";
      
      }     
}
					
	
	
function change(){
        	 	if(announce.style.visibility=="visible")
                {
 	 	              announce.style.visibility="hidden"
                 }
           	else{announce.style.visibility="visible"
           		      }
                                }
function  change1(){
        	   	 if(price.innerText=="10 000")
	  {
	 country.background="img/dropdownhalf1.jpg"
	 announce.style.visibility="hidden"
   price.innerText="34 645";
   ron.innerText="EUR";
   priceannounce.style.visibility="visible"
    }
     else{country.background="img/dropdownhalf3.jpg"
	 announce.style.visibility="hidden";
   price.innerText="10 000";
   ron.innerText="RON";
   priceannounce.style.visibility="hidden"
     	
     	}
 
}
function  zchange1(){
        	   	 if(price.innerText=="10 000")
	  {
	 country.background="img/zdropdownhalf1.jpg"
	 announce.style.visibility="hidden"
   price.innerText="34 645";
   ron.innerText="EUR";
   priceannounce.style.visibility="visible"
    }
     else{country.background="img/zdropdownhalf3.jpg"
	 announce.style.visibility="hidden";
   price.innerText="10 000";
   ron.innerText="RON";
   priceannounce.style.visibility="hidden"
     	
     	}
 
}
function  newchange(){
        	   	 if(price.innerText=="10 000")
	  {
	 zdrop.src="img/newdropdown1.jpg"
	 announce.style.visibility="hidden"
   price.innerText="34 645";
   ron.innerText="EUR";
   priceannounce.style.visibility="visible"
    }
     else{zdrop.src="img/newdropdown.jpg"
	 announce.style.visibility="hidden";
   price.innerText="10 000";
   ron.innerText="RON";
   priceannounce.style.visibility="hidden"
     	
     	}
 
}				
					
					


function b(){
	document.getElementById("normol").innerHTML="<a href='#' onclick='a()'>Advanced search</a>";
	document.getElementById("searchImg").innerHTML="<img src='img/search.jpg' style='cursor:pointer'/>";
	document.getElementById("advance").innerHTML="<table id='search' width='400px' height='120px' cellspacing='0' >"+
				    "<tr><td rowspan='5' style='background-image:url(img/borderleft120.jpg)' width='11px' height='120px'></td><td colspan='2' style='background-image:url(img/bordertop120.jpg)' width='400px' height='5px'></td><td rowspan='5' style='background-image:url(img/borderright120.jpg)' width='11px' height='120px'></td></tr>"+
					"<tr><td rowspan='3' style='font-weight:bold;padding-left:30px;' align='center' width='25%'><img src='img/car1.jpg' width='90px' height='70px'/></td><td style='font-size:10pt;font-weight:bold'>How can you choose your next car?<br/>Traps to avoid!</td></tr>"+
					"<tr>"+
						"<td style='font-size:10pt;'>"+
							"<a href='' >What are your rights?</a>"+
						"</td>"+		
					"</tr>"+
					"<tr >"+
						"<td style='font-size:10pt;'>"+
							"Check list <a href='#'>&laquo;good sales&raquo;,&laquo;good purchase&raquo;</a>"+
						"</td>"+
					"</tr>"+
					"<tr><td colspan='2' style='background-image:url(img/borderbottom120.jpg)' width='400px' height='4px'></td></tr>"+
				"</table>";
}
function a(){
  var tbl, tbody, tr, td, text; 
  tbl = document.createElement("TABLE");
  tbl.height="180";
  tbl.width="484";
  tbody = document.createElement("TBODY");
  tbl.insertBefore(tbody, null);
  document.getElementById("searchImg").innerHTML="";
  document.getElementById("normol").innerHTML="";
  document.getElementById("advance").innerHTML="<table cellspacing='0' cellpadding='0' width='484px' height='150px'>"+
						"<tr><td colspan='3' style='font-weight:bold;font-size:10pt;'>Advance search</td></tr>"+
						"<tr align='center'>"+
						"<td>"+
							"<select id='subcategory' name='subcategory' style='width:140px'>"+
								"<option value='All under-category'>Gearbox</option>"+
								"<option value='Sedan'>Sedan</option>"+
								"<option value='Monospace'>Monospace</option>"+
								"<option value='Cabrio'>Cabrio</option>"+
								"<option value='4 &times; 4'>4 &times; 4</option>"+
								"<option value='Coupe'>Coupe</option>"+
								"<option value='Jeep'>Jeep</option>"+
								"<option value='SUV'>SUV</option>"+
								"<option value='Van'>Van</option>"+
							"</select>"+
						"</td>"+
						"<td>"+
							"<select id='mileage' name='mileage' style='width:140px'>"+
								"<option value='Mileage max.'>Country</option>"+
								"<option value='1'>&lt;20,000Km</option>"+
								"<option value='2'>20,000-50,000Km</option>"+
								"<option value='3'>50,000-100,000Km</option>"+
								"<option value='4'>100,000-200,000Km</option>"+
								"<option value='5'>200,000-500,000Km</option>"+
								"<option value='6'>&gt;500,000Km</option>"+
							"</select>"+
						"</td>"+
						"<td style='font-size:10pt'>"+
							"<input type='checkbox' id='photo' name='photo' />First hand"+
						"</td></tr>"+
						"<tr align='center'>"+
						"<td>"+
							"<select id='brand' name='brand' style='width:140px'>"+
								"<option value='Brand'>Doors</option>"+
								"<option value='BMW'>BMW</option>"+
								"<option value='BENZ'>BENZ</option>"+
								"<option value='OPEL'>OPEL</option>"+
								"<option value='RENAULT'>RENAULT</option>"+
								"<option value='JAGUAR'>JAGUAR</option>"+
							"</select>"+
						"</td>"+
						"<td>"+
							"<select id='year' name='year' style='width:140px'>"+
								"<option value='Year'>Part and Pro</option>"+
								"<option value='1955'>1955</option>"+
								"<option value='1965'>1965</option>"+
								"<option value='1975'>1975</option>"+
								"<option value='1985'>1985</option>"+
								"<option value='1995'>1995</option>"+
								"<option value='2000'>2000</option>"+
							"</select>"+
						"</td>"+
						"<td style='font-size:10pt'>"+
							"<input type='checkbox' id='photo' name='photo' />Garantee"+
						"</td>"+
						"</tr><tr align='center'>"+
						"<td>"+
							"<select id='model' name='model' style='width:140px'>"+
								"<option value='Model'>Color ext</option>"+
								"<option value='Serie5'>Serie5</option>"+
								"<option value='S500'>S500</option>"+
								"<option value='Senic'>Senic</option>"+
								"<option value='206'>206</option>"+
								"<option value='Boxster'>Boxster</option>"+
								"<option value='911'>911</option>"+
							"</select>"+
						"</td>"+
						"<td>"+
							"<a href='#' onclick='b()'><font size='2px' >To normal search</a>"+
						"</td>"+
						"<td style='font-size:10pt'>"+
							"<img src='img/search.jpg' style='cursor:pointer'/>"+
						"</td></tr>"+
					"</table>";
	 }


function remItem(obj)
   {if (obj == '6')
     { document.getElementById('price6').style.display = 'none';
	   document.getElementById('vATreclamable6').style.display = 'none';
	   document.getElementById('garantee6').style.display = 'none';
	   document.getElementById('brand6').style.display = 'none';
   	   document.getElementById('model6').style.display = 'none';
	   document.getElementById('version6').style.display = 'none';
	   document.getElementById('firsthand6').style.display = 'none';
	   document.getElementById('year6').style.display = 'none';
	   document.getElementById('mileage6').style.display = 'none';
	   document.getElementById('capacity6').style.display = 'none';
	   document.getElementById('energy6').style.display = 'none';
	   document.getElementById('gearbox6').style.display = 'none';
	   document.getElementById('doornumber6').style.display = 'none';
	   document.getElementById('colorint6').style.display = 'none';
	   document.getElementById('romanianregisterdate6').style.display = 'none';
	   document.getElementById('conveyssource6').style.display = 'none';
	   document.getElementById('options6').style.display = 'none';
	 
	 
	   document.getElementById('td6').style.display = 'none';
	   document.getElementById('td_Detail_6').style.display = 'none';
	   document.getElementById('td_basket_6').style.display = 'none';
	 }
	 else if (obj == '5')
     { document.getElementById('price5').style.display = 'none';
	   document.getElementById('vATreclamable5').style.display = 'none';
	   document.getElementById('garantee5').style.display = 'none';
	   document.getElementById('brand5').style.display = 'none';
	   document.getElementById('model5').style.display = 'none';
	   document.getElementById('version5').style.display = 'none';
	   document.getElementById('firsthand5').style.display = 'none';
	   document.getElementById('year5').style.display = 'none';
	   document.getElementById('mileage5').style.display = 'none';
	   document.getElementById('capacity5').style.display = 'none';
	   document.getElementById('energy5').style.display = 'none';
	   document.getElementById('gearbox5').style.display = 'none';
	   document.getElementById('doornumber5').style.display = 'none';
	   document.getElementById('colorint5').style.display = 'none';
	   document.getElementById('romanianregisterdate5').style.display = 'none';
	   document.getElementById('conveyssource5').style.display = 'none';
	   document.getElementById('options5').style.display = 'none';
	 
	 
	 
	   document.getElementById('td5').style.display = 'none';
	   document.getElementById('td_Detail_5').style.display = 'none';
	   document.getElementById('td_basket_5').style.display = 'none';
	 }
	 else if (obj == '4')
	 { document.getElementById('price4').style.display = 'none';
	   document.getElementById('vATreclamable4').style.display = 'none';
	   document.getElementById('garantee4').style.display = 'none';
	   document.getElementById('brand4').style.display = 'none';
	   document.getElementById('model4').style.display = 'none';
	   document.getElementById('version4').style.display = 'none';
	   document.getElementById('firsthand4').style.display = 'none';
	   document.getElementById('year4').style.display = 'none';
	   document.getElementById('mileage4').style.display = 'none';
	   document.getElementById('capacity4').style.display = 'none';
	   document.getElementById('energy4').style.display = 'none';
	   document.getElementById('gearbox4').style.display = 'none';
	   document.getElementById('doornumber4').style.display = 'none';
	   document.getElementById('colorint4').style.display = 'none';
	   document.getElementById('romanianregisterdate4').style.display = 'none';
	   document.getElementById('conveyssource4').style.display = 'none';
	   document.getElementById('options4').style.display = 'none';
	 
	 
	   document.getElementById('td4').style.display = 'none';
	   document.getElementById('td_Detail_4').style.display = 'none';
	   document.getElementById('td_basket_4').style.display = 'none';
	 }
	 else if (obj == '3')
	 { document.getElementById('price3').style.display = 'none';
	   document.getElementById('vATreclamable3').style.display = 'none';
	   document.getElementById('garantee3').style.display = 'none';
	   document.getElementById('brand3').style.display = 'none';
	   document.getElementById('model3').style.display = 'none';
	   document.getElementById('version3').style.display = 'none';
	   document.getElementById('firsthand3').style.display = 'none';
	   document.getElementById('year3').style.display = 'none';
	   document.getElementById('mileage3').style.display = 'none';
	   document.getElementById('capacity3').style.display = 'none';
	   document.getElementById('energy3').style.display = 'none';
	   document.getElementById('gearbox3').style.display = 'none';
	   document.getElementById('doornumber3').style.display = 'none';
	   document.getElementById('colorint3').style.display = 'none';
	   document.getElementById('romanianregisterdate3').style.display = 'none';
	   document.getElementById('conveyssource3').style.display = 'none';
	   document.getElementById('options3').style.display = 'none';
	 
	 
	   document.getElementById('td3').style.display = 'none';
	   document.getElementById('td_Detail_3').style.display = 'none';
	   document.getElementById('td_basket_3').style.display = 'none';
	 }
	 else if (obj == '2')
	 { document.getElementById('price2').style.display = 'none';
	   document.getElementById('vATreclamable2').style.display = 'none';
	   document.getElementById('garantee2').style.display = 'none';
	   document.getElementById('brand2').style.display = 'none';
	   document.getElementById('model2').style.display = 'none';
	   document.getElementById('version2').style.display = 'none';
	   document.getElementById('firsthand2').style.display = 'none';
	   document.getElementById('year2').style.display = 'none';
	   document.getElementById('mileage2').style.display = 'none';
	   document.getElementById('capacity2').style.display = 'none';
	   document.getElementById('energy2').style.display = 'none';
	   document.getElementById('gearbox2').style.display = 'none';
	   document.getElementById('doornumber2').style.display = 'none';
	   document.getElementById('colorint2').style.display = 'none';
	   document.getElementById('romanianregisterdate2').style.display = 'none';
	   document.getElementById('conveyssource2').style.display = 'none';
	   document.getElementById('options2').style.display = 'none';
	 
	 
	 
	   document.getElementById('td2').style.display = 'none';
	   document.getElementById('td_Detail_2').style.display = 'none';
	   document.getElementById('td_basket_2').style.display = 'none';
	 }
	 else if (obj == '1')
	 { document.getElementById('price1').style.display = 'none';
	   document.getElementById('vATreclamable1').style.display = 'none';
	   document.getElementById('garantee1').style.display = 'none';
	   document.getElementById('brand1').style.display = 'none';
	   document.getElementById('model1').style.display = 'none';
	   document.getElementById('version1').style.display = 'none';
	   document.getElementById('firsthand1').style.display = 'none';
	   document.getElementById('year1').style.display = 'none';
	   document.getElementById('mileage1').style.display = 'none';
	   document.getElementById('capacity1').style.display = 'none';
	   document.getElementById('energy1').style.display = 'none';
	   document.getElementById('gearbox1').style.display = 'none';
	   document.getElementById('doornumber1').style.display = 'none';
	   document.getElementById('colorint1').style.display = 'none';
	   document.getElementById('romanianregisterdate1').style.display = 'none';
	   document.getElementById('conveyssource1').style.display = 'none';
	   document.getElementById('options1').style.display = 'none';
	 
	 
	   document.getElementById('td1').style.display = 'none';
	   document.getElementById('td_Detail_1').style.display = 'none';
	   document.getElementById('td_basket_1').style.display = 'none';
	 }
   
   }



function remItem1()
 { 
    if (document.getElementById('item1').checked == true )
	{   var i=1;
	    for(i=1; i<=8; i++)
		{ 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		}
		document.getElementById('td57').style.display = 'none';
	}
     if(document.getElementById('item2').checked == true )
	{    for(var i=9; i<=16; i++)
		 { 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		   }
		document.getElementById('td58').style.display = 'none';
		}
     if(document.getElementById('item3').checked == true )
	{
		 for(var i=17; i<=24; i++)
		 { 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		   }
		   document.getElementById('td59').style.display = 'none';
		}
	 if(document.getElementById('item4').checked == true )
	{
		for(var i=25; i<=32; i++)
		 { 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		   }
		   document.getElementById('td60').style.display = 'none';
		}	
	 if(document.getElementById('item5').checked == true )
	{
		for(var i=33; i<=40; i++)
		 { 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		   }
		   document.getElementById('td61').style.display = 'none';
		}	
	 if(document.getElementById('item6').checked == true )
	{
		for(var i=41; i<=48; i++)
		 { 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		   }
		   document.getElementById('td62').style.display = 'none';
		}
	 if(document.getElementById('item7').checked == true )
	{
		for(var i=49; i<=56; i++)
		 { 
		    var a = 'td' + i;
			
			document.getElementById(a).style.display = 'none';
		   }
		}		
 }
 

	
function GetObjID(ObjName){
  for (var ObjID=0; ObjID < document.orderadform.elements.length; ObjID++)
    if ( document.orderadform.elements[ObjID].name == ObjName )
    {  return(ObjID);
       break;
    }
  return(-1);
}	
function GetObjIDForAS(ObjName){
  for (var ObjID=0; ObjID < document.afterSaleForm.elements.length; ObjID++)
    if ( document.afterSaleForm.elements[ObjID].name == ObjName )
    {  return(ObjID);
       break;
    }
  return(-1);
}	

/* ??????????????????????????????
 * ??????????????????????????????
 */
function DeleteItem(ObjName){
  ObjID = GetObjID(ObjName);
  minselected=0;
  if ( ObjID != -1 )
  {
    for (i=document.orderadform.elements[ObjID].length-1; i>=0; i--)
    {  if (document.orderadform.elements[ObjID].options[i].selected)
       { // window.alert(i);
          if (minselected==0 || i<minselected)
            minselected=i;
          document.orderadform.elements[ObjID].options[i] = null;
       }
    }
    i=document.orderadform.elements[ObjID].length;

    if (i>0)  {
        if (minselected>=i)
           minselected=i-1;
        document.orderadform.elements[ObjID].options[minselected].selected=true;
        }
  }
}
function DeleteItemForAS(ObjName){
  ObjID = GetObjIDForAS(ObjName);
  minselected=0;
  if ( ObjID != -1 )
  {
    for (i=document.afterSaleForm.elements[ObjID].length-1; i>=0; i--)
    {  if (document.afterSaleForm.elements[ObjID].options[i].selected)
       { // window.alert(i);
          if (minselected==0 || i<minselected)
            minselected=i;
          document.afterSaleForm.elements[ObjID].options[i] = null;
       }
    }
    i=document.afterSaleForm.elements[ObjID].length;

    if (i>0)  {
        if (minselected>=i)
           minselected=i-1;
        document.afterSaleForm.elements[ObjID].options[minselected].selected=true;
        }
  }
}


function displaynext(obj)
{
	//alert("ddddddddddddddd");
	//if( obj == 'condition1' && document.getElementById(obj).options[document.getElementById(obj).selectedIndex].text != '' && document.getElementById(obj).options[document.getElementById(obj).selectedIndex].text != 'Yes')
	
	if (obj == 'condition1' && document.getElementById(obj).options[document.getElementById(obj).selectedIndex].text != '' && document.getElementById(obj).value == 0)
	{
	   
	    document.getElementById('condition1').disabled = 'true';
	    document.getElementById('condition2').style.display = 'block';
	}	
	if( obj == 'condition2' && document.getElementById(obj).options[document.getElementById(obj).selectedIndex].text != '' && document.getElementById(obj).value == 0)
	{
		
		document.getElementById('condition2').disabled = 'true';
		document.getElementById('condition3').style.display = 'block';
	}
	else
	{
	
	}
	if( obj == 'condition3' && document.getElementById(obj).options[document.getElementById(obj).selectedIndex].text != '' && document.getElementById(obj).value == 1)
	{
		
		document.getElementById('condition3').disabled = 'true';
		document.getElementById('date').style.display = 'block';
	}
	else
	{
	
	}
	if(obj.id == 'day')
	{ 
	   if(document.getElementById('day').options[document.getElementById('day').selectedIndex].text != '')
	     if(document.getElementById('month').options[document.getElementById('month').selectedIndex].text != '') 
	        if(document.getElementById('year').options[document.getElementById('year').selectedIndex].text != '')
	       		if(document.getElementById('yeartextinput').value != '') 		
			
			  document.getElementById('subcategory').style.display = 'block';
	}
	if(obj.id == 'month')
	{ 
	   if(document.getElementById('day').options[document.getElementById('day').selectedIndex].text != '')
	     if(document.getElementById('month').options[document.getElementById('month').selectedIndex].text != '') 
	        if(document.getElementById('year').options[document.getElementById('year').selectedIndex].text != '')
	       		if(document.getElementById('yeartextinput').value != '') 		
			
			  document.getElementById('subcategory').style.display = 'block';
	}
	if(obj.id == 'year' || obj.id == 'yeartextinput')
	{  if(document.getElementById('year').options[document.getElementById('year').selectedIndex].text == document.getElementById('year').options[document.getElementById('year').options.length-1].text)
	   {
		  // document.getElementById('day').disabled = true;
		   //document.getElementById('month').disabled = true;
		   //alert("111111");
		   document.getElementById('subcategory').style.display = 'block';
		   document.getElementById('yeartextinput').style.visibility = 'visible';
		   
		}
	   if(document.getElementById('day').options[document.getElementById('day').selectedIndex].text != '')
	     if(document.getElementById('month').options[document.getElementById('month').selectedIndex].text != '') 
	        if(document.getElementById('year').options[document.getElementById('year').selectedIndex].text != '')
	       		if(document.getElementById('yeartextinput').value!= '') 		
			
			  document.getElementById('subcategory').style.display = 'block';
	}
	
	
	if(obj.id == 'subcategory')
	{
		
		
		if (document.getElementById('markbox').style.display=='block'&&document.getElementById('markbox').selectedIndex>0)
		{
			var answer=window.confirm('Attention! \nEvery change of information will entail the loss of depending information.\nAre you sure you want to change this information?');
			if (answer==false)
			{
				document.getElementById('subcategory').selectedIndex=subcategoryindex;
				//event.returnValue=false;
				return;
			}
			
		}
		referentialflag=false;
		beginyearlimit=undefined;
		endyearlimit=undefined;
			getMark(obj.value);
			subcategoryindex=document.getElementById('subcategory').selectedIndex;
			if(document.getElementById('subcategory').options[document.getElementById('subcategory').selectedIndex].value != '')
		    {
			    
			    document.getElementById('markbox').style.display = 'block';
			    document.getElementById('marktextinput').style.visibility = 'visible';
				document.getElementById('marktextinput').style.color = "blue";
				document.getElementById('marktextinput').value=document.getElementById('markbox').options[0].innerText;
			    document.getElementById('modelbox').style.display = 'none';
			    document.getElementById('modelbox').selectedIndex=0;
			    document.getElementById('modeltextinput').style.visibility = 'hidden';
			    document.getElementById('modeltextinput').value=document.getElementById('modelbox').options[0].innerText;
				document.getElementById('versionbox').style.display = 'none';
				document.getElementById('versionbox').selectedIndex=0;
				document.getElementById('versiontextinput').value=document.getElementById('versionbox').options[0].innerText;
				document.getElementById('versiontextinput').style.visibility="hidden";
				document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				document.getElementById('energytext').style.visibility="hidden";
				document.getElementById('energytext').value=document.getElementById('energybox').options[0].innerText;
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			  /*
			  	document.getElementById('firstHand').style.display = 'none';
			    document.getElementById('firstHand').selectedIndex=0;
			  	document.getElementById('mileage').style.visibility = 'hidden';
			  	document.getElementById('mileage').value="";
			  	document.getElementById('county').style.display = 'none';
			    document.getElementById('county').selectedIndex=0;
			    document.getElementById('guarantee').style.visibility = 'hidden';
			    document.getElementById('guarantee').value="";
			    document.getElementById('externalColor').style.display = 'none';
			    document.getElementById('externalColor').selectedIndex=0;
			    */
		   	}
			else
		   	{
		   		
				document.getElementById('markbox').style.display = 'none';
				document.getElementById('markbox').selectedIndex=0;
			    document.getElementById('marktextinput').style.visibility = 'hidden';
			    document.getElementById('marktextinput').value=document.getElementById('markbox').options[0].innerText;
			    document.getElementById('modelbox').style.display = 'none';
			    document.getElementById('modelbox').selectedIndex=0;
			    document.getElementById('modeltextinput').style.visibility = 'hidden';
			    document.getElementById('modeltextinput').value=document.getElementById('modelbox').options[0].innerText;
				document.getElementById('versionbox').style.display = 'none';
				document.getElementById('versionbox').selectedIndex=0;
				document.getElementById('versiontextinput').value=document.getElementById('versionbox').options[0].innerText;
				document.getElementById('versiontextinput').style.visibility="hidden";
				document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				document.getElementById('energytext').style.visibility="hidden";
				document.getElementById('energytext').value=document.getElementById('energybox').options[0].innerText;
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			    /*
			    document.getElementById('firstHand').style.display = 'none';
			   	document.getElementById('firstHand').selectedIndex=0;
			   	document.getElementById('mileage').style.visibility = 'hidden';
			   	document.getElementById('mileage').value="";
			   	document.getElementById('county').style.display = 'none';
			   	document.getElementById('county').selectedIndex=0;
			   	document.getElementById('guarantee').style.visibility = 'hidden';
			   	document.getElementById('guarantee').value="";
			   	document.getElementById('externalColor').style.display = 'none';
			   	document.getElementById('externalColor').selectedIndex=0;
			   */
			}
		
	}
	if(obj.id == 'marktextinput' || obj.id == 'markbox')
	{
		referentialflag=false;
		beginyearlimit=undefined;
		endyearlimit=undefined;
		//alert(obj.id);
		if((obj.value!="" ||document.getElementById('markbox').options[document.getElementById('markbox').selectedIndex].value != '')&&obj.value != document.getElementById('modelbox').options[0].innerText)
	       {
			   //alert("!=null");
			    document.getElementById('modelbox').style.display = 'block';
			    document.getElementById('modeltextinput').style.visibility = 'visible';
				document.getElementById('modeltextinput').style.color = "blue";
			   	document.getElementById('modeltextinput').value=document.getElementById('modelbox').options[0].innerText;
			   	
			    document.getElementById('versionbox').style.display = 'none';
				document.getElementById('versionbox').selectedIndex=0;
				document.getElementById('versiontextinput').style.visibility="hidden";
				document.getElementById('versiontextinput').value=document.getElementById('versionbox').options[0].innerText;
				
				document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				document.getElementById('energytext').style.visibility="hidden";
				document.getElementById('energytext').value=document.getElementById('energybox').options[0].innerText;
				
				
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			    /*
			    document.getElementById('county').style.display = 'none';
			    document.getElementById('county').selectedIndex=0;
			   
			    document.getElementById('firstHand').style.display = 'none';
			    document.getElementById('firstHand').selectedIndex=0;
			  	document.getElementById('mileage').style.visibility = 'hidden';
			  	document.getElementById('mileage').value="";
			    document.getElementById('guarantee').style.visibility = 'hidden';
			    document.getElementById('guarantee').value="";
			    document.getElementById('externalColor').style.display = 'none';
			    document.getElementById('externalColor').selectedIndex=0;
			    */
		   }
		else
		   {
			    
			    document.getElementById('modelbox').style.display = 'none';
				document.getElementById('modelbox').selectedIndex=0;
				document.getElementById('modeltextinput').style.visibility="hidden";
				document.getElementById('modeltextinput').value=document.getElementById('modelbox').options[0].innerText;
				
				document.getElementById('versionbox').style.display = 'none';
				document.getElementById('versionbox').selectedIndex=0;
				document.getElementById('versiontextinput').value=document.getElementById('versionbox').options[0].innerText;
				document.getElementById('versiontextinput').style.visibility="hidden";
				
				document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				document.getElementById('energytext').style.visibility="hidden";
				document.getElementById('energytext').value=document.getElementById('energybox').options[0].innerText;
				
				
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			   /*
			   document.getElementById('firstHand').style.display = 'none';
			   document.getElementById('firstHand').selectedIndex=0;
			   document.getElementById('mileage').style.visibility = 'hidden';
			   document.getElementById('mileage').value="";
			   document.getElementById('county').style.display = 'none';
			   document.getElementById('county').selectedIndex=0;
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
			   */
			}
	}
	if(obj.id == 'modeltextinput' || obj.id == 'modelbox')
	{
		referentialflag=false;
		beginyearlimit=undefined;
		endyearlimit=undefined;
		if((obj.value!="" ||document.getElementById('modelbox').options[document.getElementById('modelbox').selectedIndex].value != '')&&obj.value != document.getElementById('modelbox').options[0].innerText)
	       {
			    document.getElementById('versionbox').style.display = 'block';
			    document.getElementById('versiontextinput').style.visibility = "visible";
				document.getElementById('versiontextinput').style.color = "blue";
			    document.getElementById('versiontextinput').value=document.getElementById('versionbox').options[0].innerText;
			    
			    document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				document.getElementById('energytext').style.visibility="hidden";
				document.getElementById('energytext').value=document.getElementById('energybox').options[0].innerText;
				
				
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
				/*
				document.getElementById('county').style.display = 'none';
			    document.getElementById('county').selectedIndex=0;
			   
			    document.getElementById('firstHand').style.display = 'none';
			    document.getElementById('firstHand').selectedIndex=0;
			  	document.getElementById('mileage').style.visibility = 'hidden';
			  	document.getElementById('mileage').value="";
			    document.getElementById('guarantee').style.visibility = 'hidden';
			    document.getElementById('guarantee').value="";
			    document.getElementById('externalColor').style.display = 'none';
			    document.getElementById('externalColor').selectedIndex=0;
			    */
		   }
		else
		   {
			    document.getElementById('versionbox').style.display = 'none';
			    document.getElementById('versionbox').selectedIndex=0; 
			    document.getElementById('versiontextinput').style.visibility = "hidden";
			    document.getElementById('versiontextinput').value=document.getElementById('versionbox').options[0].innerText;
				
				document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				document.getElementById('energytext').style.visibility="hidden";
				document.getElementById('energytext').value=document.getElementById('energybox').options[0].innerText;
				
				
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
				/*
				document.getElementById('firstHand').style.display = 'none';
			    document.getElementById('firstHand').selectedIndex=0;
			    document.getElementById('mileage').style.visibility = 'hidden';
			    document.getElementById('mileage').value="";
			    document.getElementById('county').style.display = 'none';
			    document.getElementById('county').selectedIndex=0;
			    document.getElementById('guarantee').style.visibility = 'hidden';
			    document.getElementById('guarantee').value="";
			    document.getElementById('externalColor').style.display = 'none';
			    document.getElementById('externalColor').selectedIndex=0;
			   */
			}
	}
	if(obj.id == 'versionbox'|| obj.id== 'versiontextinput')
	{
		referentialflag=false;
		beginyearlimit=undefined;
		endyearlimit=undefined;
		if((obj.value!="" ||document.getElementById('versionbox').options[document.getElementById('versionbox').selectedIndex].value != '')&&obj.value != document.getElementById('modelbox').options[0].innerText)
	       {
			  
		  	    document.getElementById('energybox').style.display = 'block';
			    if(document.getElementById('energybox').value!=""){
					document.getElementById('energybox').style.color="black";
				}else{
					document.getElementById('energybox').style.color="blue";
				}
				
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
				/*
				document.getElementById('county').style.display = 'none';
			    document.getElementById('county').selectedIndex=0;
			    document.getElementById('firstHand').style.display = 'none';
			    document.getElementById('firstHand').selectedIndex=0;
			  	document.getElementById('mileage').style.visibility = 'hidden';
			  	document.getElementById('mileage').value="";
			    document.getElementById('guarantee').style.visibility = 'hidden';
			    document.getElementById('guarantee').value="";
			    document.getElementById('externalColor').style.display = 'none';
			    document.getElementById('externalColor').selectedIndex=0;
			    */
		   }
		else
		   {
			   
			    document.getElementById('energybox').style.display = 'none';
				document.getElementById('energybox').selectedIndex=0;
				
				document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex = 0;
				document.getElementById('doorNotext').style.visibility = "hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			  /*
			   document.getElementById('firstHand').style.display = 'none';
			   document.getElementById('firstHand').selectedIndex=0;
			   document.getElementById('mileage').style.visibility = 'hidden';
			   document.getElementById('mileage').value="";
			   document.getElementById('county').style.display = 'none';
			   document.getElementById('county').selectedIndex=0;
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
			*/
			}
	}
	if(obj.id == 'doorNobox'|| obj.id== 'doorNotext')
	{
		if (!referentialflag)
			{
		if((obj.value!="" ||document.getElementById('doorNobox').options[document.getElementById('doorNobox').selectedIndex].value != '')&&obj.value != document.getElementById('modelbox').options[0].innerText)
	       {
			  
			   document.getElementById('cubicCapacity').style.visibility = 'visible';
			   
				
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
				//document.getElementById('county').style.display = 'none';
			    //document.getElementById('county').selectedIndex=0;
			    //document.getElementById('firstHand').style.display = 'none';
			   // document.getElementById('firstHand').selectedIndex=0;
			  	//document.getElementById('mileage').style.visibility = 'hidden';
			  	//document.getElementById('mileage').value="";
			   // document.getElementById('guarantee').style.visibility = 'hidden';
			   // document.getElementById('guarantee').value="";
			   // document.getElementById('externalColor').style.display = 'none';
			   // document.getElementById('externalColor').selectedIndex=0;
		   }
		else
		   {
			  
			   	document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			   //document.getElementById('firstHand').style.display = 'none';
			   //document.getElementById('firstHand').selectedIndex=0;
			   //document.getElementById('mileage').style.visibility = 'hidden';
			   //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
			   
			}
		}
	}

	if(obj.id == 'energybox' || obj.id == 'energytext')
	{   
		if (!referentialflag)
			{
		if((obj.value!="" ||document.getElementById('energybox').options[document.getElementById('energybox').selectedIndex].value != '')&&obj.value != document.getElementById('modelbox').options[0].innerText)
	       {
			   
			   	document.getElementById('gearboxtype').style.display = 'block';
			   	if(document.getElementById('gearboxtype').value!=""){
					document.getElementById('gearboxtype').style.color="black";
				}else{
					document.getElementById('gearboxtype').style.color="blue";
				}
			   
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex=0;
				document.getElementById('doorNotext').style.visibility="hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
				//document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('firstHand').style.display = 'none';
			    //document.getElementById('firstHand').selectedIndex=0;
			  	//document.getElementById('mileage').style.visibility = 'hidden';
			  	//document.getElementById('mileage').value="";
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
		   }
		else
		   {
			    document.getElementById('gearboxtype').style.display = 'none';
				document.getElementById('gearboxtype').selectedIndex=0;
				
				document.getElementById('doorNobox').style.display = 'none';
				document.getElementById('doorNobox').selectedIndex=0;
				document.getElementById('doorNotext').style.visibility="hidden";
				document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
				
				document.getElementById('cubicCapacity').style.visibility = 'hidden';
				document.getElementById('cubicCapacity').value="";
				document.getElementById('Powerkw').style.visibility = 'hidden';
				document.getElementById('Powerkw').value="";
				document.getElementById('PowerCP').style.visibility = 'hidden';
				document.getElementById('PowerCP').value="";
			   //document.getElementById('firstHand').style.display = 'none';
			  //document.getElementById('firstHand').selectedIndex=0;
			   //document.getElementById('mileage').style.visibility = 'hidden';
			   //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
			}
		}
	}
	if(obj.id == 'gearboxtype')
	{   
		if (!referentialflag)
			{
				if(document.getElementById('gearboxtype').options[document.getElementById('gearboxtype').selectedIndex].value != '')
	       			{
			   
					  
					   document.getElementById('doorNobox').style.display = 'block';
					   document.getElementById('doorNotext').style.visibility = "visible";
					   document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
					   
					   document.getElementById('cubicCapacity').style.visibility = 'hidden';
						document.getElementById('cubicCapacity').value="";
						document.getElementById('Powerkw').style.visibility = 'hidden';
						document.getElementById('Powerkw').value="";
						document.getElementById('PowerCP').style.visibility = 'hidden';
						document.getElementById('PowerCP').value="";
						 //document.getElementById('county').style.display = 'none';
					   //document.getElementById('county').selectedIndex=0;
					   //document.getElementById('firstHand').style.display = 'none';
					    //document.getElementById('firstHand').selectedIndex=0;
					  	//document.getElementById('mileage').style.visibility = 'hidden';
					  	//document.getElementById('mileage').value="";
					  // document.getElementById('guarantee').style.visibility = 'hidden';
					   ///document.getElementById('guarantee').value="";
					   //document.getElementById('externalColor').style.display = 'none';
					  // document.getElementById('externalColor').selectedIndex=0;
				   }
				else
				   {
			   
					    document.getElementById('doorNobox').style.display = 'none';
						document.getElementById('doorNobox').selectedIndex=0;
						document.getElementById('doorNotext').style.visibility="hidden";
						document.getElementById('doorNotext').value=document.getElementById('doorNobox').options[0].innerText;
						
						document.getElementById('cubicCapacity').style.visibility = 'hidden';
						document.getElementById('cubicCapacity').value="";
						document.getElementById('Powerkw').style.visibility = 'hidden';
						document.getElementById('Powerkw').value="";
						document.getElementById('PowerCP').style.visibility = 'hidden';
						document.getElementById('PowerCP').value="";
					   
					   //document.getElementById('firstHand').style.display = 'none';
					   //document.getElementById('firstHand').selectedIndex=0;
					   //document.getElementById('mileage').style.visibility = 'hidden';
					   //document.getElementById('mileage').value="";
					   //document.getElementById('county').style.display = 'none';
					   //document.getElementById('county').selectedIndex=0;
					   //document.getElementById('guarantee').style.visibility = 'hidden';
					   //document.getElementById('guarantee').value="";
					   //document.getElementById('externalColor').style.display = 'none';
					   //document.getElementById('externalColor').selectedIndex=0;
					   
					}
				}
	}
	if(obj.id == 'cubicCapacity')
	{
		if (!referentialflag)
			{
		if(document.getElementById('cubicCapacity').value != '' && checknum('cubicCapacity'))
	       {
			   document.getElementById('Powerkw').style.visibility = 'visible';
			   document.getElementById('PowerCP').style.visibility = 'visible';
			   //document.getElementById('firstHand').style.display = 'none';
			   //document.getElementById('firstHand').selectedIndex=0;
			   //document.getElementById('mileage').style.visibility = 'hidden';
			   //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
			 }
		else
		   {
			   document.getElementById('Powerkw').style.visibility = 'hidden';
			   document.getElementById('Powerkw').value="";
			   document.getElementById('PowerCP').style.visibility = 'hidden';
			   document.getElementById('PowerCP').value="";
			   
			   //document.getElementById('firstHand').style.display = 'none';
			   //document.getElementById('firstHand').selectedIndex=0;
			   //document.getElementById('mileage').style.visibility = 'hidden';
			   //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
			}
		}
	}
	  
	  if(obj == 'Powerkw')
		{  
		    
			if(document.getElementById('Powerkw').value != '')
	       {
			 
			   //document.getElementById('firstHand').style.display = 'block';
			   //document.getElementById('mileage').style.visibility = 'hidden';
			   //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
			  
		   }
		else
		   {
			   //document.getElementById('firstHand').style.display = "none"
			   //document.getElementById('firstHand').selectedIndex=0;
			   //document.getElementById('mileage').style.visibility = 'hidden';
			   //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			   //document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			   //document.getElementById('externalColor').selectedIndex=0;
			}
		}
	 if(obj == 'PowerCP')
		{
		   if (!referentialflag)
			{
				if(document.getElementById('PowerCP').value != '' )
	       		{
			   
			   		document.getElementById('firstHand').style.display = 'block';
			   //document.getElementById('mileage').style.visibility = 'hidden';
			  //document.getElementById('mileage').value="";
			   //document.getElementById('county').style.display = 'none';
			   //document.getElementById('county').selectedIndex=0;
			   //document.getElementById('guarantee').style.visibility = 'hidden';
			  // document.getElementById('guarantee').value="";
			   //document.getElementById('externalColor').style.display = 'none';
			  // document.getElementById('externalColor').selectedIndex=0;
		   		}
		   		else
		   		{
			   
			  // document.getElementById('firstHand').style.display = 'none';
			  // document.getElementById('firstHand').selectedIndex=0;
			  //document.getElementById('mileage').style.visibility = 'hidden';
			  //	document.getElementById('mileage').value="";
			  // document.getElementById('county').style.display = 'none';
			  // document.getElementById('county').selectedIndex=0;
			  // document.getElementById('guarantee').style.visibility = 'hidden';
			  // document.getElementById('guarantee').value="";
			  // document.getElementById('externalColor').style.display = 'none';
			  // document.getElementById('externalColor').selectedIndex=0;
				}
			}
		}
	
	
	if(obj.id == 'firstHand')
	{
		
		if(document.getElementById('firstHand').options[document.getElementById('firstHand').selectedIndex].text != '')
	       {   
			   
			   document.getElementById('mileage').style.visibility = 'visible';
			   /*
			   document.getElementById('county').style.display = 'none';
			   document.getElementById('county').selectedIndex=0;
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
			   */
		   }
		else
		   {
			  /*
			   alert(referentialflag);
			   if (!referentialflag)
				{
			   document.getElementById('mileage').style.visibility = 'hidden';
			   document.getElementById('mileage').value="";
			   document.getElementById('county').style.display = 'none';
			   document.getElementById('county').selectedIndex=0;
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
				}
				*/
		}
	}
	if(obj.id == 'mileage')
	{
		
		if(document.getElementById('mileage').value != '' && checknum('mileage'))
	       {   
			  
			   
			   document.getElementById('county').style.display = 'block'
			   /*
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
		   	*/
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('county').style.display = 'none';
			   document.getElementById('county').selectedIndex=0;
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
			   
				}
				*/
			}
	}
	if(obj.id == 'county')
	{
		if(document.getElementById('county').value != '')
	       {   
			   document.getElementById('guarantee').style.visibility = 'visible';
			   
			   document.getElementById('externalColor').style.display = 'block';
			  
		   }
		else
		   {
		   		/*
		   		if (!referentialflag)
				{
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('guarantee').value="";
			   document.getElementById('externalColor').style.display = 'none';
			   document.getElementById('externalColor').selectedIndex=0;
				}
				*/
			}
			
	}
	/*if(obj.id == 'guarantee')
	{
		if(document.getElementById('guarantee').value != '' && checknum('guarantee'))
	       {   
			   document.getElementById('externalCoating').style.display = 'block';
		   }
		else
		   {
			   document.getElementById('externalCoating').style.display = 'none';
			   
			}
	}*/
	if(obj.id == 'guarantee')
	{
		/*if(document.getElementById('guarantee').value != '' && checknum('guarantee'))
	       {   
			   document.getElementById('externalColor').style.display = 'block';
		   }
		else
		   {
			   document.getElementById('externalColor').style.display = 'none';
			   
			   
			}*/
	}
	if(obj.id == 'externalColor')
	{
		
		if(document.getElementById('externalColor').options[document.getElementById('externalColor').selectedIndex].text != '')
	       {   
			   document.getElementById('externalCoating1').style.display = 'block';
		   }
		else
		   {
		   		/*
		   		if (!referentialflag)
				{
			   document.getElementById('externalCoating1').style.display = 'none';
			   document.getElementById('externalCoating1').selectedIndex=0;
			   document.getElementById('internalColor').style.display = 'none';
			   document.getElementById('internalColor').selectedIndex=0;
			   document.getElementById('internalCoating').style.display = 'none';
			   document.getElementById('internalCoating').selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'externalCoating1')
	{
		
		if(document.getElementById('externalCoating1').options[document.getElementById('externalCoating1').selectedIndex].text != '')
	       {   
			   document.getElementById('internalColor').style.display = 'block';
		   }
		else
		   {
		   		/*
		   		if (!referentialflag)
				{
			   document.getElementById('internalColor').style.display = 'none';
			   document.getElementById('internalColor').selectedIndex=0;
			   document.getElementById('internalCoating').style.display = 'none';
			   document.getElementById('internalCoating').selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'internalColor')
	{
		
		if(document.getElementById('internalColor').options[document.getElementById('internalColor').selectedIndex].text != '')
	       {   
			   document.getElementById('internalCoating').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('internalCoating').style.display = 'none';
			   document.getElementById('internalCoating').selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'internalCoating')
	{
		
		if(document.getElementById('internalCoating').options[document.getElementById('internalCoating').selectedIndex].text != '')
	       {   
			   document.getElementById('engine').style.display = 'inline';
			   document.getElementById('money').style.display = 'block';
			   
			   if (usertype=='2')
			   {
			   	document.getElementById("reclaim").style.display = "block";
			   }
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('engine').style.display = 'none';
			   document.getElementById('engine').value="";
			   document.getElementById('money').style.display = 'none';
			   document.getElementById('money').value="";
			   document.getElementById("reclaim").style.display = "none";
			   document.getElementById("reclaim").selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'engine')
	{
		
		if(document.getElementById('engine').value != '')
	       {   
			   document.getElementById('gearBox').style.display = 'inline';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('gearBox').style.display = 'none';
			   document.getElementById('gearBox').value="";
			   document.getElementById('rearAxle').style.display = 'none';
			   document.getElementById('rearAxle').value="";
			   document.getElementById('clutch').style.display = 'none';
			   document.getElementById('clutch').value="";
			   document.getElementById('tires').style.display = 'none';
			   document.getElementById('tires').value="";
			   document.getElementById('brakes').style.display = 'none';
			   document.getElementById('brakes').value="";
				}
				*/
			}
	}
	if(obj.id == 'gearBox')
	{
		
		if(document.getElementById('gearBox').value != '')
	       {   
			   document.getElementById('rearAxle').style.display = 'inline';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('rearAxle').style.display = 'none';
			   document.getElementById('rearAxle').value="";
			   document.getElementById('clutch').style.display = 'none';
			   document.getElementById('clutch').value="";
			   document.getElementById('tires').style.display = 'none';
			   document.getElementById('tires').value="";
			   document.getElementById('brakes').style.display = 'none';
			   document.getElementById('brakes').value="";
			   
				}
				*/
			}
	}
	if(obj.id == 'rearAxle')
	{
		
		if(document.getElementById('rearAxle').value != '')
	       {   
			   document.getElementById('clutch').style.display = 'inline';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('clutch').style.display = 'none';
			   document.getElementById('clutch').value="";
			   document.getElementById('tires').style.display = 'none';
			   document.getElementById('tires').value="";
			   document.getElementById('brakes').style.display = 'none';
			   document.getElementById('brakes').value="";
			   
				}
				*/
			}
	}
	if(obj.id == 'clutch')
	{
		
		if(document.getElementById('clutch').value != '')
	       {   
			   document.getElementById('tires').style.display = 'inline';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('tires').style.display = 'none';
			   document.getElementById('tires').value="";
			   document.getElementById('brakes').style.display = 'none';
			   document.getElementById('brakes').value="";
			   
				}
				*/
			}
	}
	if(obj.id == 'tires')
	{
		
		if(document.getElementById('tires').value != '')
	       {   
			   document.getElementById('brakes').style.display = 'inline';
		   }
		else
		   {
			  /*
			   if (!referentialflag)
				{
			   document.getElementById('brakes').style.display = 'none';
			   document.getElementById('brakes').value="";
				}
				*/
			}
	}
	if(obj.id == 'brakes')
	{
		/*
		if(document.getElementById('brakes').value != '')
	       {   
			   document.getElementById('money').style.display = 'block';
		   }
		else
		   {
			   document.getElementById('money').style.display = 'none';
			   
			}
			*/
	}
	if(obj.id == 'money')
	{
		
		if(document.getElementById('money').value != '')
	       {   
			   document.getElementById('standardMine').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('standardMine').style.display = 'none';
			   document.getElementById('standardMine').value="";
				}
				*/
			}
	}
	if(obj.id == 'standardMine')
	{
		
		if(document.getElementById('standardMine').value != '')
	       {   
			   document.getElementById('orderNo.').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('orderNo.').style.display = 'none';
			   document.getElementById('orderNo.').value="";
			   document.getElementById('geographicalSourceConveys').style.display = 'none';
			   document.getElementById('geographicalSourceConveys').selectedIndex=0;
			   document.getElementById('NumberOfCertificate').style.display = 'none';
			   document.getElementById('NumberOfCertificate').value="";
			   document.getElementById('registration').style.display = 'none';
			   document.getElementById('registration').value="";
			   document.getElementById('dateRegistrationRomania').style.display = 'none';
			   document.getElementById('regyear').selectedIndex=0;
			   document.getElementById('regmonth').selectedIndex=0;
			   document.getElementById('regday').selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'orderNo.')
	{
		
		if(document.getElementById('orderNo.').value != '')
	       {   
			   document.getElementById('geographicalSourceConveys').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('geographicalSourceConveys').style.display = 'none';
			   document.getElementById('geographicalSourceConveys').selectedIndex=0;
			   document.getElementById('NumberOfCertificate').style.display = 'none';
			   document.getElementById('NumberOfCertificate').value="";
			   document.getElementById('registration').style.display = 'none';
			   document.getElementById('registration').value="";
			   document.getElementById('dateRegistrationRomania').style.display = 'none';
			   document.getElementById('regyear').selectedIndex=0;
			   document.getElementById('regmonth').selectedIndex=0;
			   document.getElementById('regday').selectedIndex=0;
			   
				}
				*/
			}
	}
	if(obj.id == 'geographicalSourceConveys')
	{
		
		if(document.getElementById('geographicalSourceConveys').value != '')
	       {   
			   document.getElementById('NumberOfCertificate').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('NumberOfCertificate').style.display = 'none';
			   document.getElementById('NumberOfCertificate').value="";
			   document.getElementById('registration').style.display = 'none';
			   document.getElementById('registration').value="";
			   document.getElementById('dateRegistrationRomania').style.display = 'none';
			   document.getElementById('regyear').selectedIndex=0;
			   document.getElementById('regmonth').selectedIndex=0;
			   document.getElementById('regday').selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'NumberOfCertificate')
	{
		
		if(document.getElementById('NumberOfCertificate').value != '')
	       {   
			   document.getElementById('registration').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('registration').style.display = 'none';
			   document.getElementById('registration').value="";
			   document.getElementById('dateRegistrationRomania').style.display = 'none';
			   document.getElementById('regyear').selectedIndex=0;
			   document.getElementById('regmonth').selectedIndex=0;
			   document.getElementById('regday').selectedIndex=0;
				}
				*/
			}
	}
	if(obj.id == 'registration')
	{
		
		if(document.getElementById('registration').value != '')
	       {   
			   document.getElementById('dateRegistrationRomania').style.display = 'block';
		   }
		else
		   {
			   /*
			   if (!referentialflag)
				{
			   document.getElementById('dateRegistrationRomania').style.display = 'none';
			   document.getElementById('regyear').selectedIndex=0;
			   document.getElementById('regmonth').selectedIndex=0;
			   document.getElementById('regday').selectedIndex=0;
				}
				*/
			}
	}
	
}

function removePicture(obj)
{
	if(obj == 'tr1')
	{
	   document.getElementById('tr1').style.display = 'none';
	   document.getElementById('tr1').cells[0].innerHTML="<div align='left'><font face='Arial, Helvetica, sans-serif'>"+
			"<span style='font-size: 8pt'>"+
         		 "<input id='file1' name='file1' type='file' style='font-size:8pt;' size='50' onChange=&quot;changeSrc(this);setPicvalue(this,'picpath1')&quot; /></span></font><span style='font-size: 8pt'>"+
			"</span></div>";
		document.getElementById("picpath1").value="";	
	}
	if(obj == 'tr2')
	{
	   document.getElementById('tr2').style.display = 'none';
	   document.getElementById('tr2').cells[0].innerHTML="<div align='left'><font face='Arial, Helvetica, sans-serif'>"+
			"<span style='font-size: 8pt'>"+
         		 "<input id='file2' name='file2' type='file' style='font-size:8pt;' size='50' onChange=&quot;changeSrc(this);setPicvalue(this,'picpath2')&quot; /></span></font><span style='font-size: 8pt'>"+
			"</span></div>";
		document.getElementById("picpath2").value="";	
	}
	if(obj == 'tr3')
	{
	   document.getElementById('tr3').style.display = 'none';
	   document.getElementById('tr3').cells[0].innerHTML="<div align='left'><font face='Arial, Helvetica, sans-serif'>"+
			"<span style='font-size: 8pt'>"+
         		 "<input id='file3' name='file3' type='file' style='font-size:8pt;' size='50' onChange=&quot;changeSrc(this);setPicvalue(this,'picpath3')&quot; /></span></font><span style='font-size: 8pt'>"+
			"</span></div>";
		document.getElementById("picpath3").value="";		
	}
	if(obj == 'tr4')
	{
	   document.getElementById('tr4').style.display = 'none';
	   document.getElementById('tr4').cells[0].innerHTML="<div align='left'><font face='Arial, Helvetica, sans-serif'>"+
			"<span style='font-size: 8pt'>"+
         		 "<input id='file4' name='file4' type='file' style='font-size:8pt;' size='50' onChange=&quot;changeSrc(this);setPicvalue(this,'picpath4')&quot; /></span></font><span style='font-size: 8pt'>"+
			"</span></div>";
	   document.getElementById("picpath4").value="";		
	}
	if(obj == 'tr5')
	{
	   document.getElementById('tr5').style.display = 'none';
	   document.getElementById('tr5').cells[0].innerHTML="<div align='left'><font face='Arial, Helvetica, sans-serif'>"+
			"<span style='font-size: 8pt'>"+
         		 "<input id='file' name='file' type='file' style='font-size:8pt;' size='50' onChange=&quot;changeSrc(this);setPicvalue(this,'picpath5')&quot; /></span></font><span style='font-size: 8pt'>"+
			"</span></div>";
	   document.getElementById("picpath5").value="";		
	}
}
function subcategoryLimit()
{
	var confirmflag;
	if (document.getElementById('mark').style.display=='block'&&document.getElementById('mark').selectedIndex>0)
		{
			var txt=confirm("Attention! \nEvery change of information will entail the loss of depending information.\nAre you sure you want to change this information?");
			alert(txt);
		  if (!txt)
		    {
		       document.getElementById('mark').style.display = 'none';
			   document.getElementById('model').style.display = 'none';
			   document.getElementById('Version').style.display = 'none';
			   document.getElementById('energy').style.display = 'none';
			   document.getElementById('gearboxtype').style.display = 'none';
			   document.getElementById('doorNo').style.display = 'none';
			   document.getElementById('cubicCapacity').style.visibility = 'hidden';
			   document.getElementById('Powerkw').style.visibility = 'hidden';
			   document.getElementById('PowerCP').style.visibility = 'hidden';

			   document.getElementById('firstHand').style.display = 'none';
			   document.getElementById('mileage').style.visibility = 'hidden';
			   document.getElementById('guarantee').style.visibility = 'hidden';
			   document.getElementById('externalCoating').style.display = 'none';
		    }
		  else
		    {
		    	document.getElementById('mark').selectedIndex=selectflag;
		    }
		}
	
}

function lastList(obj){
	var b = document.getElementById("brand_model_list");
	if(obj=="A11-112"){
		b.innerHTML = "<table width='460px' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>A11-112</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td align='center' colspan='6' style='background-image:url(img/backgroundbottom20.jpg)'><a href='#' style='color:white'>1</a>&nbsp;<a href='#' style='color:white'>2</a>&nbsp;<a href='#' style='background-color:#f49623;color:black'>3</a>&nbsp;<a href='#'  style='color:white'>4</a>&nbsp;<a href='#'  style='color:white'>5</a>&nbsp;<a href='#'  style='color:white'>&gt;&gt;</a></td></tr>"+
	"</table>";
	}
	if(obj=="A12-234"){
		b.innerHTML = "<table width='460px' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>A12-234</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>A12-234</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td align='center' colspan='6' style='background-image:url(img/backgroundbottom20.jpg)'><a href='#' style='color:white'>1</a>&nbsp;<a href='#' style='color:white'>2</a>&nbsp;<a href='#' style='background-color:#f49623;color:black'>3</a>&nbsp;<a href='#'  style='color:white'>4</a>&nbsp;<a href='#'  style='color:white'>5</a>&nbsp;<a href='#'  style='color:white'>&gt;&gt;</a></td></tr>"+
	"</table>";
	}
	if(obj=="A13-643"){
		b.innerHTML = "<table width='460px' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>A13-643</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td align='center' colspan='6' style='background-image:url(img/backgroundbottom20.jpg)'><a href='#' style='color:white'>1</a>&nbsp;<a href='#' style='color:white'>2</a>&nbsp;<a href='#' style='background-color:#f49623;color:black'>3</a>&nbsp;<a href='#'  style='color:white'>4</a>&nbsp;<a href='#'  style='color:white'>5</a>&nbsp;<a href='#'  style='color:white'>&gt;&gt;</a></td></tr>"+
	"</table>";
	}
	if(obj=="B11-112"){
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>FORD</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>B11-112</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(obj=="B11-113"){
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>FORD</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>B11-113</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(obj=="B11-114"){
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>FORD</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>B11-114</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
}
function brandList(){
	var a = document.getElementById("listArea");
		a.innerHTML="<a href='main.html'>Home</a> > BrandList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+	
		"<div align='center'><table width='484px' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>BrandList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>ALFA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>FORD</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>PORSCHE</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>AUDI</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>MERCEDES</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>BMW</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>CITROEN</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>ALFA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>WOLKSWAGEN</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>FIAT</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>PEUGEOT</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HONDA</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HUMMER ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>GAZ</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HYUNDAI</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>INFINITI</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>JAGUAR</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>JEEP</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>KIA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>LADA</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>LANCIA</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>LAND ROVER</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>LEXUS</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>LINCOLN</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>ALFA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>FORD</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>PORSCHE</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>AUDI</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>MERCEDES</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>BMW</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>CITROEN</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>ALFA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>WOLKSWAGEN</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>FIAT</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>PEUGEOT</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HONDA</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>ALFA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>FORD</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>PORSCHE</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>AUDI</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>MERCEDES</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>BMW</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>CITROEN</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>ALFA ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>WOLKSWAGEN</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>FIAT</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>PEUGEOT</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HONDA</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HUMMER ROMEO</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>GAZ</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>HYUNDAI</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table><br><br><br></div>";
}

function brandDetailList(obj,infor){
	var a = document.getElementById("listArea");
	if(infor=="ALFA ROMEO"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>ALFA ROMEO TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#' onclick='lastList(&quot;A11-112&quot;)'>A11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#' onclick='lastList(&quot;A12-234&quot;)'>A12-234</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#' onclick='lastList(&quot;A13-643&quot;)'>A13-643</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A21-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A22-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A23-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A24-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A25-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A26-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A123-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A34-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>A25-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
		var b = document.getElementById("brand_model_list");
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car2.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>ALFA ROMEO</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(infor=="FORD"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>FORD TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#' onclick='lastList(&quot;B11-112&quot;)'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#' onclick='lastList(&quot;B11-113&quot;)'>B11-113</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#' onclick='lastList(&quot;B11-114&quot;)'>B11-114</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>B11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
		var b = document.getElementById("brand_model_list");
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>FORD</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car2.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>FORD</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>FORD</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(infor=="PORSCHE"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>PORSCHE TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>C11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
		var b = document.getElementById("brand_model_list");
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>PORSCHE</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car2.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>PORSCHE</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>PORSCHE</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(infor=="AUDI"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>AUDI TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>D11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
		var b = document.getElementById("brand_model_list");
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>AUDI</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car2.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>AUDI</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>AUDI</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(infor=="MERCEDES"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>MERCEDES TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>E11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
		var b = document.getElementById("brand_model_list");
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>MERCEDES</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car2.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>MERCEDES</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>MERCEDES</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(infor=="RENAULT"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>RENAULT TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>F11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
		var b = document.getElementById("brand_model_list");
		b.innerHTML = "<table width='90%' cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px' onmouseover=setBackground(this,'#b1b2b1') onmouseout=setBackground(this,'#ffffff') onclick=window.location='detail.html'>"+
			"<td style='background-image:url(img/backgroundleft.jpg)'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'></span></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Brand</td>"+
			"<td style='color:white;background-color:#B1B2B1'>Model</td>"+
			"<td align='center' style='color:white;background-color:#B1B2B1'>Year<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td style='color:white;background-color:#B1B2B1'>Km<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
			"<td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'>Price<br/><img src='img/down.jpg' width='10px' height='5px' style='cursor:pointer;'/>&nbsp;<img src='img/up.jpg' width='10px' height='5px' style='cursor:pointer;'/></td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car1.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>RENAULT</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car2.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>RENAULT</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr align='center' onmouseover=setBackground(this,'#b1b2b1');setBackground(this.nextSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.nextSibling,'#ffffff') >"+
			"<td rowspan='2'><input type='checkbox' /><img src='img/car3.jpg' width='90px' height='70' style='vertical-align:top'></td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>RENAULT</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>Scenic</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>2000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>80 000</td>"+
			"<td onclick=window.location='detail.html' style='cursor:pointer;'>10 000&euro;</td>"+
		"</tr>"+
		"<tr onmouseover=setBackground(this,'#b1b2b1');setBackground(this.previousSibling,'#b1b2b1'); onmouseout=setBackground(this,'#ffffff');setBackground(this.previousSibling,'#ffffff') onclick=window.location='detail.html'>"+
			"<td colspan='5' style='padding-left:20px;cursor:pointer;'>RXT 16S</td>"+
		"</tr>"+
		"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
		"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
	"</table>";
	}
	if(infor=="BMW"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>BMW TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>G11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
	}
	if(infor=="CITROEN"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>CITROEN TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>H11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
	}
	if(infor=="2ALFA ROMEO"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>ALFA ROMEO TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>I11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
	}
	if(infor=="WOLKSWAGEN"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>WOLKSWAGEN TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>J11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
	}
	if(infor=="FIAT"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>FIAT  TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>K11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
	}
	if(infor=="PEUGEOT"){
		a.innerHTML="<a href='main.html'>Home</a> > TypeList&nbsp;&gt;"+
		"<br/>"+
		"<br/>"+
		"<div align='center'><table width='484px' height='240px'cellspacing='0' cellpadding='0'>"+
		"<tr align='center' height='30px'><td style='background-image:url(img/backgroundleft.jpg)'></td><td style='color:white;background-color:#B1B2B1'><span style='font-weight:bold;color:#FF6600;font-size:12pt;font-style:italic'>PEUGEOT TypeList</span></td><td style='color:white;background-color:#B1B2B1'></td><td align='center' style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td style='color:white;background-color:#B1B2B1'><br/>&nbsp;</td><td width='60px' style='color:white;background-image: url(img/backgroundright.jpg)'><br/>&nbsp;</td></tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			  "<td  align='center' style='font-size:10pt;font-weight:bold'><a href='#'>L11-112</a>"+
			  "</td>"+
			"</tr>"+
			"<tr><td colspan='6'><hr style='color:#f49623' width='100%' noshadow/></td></tr>"+
			"<tr height='20px'><td colspan='5' style='background-image:url(img/backgroundleft20.jpg)'>&nbsp;</td><td width='60px' style='background-image:url(img/backgroundright20.jpg)'>&nbsp;</td></tr>"+
		"</table></div>";
	}

}





function radioChange(obj){
	var infor = obj.id;
	if(infor=="10_12"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("10_input_1").disabled=false;
		document.getElementById("10_input_2").disabled=false;
		document.getElementById("checkbox").disabled=false;
		
	}
	if(infor=="20_12"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("20_input_1").disabled=false;
		document.getElementById("20_input_2").disabled=false;
		document.getElementById("checkbox").disabled=false;
	}
	if(infor=="50_12"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("50_input_1").disabled=false;
		document.getElementById("50_input_2").disabled=false;
		document.getElementById("checkbox").disabled=false;
	}
	if(infor=="100_12"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("100_input_1").disabled=false;
		document.getElementById("100_input_2").disabled=false;
		document.getElementById("checkbox").disabled=false;
	}
	if(infor=="10_1" || infor=="10_3" || infor=="10_6"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("10_input_1").disabled=false;
		document.getElementById("10_input_2").disabled=false;
	}
	if(infor=="20_1" || infor=="20_3" || infor=="20_6"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("20_input_1").disabled=false;
		document.getElementById("20_input_2").disabled=false;
	}
	if(infor=="50_1" || infor=="50_3" || infor=="50_6"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("50_input_1").disabled=false;
		document.getElementById("50_input_2").disabled=false;
	}
	if(infor=="100_1" || infor=="100_3" || infor=="100_6"){
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("100_input_1").disabled=false;
		document.getElementById("100_input_2").disabled=false;
	}
}

function radioChange1(obj,price,paul){
	var infor = obj.id;
	
	
	if(infor=="10_12"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("10_input_1").disabled=false;
		document.getElementById("10_input_2").disabled=false;
		document.getElementById("10_input_1").value="00";
		document.getElementById("10_input_2").value="00";
		document.getElementById("checkbox").disabled=false;
		document.getElementById("checkbox").checked=false;
		
		 document.getElementById("contract_price_list1").innerHTML=price;
	     document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	     
		
	}
	if(infor=="20_12"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("20_input_1").disabled=false;
		document.getElementById("20_input_2").disabled=false;
		document.getElementById("20_input_1").value="00";
		document.getElementById("20_input_2").value="00";
		document.getElementById("checkbox").disabled=false;
		document.getElementById("checkbox").checked=false;
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	  document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	  
	}
	if(infor=="50_12"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("50_input_1").disabled=false;
		document.getElementById("50_input_2").disabled=false;
		document.getElementById("50_input_1").value="00";
		document.getElementById("50_input_2").value="00";
		document.getElementById("checkbox").disabled=false;
		document.getElementById("checkbox").checked=false;
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	    
	   
	}
	if(infor=="100_12"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("100_input_1").disabled=false;
		document.getElementById("100_input_2").disabled=false;
		document.getElementById("100_input_1").value="00";
		document.getElementById("100_input_2").value="00";
		document.getElementById("checkbox").disabled=false;
		document.getElementById("checkbox").checked=false;
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	    
	   
	}
	if(infor=="10_1" ){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("10_input_1").disabled=false;
		document.getElementById("10_input_2").disabled=false;
		
		document.getElementById("10_input_1").value="00";
		document.getElementById("10_input_2").value="00";
		
		
	    document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	    document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	   
	}
	
	if(infor=="10_3"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("10_input_1").disabled=false;
		document.getElementById("10_input_2").disabled=false;
		
		document.getElementById("10_input_1").value="00";
		document.getElementById("10_input_2").value="00";
		
		document.getElementById("contract_price_list1").innerHTML=price;
		document.getElementById("contract_price_list2").innerHTML=price*paul;
		 document.getElementById("contract_price_list3").innerHTML=price*paul+price;
		
	}
	if(infor=="10_6"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("10_input_1").disabled=false;
		document.getElementById("10_input_2").disabled=false;
		document.getElementById("10_input_1").value="00";
		document.getElementById("10_input_2").value="00";
		
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	   
	}
	if(infor=="20_1"  ){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("20_input_1").disabled=false;
		document.getElementById("20_input_2").disabled=false;
		document.getElementById("20_input_1").value="00";
		document.getElementById("20_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	    
	}
	if(infor=="20_3" ){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("20_input_1").disabled=false;
		document.getElementById("20_input_2").disabled=false;
		document.getElementById("20_input_1").value="00";
		document.getElementById("20_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	   
	}
	if(infor=="20_6"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("20_input_1").disabled=false;
		document.getElementById("20_input_2").disabled=false;
		document.getElementById("20_input_1").value="00";
		document.getElementById("20_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	   
	}
	
	
	
	
	if(infor=="50_1"  ){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("50_input_1").disabled=false;
		document.getElementById("50_input_2").disabled=false;
		document.getElementById("50_input_1").value="00";
		document.getElementById("50_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	  
	}
	if(infor=="50_3"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("50_input_1").disabled=false;
		document.getElementById("50_input_2").disabled=false;
		document.getElementById("50_input_1").value="00";
		document.getElementById("50_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	  
	}
	if(infor=="50_6"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("50_input_1").disabled=false;
		document.getElementById("50_input_2").disabled=false;
		document.getElementById("50_input_1").value="00";
		document.getElementById("50_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	  
	}
	if(infor=="100_1"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
		document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("100_input_1").disabled=false;
		document.getElementById("100_input_2").disabled=false;
		document.getElementById("100_input_1").value="00";
		document.getElementById("100_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	  
	}
	if(infor=="100_3"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("100_input_1").disabled=false;
		document.getElementById("100_input_2").disabled=false;
		document.getElementById("100_input_1").value="00";
		document.getElementById("100_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	   
	}
	if(infor=="100_6"){
	document.getElementById("bold_price_list").innerHTML=0;
	document.getElementById("highlight_price_list").innerHTML=0;
	document.getElementById("10_input_1").disabled=true;
		document.getElementById("10_input_2").disabled=true;
		document.getElementById("20_input_1").disabled=true;
		document.getElementById("20_input_2").disabled=true;
		document.getElementById("50_input_1").disabled=true;
		document.getElementById("50_input_2").disabled=true;
		document.getElementById("100_input_1").disabled=true;
		document.getElementById("100_input_2").disabled=true;
		document.getElementById("checkbox").disabled=true;
		document.getElementById("100_input_1").disabled=false;
		document.getElementById("100_input_2").disabled=false;
		document.getElementById("100_input_1").value="00";
		document.getElementById("100_input_2").value="00";
		document.getElementById("contract_price_list1").innerHTML=price;
	    document.getElementById("contract_price_list2").innerHTML=price*paul;
	     document.getElementById("contract_price_list3").innerHTML=price*paul+price;
	   
	}
	
	
}








function deleteitem(tablename)
{
	var table=document.getElementById(tablename);
	var checkbox;
	
	for (var i=1;i<=8;i++)
	{
		checkbox=document.getElementById(i);
		if (checkbox!=null)
		{
		
			if (checkbox.checked==true)
			{
				var row=checkbox.parentNode.parentNode.rowIndex;
			
				table.deleteRow(row);
			}
		}
	}
	
		
	
}
function open_win(path,carId,width,height,x,y)
{   
	var pageUrl = path + "/showpicture.do?method=showCarPictures&carId="+carId;
	var wobj;
	wobj=window.open(pageUrl,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=yes, width="+width+", height="+height);
	wobj.moveTo(x,y);
}
function AutoAdjustAtchImgSize(e,maxWidth,maxHeight){

	var bigvar = document.getElementById("big");
	if(bigvar.width > maxWidth){
		bigvar.width = maxWidth;
	}
	if(bigvar.height > maxHeight){
		bigvar.height = maxHeight; 
	}
	bigvar.style.position = "fixed";
	bigvar.style.visibility = "visible";
}