Anybody able to offer any help...

PHP Code:
function enterBook()
{
    var 
myBooks = new Array()
    var 
myPrices = new Array()
    
    for (
1<= 5i++)
    {
        
myBooks[i] = prompt("Enter title of book","");
        
myPrices[i] = parseFloat(prompt("Enter price of book",""));
        
document.getElementById("output").innerHTML += ". " myBooks[i] + ". Price: " myPrices[i] + "<br />";
    }
    
    for (var 
i in myPrices)
    {
        
document.getElementById("total").innerHTML =+ i;
    }

I need to calculate the total of the myPrices array values using the 'for in' loop and display them to my page, i think im pretty close

Thanks!