function mostraArquivo(strURL) {
	var xmlHttpJPG = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpJPG = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpJPG = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpJPG.open('POST', strURL, true);
	
    self.xmlHttpJPG.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpJPG.onreadystatechange = function() {
        if (self.xmlHttpJPG.readyState == 4) {
            updatepageMateria(self.xmlHttpJPG.responseText);
			//document.getElementById("arqJPG").innerHTML = str;
		}
    }
    self.xmlHttpJPG.send(getquerystring());
}

function getquerystring() {
    var form     = document.forms['f1'];
    var word = 'aa';//form.word.value;
    qstr = 'w=' + escape(word);  // NOTE: no '?' before querystring
    return qstr;
}

function updatepageMateria(str){
	document.getElementById("divMateria").innerHTML = str;
}
