Rather than fight with trying to get that lengthy amount of javascript to output correctly, I went the simple route and used an <iframe> tag in the jas2.js parameter to reference the html page. Worked great! Makes maintaining the site a lot easier too!
--------------------------
Hi all!
1st of all, I'm classifying myself as a newbie here as I really am not strong in coding on its own. 1 semester of C++ many moons ago and tearing apart javascript and cobbling it back together to do what I want it to do is not enough to know what the heck I'm really doing. It works, but the knowledge fundamentals are lacking. Unfortunately I just don't have enough time in the day to actually learn the code like I really should. So please forgive my ignorance and take pity on me cause I certainly need it!
I'm developing a page that incorporates a javascript to output both html code & javascript code into a specified window in the image gallery on the html page. (
http://shoreservicedogs.com/paintings.shtml).
The actual javascript coding is located in the file jas2.js (
http://shoreservicedogs.com/jas2.js) in the paramaters at the top of the page.
The gallery located on the paintings.shtml page has 2 testing panes where I'm working on getting the more complicated coding to perform correctly.
On the 2nd slide titled "Test's 1st Painting" I've been able to successfully get it to incorporate javascript for posting to a paypal shopping cart and in creating a popup minipage listing solutions for shopping cart problems.
The problem I'm having is trying to figure out how to incorporate the code I've created & tested at (
http://shoreservicedogs.com/testoriginalpulldown2.html), into the jas2.js file for the test slide for bandanas (slide #3). At this point I've cut the testing code down to just one option for the pull down menu so that I could figure out how to incorporate the code so that it works properly. Got rid of all the carriage returns, any spaces between html tags, put \ before all ", and \ at the end of all closing html tags (ie </font\>). It just is not repopulating the pulldown menus as it does in the testoriginalpulldown2.html page. I'm certain it's just something where I've not created the correct syntax but I haven't a clue what I'm doing wrong. Any assistance in getting this thing working would be greatly appreciated! TIA!
Mary
Here's a snippet of the code from the jas2.js file that isn't working... yet.

(My apologies for the tiny sized font of the code. Doesn't seem to want to enlarge for some reason)
Code:
/* #test 2 */ ["kayne1.jpg", "<script type=\"text/javascript\">var arrItems1 = new Array();var arrItemsGrp1 = new Array();arrItems1[0] = \"Plain/No Name - $6\";arrItemsGrp1[0] = 1;var arrItems2 = new Array();var arrItemsGrp2 = new Array();arrItems2[11] = \"Black - Gold Dragons & Flames\";arrItemsGrp2[11] = 0arrItems2[12] = \"Flags (limited edition)\";arrItemsGrp2[12] = 0 function selectChange(control, controlToPopulate, ItemArray, GroupArray) {var myEle ;var x ;for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;if (control.name == \"select_size\") {for (var q=form.select_color.options.length;q>=0;q--) form.select_color.options[q] = null;} myEle = document.createElement(\"option\") ;myEle.value = 0 ; myEle.text = \"SELECT\" ;controlToPopulate.appendChild(myEle)for ( x = 0 ; x < ItemArray.length ; x++ ) {if ( GroupArray[x] == control.value ) {myEle = document.createElement(\"option\") ;myEle.setAttribute('value',x);var txt = document.createTextNode(ItemArray[x]);myEle.appendChild(txt)controlToPopulate.appendChild(myEle)}}}function selectChange(control, controlToPopulate, ItemArray, GroupArray) {var myEle ;var x ;for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;if (control.name == \"select_size\") {for (var q=form.select_color.options.length;q>=0;q--) form.select_color.options[q] = null;}myEle=document.createElement(\"option\");theText=document.createTextNode(\"SELECT\");myEle.appendChild(theText);myEle.setAttribute(\"value\",\"0\");controlToPopulate.appendChild(myEle);for ( x = 0 ; x < ItemArray.length ; x++ ) {if ( GroupArray[x] == control.value ) {myEle = document.createElement(\"option\") ;myEle.setAttribute(\"value\",x);var txt = document.createTextNode(ItemArray[x]);myEle.appendChild(txt)controlToPopulate.appendChild(myEle)}}}</script\><script language=\"javascript\">function CalculateOrder(form){if (form.select_size.value == \"1\" && form.select_option.value == \"0\" && form.select_color.value == \"11\"){form.amount.value = 6.00;form.item_name.value = \"Bandana XS\";form.on0.value = \"Plain, Black - Gold Dragons & Flames\";}if (form.select_size.value == \"1\" && form.select_option.value == \"0\" && form.select_color.value == \"12\"){form.amount.value = 6.00;form.item_name.value = \"Bandana XS\";form.on0.value = \"Plain, Flags (limited edition)\";}if (form.select_size.value == \"0\" && form.select_option.value == \"0\" && form.select_color.value == \"0\"){form.amount.value = 0.00;form.item_name.value = \"Select Category & Options\";form.on0.value = \"Please select correct category, options, and colors.\";}}</script\><cemter><table border=\"0\" cellpadding=\"4\" width=\"240\"><tr><td colspan=\"2\"><form name=\"form\" action=\"https:\//www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"paypal\" onSubmit=\"return checkFields();\"><font face=\"Arial, Helvetica, Geneva, Swiss, SunSans-Regular\" size=\"2\" color=\"black\">Select Size:</font\><br><font face=\"Arial, Helvetica, Geneva, Swiss, SunSans-Regular\" size=\"2\" color=\"black\"><select id=\"select_size\" name=\"select_size\" onchange=\"selectChange(this, form.select_option, arrItems1, arrItemsGrp1);\"><option value=\"0\" selected>SELECT</option\><option value=\"1\">XSmall (9\" wide, velcro clasp)</option\></select\></font\><br><br><font face=\"Arial, Helvetica, Geneva, Swiss, SunSans-Regular\" size=\"2\" color=\"black\">Select Option:</font\><br><select id=\"select_option\" name=\"select_option\" onchange=\"selectChange(this, form.select_color, arrItems2, arrItemsGrp2);\"></select\><br><br><font face=\"Arial, Helvetica, Geneva, Swiss, SunSans-Regular\" size=\"2\" color=\"black\">Select Color:</font\><br><select id=\"select_color\" name=\"select_color\"></select\><br><br><center><table width=\"220\" border=\"1\" cellpadding=\"10\" bgcolor=\"#cccc99\"><tr><td><center><font face=\"Arial, Helvetica, Geneva, Swiss, SunSans-Regular\" size=\"2\" color=\"black\">When Personalizing or PAWtograph Personalizing, please enter your dog's name exactly as you want it to appear on the item: </font\><br><font face=\"Arial, Helvetica, Geneva, Swiss, SunSans-Regular\" size=\"2\" color=\"red\">(Maximum 8 letters)</font\><br><br><input type=\"text\" name=\"on1\" size=\"9\" maxlength=\"8\" value=\"\" ><br></center\></td\></tr\></table\></center\></td\></tr\><tr><td valign=\"top\" align=\"right\"><input type=\"image\" name=\"submit\" src=\"https:\//secure05.servadmin.com/shoreservicedogs.com/add_to_cart.gif\" onClick=\"CalculateOrder(this.form)\" alt=\"Make payments with PayPal - it's fast, free and secure!\" border=\"0\"><input type=\"hidden\" name=\"add\" value=\"1\"><input type=\"hidden\" name=\"cmd\" value=\"_cart\"><input type=\"hidden\" name=\"business\" value=\"paypal@shoreservicedogs.com\"><input type=\"hidden\" name=\"item_name\" value=\"Please select a size, style, and color.\"><input type=\"hidden\" name=\"amount\" value=\"0.00\"><input type=\"hidden\" name=\"shipping\" value=\"0.00\"><input type=\"hidden\" name=\"on0\" value=\"Not Available\"><input type=\"hidden\" name=\"no_note\" value=\"1\"><input type=\"hidden\" name=\"currency_code\" value=\"USD\"></form\></td\><td align=\"left\" valign=\"top+><form action=\"https:\//www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"paypal\"><input type=\"hidden\" name=\"cmd\" value=\"_cart\" ><input type=\"hidden\" name=\"business\" value=\"paypal@shoreservicedogs.com\" ><input type=\"image\" name=\"submit\" src=\"https:\//secure05.servadmin.com/shoreservicedogs.com/view_cart.gif\" alt=\"Make payments with PayPal - it's fast, free and secure!\" border=\"0\"><input type=\"hidden\" name=\"display\" value=\"1\"></form\></td\></tr\></table\></center\>",
" All SSD\'s Studio<br\>\n    Paintings, Kayne<br\>\n   㺋\"x15\"<br\>\n      Heavy Artist\'s Paper",
"http://www.youtube.com/v/Nh5UUYXu0ss"],