Ajax,Javascript,Python

From a python script located at /script.py, I want to see storeNum on the html page.

def testpost(storeNum):
    storeNum = int(storeNum) + 1
    return storeNum

Then on the html page I have JScript

function create_xml_http() {
    if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
        var xmlhttp = new XMLHttpRequest();
    } else { // code for IE6, IE5
        alert("This page does not support Internet Explorer.  Please open in another\\
       browser.")
    }
    return xmlhttp;
}

function sendStoreNum() {
    var storeValue = +document.getElementById('strNum').value;
    if (storeValue == '') {
        return;
    }
    var sendStoreNum.onreadystatechange = create_xml_http();
    var url = 'home/jholstine/workspace/oreilly/sqltest.py/testpost'
    if (storeValue >= 1) {
        alert('made it to post');
        sendStoreNum.open('POST', url, true);
    } else {
        alert('You have enter a text instead of a number!');
        sendStoreNum.send();
        storeValue.value = '';
        return
    }
}

I can't seem to get these two to talk. I just want to enter the number into a text box and hit enter. Then have it send back the store number plus 1. Can someone please help make these to talk?