function getXMLHTTP() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
	}
	
	function setOpacityService(value) {
document.getElementById('servicediv').style.opacity = value / 10;
document.getElementById('servicediv').style.filter = 'alpha(opacity=' + value * 10 + ')';
}
	
	function contact(strURL) {		
		

		var req = getXMLHTTP();
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {
					setOpacityService( 0 );
document.getElementById('contactdiv').style.display = "block";
for( var i = 0 ; i <= 100 ; i++ )
setTimeout( 'setOpacityContact(' + (i / 10) + ')' , 5 * i );
						
						document.getElementById('contactdiv').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}
	
	function setOpacityProject(value) {
document.getElementById('projectdiv').style.opacity = value / 10;
document.getElementById('projectdiv').style.filter = 'alpha(opacity=' + value * 10 + ')';
}
	function getProject(strURL) {		
		

		var req = getXMLHTTP();
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {
					setOpacityProject( 0 );
document.getElementById('projectdiv').style.display = "block";
for( var i = 0 ; i <= 100 ; i++ )
setTimeout( 'setOpacityProject(' + (i / 10) + ')' , 5 * i );
						
						document.getElementById('projectdiv').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}
	
	function getContact(strURL) {		
		
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
			
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('contact').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}
