diff --git a/class.form.php b/class.form.php
index <HASH>..<HASH> 100644
--- a/class.form.php
+++ b/class.form.php
@@ -2515,6 +2515,7 @@ STR;
 		return $str;
 	}
 
+	/*This function renders the form's javascript.  This function is invoked within includes/js.php.  The contents returned by this function are then placed in the document's head tag for xhtml strict compliance.*/
 	public function renderJS($returnString=false)
 	{
 		$str = "";
@@ -3115,6 +3116,7 @@ STR;
 			return $str;
 	}
 
+	/*This function renders the form's css.  This function is invoked within includes/css.php.  The contents returned by this function are then placed in the document's head tag for xhtml strict compliance.*/
 	public function renderCSS($returnString=false)
 	{
 		$str = "";
diff --git a/includes/js.php b/includes/js.php
index <HASH>..<HASH> 100644
--- a/includes/js.php
+++ b/includes/js.php
@@ -2,6 +2,12 @@
 session_start();
 header("Content-Type: text/javascript");
 
+if(empty($_SESSION["pfbc-instances"][$_GET["id"]]))
+{
+	echo 'alert("php-form-builder-class Configuration Error: Session Not Started\n\nA session is required to generate this form\'s necessary javascript and stylesheet information.  To correct, simply add session_start(); before any output in your script.");';
+	exit();
+}
+
 $path = "../class.form.php";
 
 if(is_file($path))
Added javascript alerts within includes/js.php to provide helpful
feedback on configuration issues.  Added a few comments to
class.form.php.


git-svn-id: <URL>