%@ LANGUAGE="JSCRIPT" %>
No permission to upload
"); } else if(Request.ServerVariables("request_method").toLowerCase() != "post") { %> Select an observing plan file to be checked then click Submit to Plan Checker: Submit to Plan Checker <% } else { // // POST: Move the file from it's temporary location to its final // location. // if(!Request.Form("FileName")) { // No file uploaded... Response.Write(""); Pl.Init(fUtl, null, "", false); // Init for offline use if(Pl.Read(Request.Form("FilePath"))) Response.Write("Plan looks good!"); Pl = null; try { var fso = new ActiveXObject("Scripting.FileSystemObject"); fso.DeleteFile(Request.Form("FilePath")); fso = null; } catch (ex) { } Response.Write("Check another."); } } %>