

<!-- 



function newQuote()

{

quoteOut()

}



// Get the HTTP Object

function getHTTPObject(){

    // Mozilla/Safari
    if (window.XMLHttpRequest) 
    {
        xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    
	else if (window.ActiveXObject) 
    {
        xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
  
	
	return xmlHttpReq;

}   

 

// Output

function setQuote(){

    if(httpObject.readyState == 4){



        document.getElementById("quote").innerHTML=httpObject.responseText;
}

    

 

}

 

// Implement business logic    

 function quoteOut(){    

    httpObject = getHTTPObject();

    if (httpObject != null) {

        httpObject.open("GET", "includes/quotes.php", true);

        httpObject.send(null); 

        httpObject.onreadystatechange = setQuote;

    }

    setTimeout("quoteOut()",9000); 

}

 


//-->