// load jQuery headers application.ptForum.scripts.loadJQuery("1.3.2",1); // load headers for ADF lightbox application.ptForum.scripts.loadADFLightbox(force=1); // Set the threadid threadid = ""; // Check if we need to display the form if ( (StructKeyExists(request.params, "threadid")) AND LEN(TRIM(request.params.threadid)) ) { threadid = request.params.threadid; } // set the userid useruniqueid = ""; if ( structKeyExists(session.user, "ptForum") AND structKeyExists(session.user.ptForum, "profileid") AND LEN(TRIM(session.user.ptForum.profileid)) AND request.user.ptForum.profileid NEQ 0 ) { useruniqueid = session.user.ptForum.profileid; }