I want to get intial top and left positions and save them for when the function is called again with the same object. I need the bits between the ??
Any suggestions on how to go about it.

Code:
function doFun(Obj,var) {
if(! ??Obj been through function?? ) { 
setInitialVars(Obj);
??record Obj been through function??  } else {
getInitialVars(Obj); }