	function showManufacture(){
	
		if(document.getElementById("system_id").value!=0){
			imgs="<img src='ajax-loader.gif'><img src='loading.gif'>";
	//alert(str);	
			xmlHttp=ajaxFunction();
			
				document.getElementById("model_id").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("bid").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("model_dtls_id").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("mdtlid").innerHTML="<p style='margin-top:-10px'></p>";
		xmlHttp.onreadystatechange=function()
				{
				if(xmlHttp.readyState==0)
					{
						alert("Not Intialised");
					}
					if(xmlHttp.readyState==1)
					{
					//	alert("Has been set up" +xmlHttp.responseText);
						document.getElementById("manuid").innerHTML=imgs;
					}
					
					if(xmlHttp.readyState==2)
					{
					//alert("Has been sent");
					}
					if(xmlHttp.readyState==3)
					{
					//alert("In process....");
					}
					
					if(xmlHttp.readyState==4)
					{
	
					//alert(xmlHttp.responseText);
						document.getElementById("manufacture_id").innerHTML=xmlHttp.responseText;
						document.getElementById("manuid").innerHTML="<p style='margin-top:-10px'></p>";
						
						manufacture_id.style.visibility="visible";						
					}
			}	
      	var url="asp/system.asp";
      	str=document.getElementById("system_id").value;
		url=url+"?v="+ str +"&show=manufacture";
		//alert(document.getElementById("system_id").value);
	xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
	}
	 else{
				
				document.getElementById("manuid").innerHTML="<p style='margin-top:-10px'></p>";
			//	manu_id.style.visibility="hidden";
				document.getElementById("manufacture_id").innerHTML="<p style='margin-top:-10px'></p>";
			//	m_id.style.visibility="hidden";
				document.getElementById("model_id").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("bid").innerHTML="<p style='margin-top:-10px'></p>";
			//	m_dtl_id.style.visibility="hidden";
				document.getElementById("model_dtls_id").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("mdtlid").innerHTML="<p style='margin-top:-10px'></p>";
	 }
	}

	function showModel(response_id,select_id,s){
	imgs="<img src='ajax-loader.gif'><img src='loading.gif'>";
	
	if(document.getElementById(""+select_id+"").value!=0){
			xmlHttp=ajaxFunction();
	
				document.getElementById("model_dtls_id").innerHTML="<p style='margin-top:-10px'></p>";
		xmlHttp.onreadystatechange=function()
	      	{
				if(xmlHttp.readyState==1)
        		{
				//	alert("Has been set up");
	
				document.getElementById("bid").innerHTML=imgs;
			
				}
	      		if(xmlHttp.readyState==4)
	        		{

	        		
	        			document.getElementById(""+ response_id +"").innerHTML=xmlHttp.responseText;
						document.getElementById("bid").innerHTML="<p style='margin-top:-10px'></p>";
					
	        		}
	      	}
	      	var url="asp/system.asp";
	      	str=document.getElementById(""+select_id+"").value;
	      	str1=document.getElementById("system_id").value;
	   
			url=url+"?v="+ str+"&v1="+str1+"&show="+s+"";
		
		xmlHttp.open("GET",url,true);
	    xmlHttp.send(null);
		 }
	 else{
	 			
				document.getElementById("bid").innerHTML="<p style='margin-top:-10px'></p>";
			
				document.getElementById("model_id").innerHTML="<p style='margin-top:-10px'></p>";
			
				document.getElementById("mdtlid").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("model_dtls_id").innerHTML="<p style='margin-top:-10px'></p>";
	 }
	}

	function showmodeldtls(){
	imgs="<img src='ajax-loader.gif'><img src='loading.gif'>";
	document.getElementById("mdtlid").innerHTML=imgs;
	if(document.getElementById("mod_id").value!=0){
		
		
				xmlHttp=ajaxFunction();
			
			xmlHttp.onreadystatechange=function()
		      	{
					if(xmlHttp.readyState==1)
					{
				
						document.getElementById("mdtlid").innerHTML=imgs;
						
					}
		      		if(xmlHttp.readyState==4)
		        		{

		        		
						document.getElementById("mdtlid").innerHTML="<p style='margin-top:-10px'></p>";
		        			document.getElementById("model_dtls_id").innerHTML=xmlHttp.responseText;						
					
							
							model_dtls_id.style.visibility="visible";
							
		        		}
		      	}
		      	var url="asp/system.asp";
		      	str=document.getElementById("mod_id").value;
		      	str1=document.getElementById("system_id").value;
		      	str2=document.getElementById("manuf_id").value;
		      	str=str.replace("+","%20");
				url=url+"?v="+str+"&v1="+str1+"&v2="+str2+"&show=modeldtls";
			
			xmlHttp.open("GET",url,true);
		    xmlHttp.send(null);
			  }
	 else{	
				document.getElementById("mdtlid").innerHTML="<p style='margin-top:-10px'></p>";
				document.getElementById("model_dtls_id").innerHTML="<p style='margin-top:-10px'></p>";
				
	 }
	}
function go(){
	
	if (document.getElementById("mod_dtls_id").value==0)
	{
		alert("Please select a system model.");
		return false;
	}
	modelName=document.getElementById("mod_dtls_id").value;
	window.location.href = modelName;
}

