if (reValue== undefined){alert("undefined");}
if (typeof(reValue) == "undefined"){ alert("undefined");}