Using Jquery with SP2007 for a Cascaded dropdown on a custom form

Using Jquery with SP2007 for a Cascaded dropdown on a custom form

I have a need to implement a cascaded set of two dropdowns on a sharepoint 2007 custom form and was told to pursue JQuery to do so.
 
Here is my original posted question on another forum:

I have a custom sharepoint form that I want to manage two dropdowns on.  Lets say one field is called SEGMENT and the second field is SUBSEGMENT.
 
When SEGMENT dropdown "Defense" is selected then
dropdown two SUBSEGMENT would have the following options:
Army
Air Force
Navy
 
When SEGMENT dropdown "S&L" is selected then
dropdown two SUBSEGMENT would have the following options:
East
West

is there a way to do this in custom forms?
















 
The response I received was:
 
- Use Javascript/jQuery/SPServices (only if options come from another list) e.g.
http://www.sharepointdiary.com/2011/01/cascading-drop-down-using-jquery.html

So I tried to implement this as documented on the link but.....


 
When I tried to follow the steps I ended up getting this error
An error occurred during the processing of /teams/GSSTA/TA/LOAD/Lists/BP/NewForm_Customv2.aspx. Only Content controls are allowed directly in a content page that contains Content controls.

using
<script language="javascript" type="text/javascript" src="/Java/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript" src="/Java/jquery.SPServices-0.7.2.min"></script>
<script language="javascript" type="text/javascript">
 $(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
   relationshipList: "subsegment",
   relationshipListParentColumn: "segment",
   relationshipListChildColumn: "Title",
   parentColumn: "segment",
   childColumn: "subsegment",
   debug: true
  });
 });
</script>

But it has no intrustions as t how to connect to the variables I have on my page