Start of xmlhttp functions.