Scope of a variable?

I seem to be having difficulty in using the contents of a variable whan i receive the data from the database the script places the contents in a variable called myText1

This I need to access outside the function.

Any ideas?

This is part of the script below.
//----------------------------------------------------------------------------------------

mypath = “http://192.168.0.100/fedpest/pestReports/
mypath1 =mypath + “exterior.php”;

var sendData = new LoadVars();
var recData = new LoadVars();
recData.onLoad = getResponse;

sendData.id_num = 1;
 	   
                  sendData.sendAndLoad(mypath1, recData, "post");

function getResponse(result){

myText1=this[“mytext”];

};

AreasSituationsText.text=myText1;
//--------------------------------------------------------------------------------------