var xmlHttp; var email_friend_url = 'http://www.lip-service.com/handlers/email_friend.php'; var json_style_url = 'http://www.lip-service.com/handlers/getJSONStyle.php'; var web_root = 'http://www.lip-service.com'; function GetXmlHttpObject() { xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); if(xmlHttp.overrideMimeType) { //set type accordingly to anticipated content type //xmlHttp.overrideMimeType('text/xml'); xmlHttp.overrideMimeType('text/html'); } } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function onProgress(e) { var percentComplete = (e.position / e.totalSize)*100; //alert(percentComplete); //dumpAssoc(e,'e'); } function onError(e) { alert("Error " + e.target.status + " occurred while receiving the document."); } function onLoad(e) { alert('onload called'); }