	/*
		creating HTTPRequest Object for AJAX
	*/
	function loadXMLDoc(){
	
		httpObj = false;
		
		// branch for native XMLHttpRequest object
		if(window.XMLHttpRequest){
			
			try{
				httpObj = new XMLHttpRequest();
			}catch(e){
				httpObj = false;
			}
			
		// branch for IE/Windows ActiveX version
		}else if(window.ActiveXObject){
		
			try{
				httpObj = new ActiveXObject("Msxml2.XMLHTTP");
			}catch(e){
				try{
					httpObj = new ActiveXObject("Microsoft.XMLHTTP");
				}catch(e){
					httpObj = false;
				}
			}
			
		}
		
		return httpObj;
	}
	var source_tmp;
	function getSchematicYear(modelname){
		
		httpFLVObj = loadXMLDoc();
		//alert(source + " " + target);
		if(httpFLVObj) {
	
			httpFLVObj.abort();
	
			var str = "modelname=" + modelname;
			
			var url = "yearajax.php?" + str;
			
			httpFLVObj.onreadystatechange = processConvertToFLV;
							
			httpFLVObj.open("GET", url, true);
			
			httpFLVObj.send(null);		
	
		}else{
			alert("Error: Can not send request ");
		}		
	}
	
	/*
		This handles the response from the server for the AJAX Call	
	*/
	function processConvertToFLV() {
	
		// only if httpObj shows "loaded"
		if (httpFLVObj.readyState == 4){
			// only if "OK"
			if (httpFLVObj.status == 200) {
			//alert(httpFLVObj.responseText);
				document.getElementById('contentdiv').innerHTML=httpFLVObj.responseText;
				
			}else {
				alert("There was a problem while retrieving the Page Data : " + httpFLVObj.statusText);
			}
	
		}
	
	}
