  function trimmer(untrimed)
  {

  		var regexp = /^\s+/ 		

		return untrimed.replace(regexp, "") 



  }

	

	function CalculateC(url,value) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("Choose Group");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("Span1").innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}

	

	function CalculateC22(url,value) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("Choose Group");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("Span122").innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}

	

	

function CalculateCC(url,value) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("Choose Group");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("Span12").innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}



function ListTextBox(url) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("ListDown").innerHTML = finalprice;

				

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}

	function CalculateD(url) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("span2").innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}

	

	function CalculateD22(url) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("span222").innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}

	

	

function CalculateDD(url) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("span11").innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}





function ListTextBox(url) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById("ListDown").innerHTML = finalprice;

				

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}


function ajax_ret(url, control) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;
				
				document.getElementById('span222').innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}

function ajax_ret_model(url) {

						/*************************************************************************/

							var xmlhttp=false;

							try { 

								xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object

							} catch (e) { 

										try { 

											xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object

										} catch (E) { 

											xmlhttp = false; 

										}//try {  

							}//	try { 

						

							if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

								xmlhttp = new XMLHttpRequest();//here simply we are creating object

							}

						/*************************************************************************/

	



		xmlhttp.open("POST", url,true); 

	

		xmlhttp.onreadystatechange = function() { 

		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { 		

		var finalprice=trimmer(xmlhttp.responseText);

		if(finalprice==''){

			alert("NO Data!");			

			}else{

				//document.form1.c.value=finalprice;

				document.getElementById('spModel').innerHTML = finalprice;

			}

//		alert(xmlhttp.responseText);

//		window.focus();

		} 

		}//xmlhttp.onreadystatechange = function() { 

		xmlhttp.send(null);

	}


function getAJAX_resp(url, spControl) 
{	
/*************************************************************************/
	var xmlhttp=false;
	try 
	{ 
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); //here simply we are creating object
	} 
	catch (e) 
	{ 
		try 
		{ 
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); //here simply we are creating object
		} 
		catch (E) 
		{ 
			xmlhttp = false; 
		}  
	} 
	
	
	
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
	{
		xmlhttp = new XMLHttpRequest();//here simply we are creating object
	}

	/*************************************************************************/
	xmlhttp.open("POST", url,true); 
	xmlhttp.onreadystatechange = function() 
	{ 
		if (xmlhttp.readyState == 4 && xmlhttp.status == 200) 
		{ 		
			var finalprice=trimmer(xmlhttp.responseText);
			
			if(finalprice=='')
			{
				alert("NO Data!");			
			}else
			{				
				//document.getElementById("spSuburb").innerHTML = finalprice;		
				document.getElementById(spControl).innerHTML = finalprice;
			}
		} 

	} 
	xmlhttp.send(null);
}