Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax for calling a js from within another js

Status
Not open for further replies.

fpl9250

Programmer
Jan 22, 2007
46
US
hello,

Just wondering if there is any different way of calling a js from within a js.

this is what I'm using..

<script language="JavaScript1.2" src="/wrapper/global/mm_menu.js"></script>

Thank you
 
What you have will call an external Javascript file into your HTML page.

The standard compliant way is to use the MIME type instead of using the language attribute:
Code:
<script [!]type="text/javascript"[/!] src="/wrapper/global/mm_menu.js"></script>

I guess another way would be to put the <script> tags in a server side include, but that really would make no sense.


[monkey][snake] <.
 
Oh man, I need help...

This thing is telling me that I have an error on line 7, char 1. It's telling Object Expected. I'm not sure what's missing on line 6. Below is the code I'm using in the beginning of this two part file. This is beginwrap.js....content...endwrap.js

Here's the code for beginwrap.js. What the heck is wrong with line 7

Code:
document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">');[/URL]


document.write('<LINK HREF="[URL unfurl="true"]http://webtest.fpl.com/css/fpl.css"[/URL] REL="stylesheet" TYPE="text/css" MEDIA="screen">');
document.write('<LINK HREF="[URL unfurl="true"]http://webtest.fpl.com/css/print.css"[/URL] REL="stylesheet" TYPE="text/css" MEDIA="print">'); 


document.write('<!--Script Below is for image preloading, and swapping button mouseOver-->');


document.write('<script language="JavaScript">');
document.write('<!--');
document.write('function MM_findObj(n, d) { //v4.01');
document.write('  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {');
document.write('    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}');
document.write('  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];');
document.write('  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);');
document.write('  if(!x && d.getElementById) x=d.getElementById(n); return x;');
document.write('}');
document.write('function MM_nbGroup(event, grpName) { //v6.0');
document.write('var i,img,nbArr,args=MM_nbGroup.arguments;');
document.write('  if (event == "init" && args.length > 2) {');
document.write('    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {');
document.write('      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;');
document.write('      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();');
document.write(' nbArr[nbArr.length] = img;');
document.write('      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {');
document.write('        if (!img.MM_up) img.MM_up = img.src;');
document.write('        img.src = img.MM_dn = args[i+1];');
document.write('        nbArr[nbArr.length] = img;');
document.write('    } }');
document.write('  } else if (event == "over") {');
document.write('    document.MM_nbOver = nbArr = new Array();');
document.write('    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {');
document.write('      if (!img.MM_up) img.MM_up = img.src;');
document.write('      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);');
document.write('      nbArr[nbArr.length] = img;');
document.write('    }');
document.write('  } else if (event == "out" ) {');
document.write('    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }');
document.write('  } else if (event == "down") {');
document.write('    nbArr = document[grpName];');
document.write('    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }');
document.write('    document[grpName] = nbArr = new Array();');
document.write('    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {');
document.write('      if (!img.MM_up) img.MM_up = img.src;');
document.write('      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;');
document.write('      nbArr[nbArr.length] = img;');
document.write('  } }');
document.write('}');

document.write('function MM_preloadImages() { //v3.0');
document.write(' var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();');
document.write('   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)');
document.write('   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}');
document.write('}');

document.write('function mmLoadMenus() {');
document.write('  if (window.mm_menu_0927102750_0) return;');
document.write('  window.mm_menu_0927102750_0 = new Menu("root",165,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927102750_0.addMenuItem("Residential","location=\'[URL unfurl="true"]http://www.fpl.com/residential/customer_service.shtml\'");');[/URL]
document.write('  mm_menu_0927102750_0.addMenuItem("Business","location=\'[URL unfurl="true"]http://www.fpl.com/business/customer_service.shtml\'");');[/URL]
document.write('  mm_menu_0927102750_0.addMenuItem("Large&nbsp;Business/Governmental","location=\'[URL unfurl="true"]http://www.fpl.com/largebusiness/customer_service.shtml\'");');[/URL]
document.write('  mm_menu_0927102750_0.addMenuItem("Start,&nbsp;Stop,&nbsp;Transfer&nbsp;Service","location=\'[URL unfurl="true"]http://www.fpl.com/customer/moving.shtml\'");');[/URL]
document.write('   mm_menu_0927102750_0.hideOnMouseOut=true;');
document.write('   mm_menu_0927102750_0.menuBorder=1;');
document.write('   mm_menu_0927102750_0.menuLiteBgColor=\'#ffffff\';');
document.write('   mm_menu_0927102750_0.menuBorderBgColor=\'#ffffff\';');
document.write('   mm_menu_0927102750_0.bgColor=\'#000000\';');
document.write('  window.mm_menu_0927114817_1 = new Menu("root",230,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927114817_1.addMenuItem("Our&nbsp;Commitment&nbsp;to&nbsp;Environment","location=\'[URL unfurl="true"]http://www.fpl.com/environment/commitment.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Generating&nbsp;Power&nbsp;for&nbsp;Our&nbsp;Future","location=\'[URL unfurl="true"]http://www.fpl.com/environment/plant/power_plant_projects.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Getting&nbsp;Power&nbsp;to&nbsp;Our&nbsp;Customers","location=\'[URL unfurl="true"]http://www.fpl.com/environment/lines/power_lines.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Nuclear&nbsp;Power&nbsp;Serves&nbsp;You","location=\'[URL unfurl="true"]http://www.fpl.com/environment/nuclear/nuclear_power_serves_you.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Alternative&nbsp;Energy","location=\'[URL unfurl="true"]http://www.fpl.com/environment/conservation/alternative_energy.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Recycling&nbsp;Energy&nbsp;in&nbsp;New&nbsp;Ways","location=\'[URL unfurl="true"]http://www.fpl.com/environment/recycling/waste_recycling_programs.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Environmental&nbsp;Education","location=\'[URL unfurl="true"]http://www.fpl.com/environment/environmental_education.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Electric&nbsp;and&nbsp;Magnetic&nbsp;Fields","location=\'[URL unfurl="true"]http://www.fpl.com/environment/electric_and_magnetic_fields.shtml\'");');[/URL]
document.write('   mm_menu_0927114817_1.addMenuItem("Plant&nbsp;Operations&nbsp;&amp;&nbsp;Toxic&nbsp;Release&nbsp;Inventory","location=\'[URL unfurl="true"]http://www.fpl.com/environment/tri/power_plant_operations.shtml\'");');[/URL]
document.write('  mm_menu_0927114817_1.addMenuItem("Everglades&nbsp;Mitigation&nbsp;Bank","location=\'[URL unfurl="true"]http://www.fpl.com/environment/emb/index.shtml\'");');[/URL]
document.write('   mm_menu_0927114817_1.hideOnMouseOut=true;');
document.write('   mm_menu_0927114817_1.menuBorder=1;');
document.write('   mm_menu_0927114817_1.menuLiteBgColor=\'#ffffff\';');
document.write('   mm_menu_0927114817_1.menuBorderBgColor=\'#ffffff\';');
document.write('   mm_menu_0927114817_1.bgColor=\'#000000\';');
document.write('  window.mm_menu_0927133553_2 = new Menu("root",160,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927133553_2.addMenuItem("Community&nbsp;Involvement","location=\'[URL unfurl="true"]http://www.fpl.com/community/index.shtml\'");');[/URL]
document.write('  mm_menu_0927133553_2.addMenuItem("Community&nbsp;Outreach","location=\'[URL unfurl="true"]http://www.fpl.com/community/community_development.shtml\'");');[/URL]
document.write('  mm_menu_0927133553_2.addMenuItem("Education","location=\'[URL unfurl="true"]http://www.fpl.com/community/learning/index.shtml\'");');[/URL]
document.write('  mm_menu_0927133553_2.addMenuItem("Environmental","location=\'[URL unfurl="true"]http://www.fpl.com/community/environment.shtml\'");');[/URL]
document.write('  mm_menu_0927133553_2.addMenuItem("Human&nbsp;Services","location=\'[URL unfurl="true"]http://www.fpl.com/community/human_services.shtml\'");');[/URL]
document.write('   mm_menu_0927133553_2.hideOnMouseOut=true;');
document.write('   mm_menu_0927133553_2.menuBorder=1;');
document.write('   mm_menu_0927133553_2.menuLiteBgColor=\'#ffffff\';');
document.write('   mm_menu_0927133553_2.menuBorderBgColor=\'#ffffff\';');
document.write('   mm_menu_0927133553_2.bgColor=\'#000000\';');
document.write('  window.mm_menu_0927134526_3 = new Menu("root",195,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927134526_3.addMenuItem("Storm Center","location=\'[URL unfurl="true"]http://www.fpl.com/storm/index.shtml\'");');[/URL]
document.write('  mm_menu_0927134526_3.addMenuItem("Report/Check&nbsp;Status&nbsp;of&nbsp;an&nbsp;Outage","window.open(\'[URL unfurl="true"]https://app.fpl.com/wors2/WorsController?command=welcome\',\'Power_Outage\',\'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=625,height=550\');[/URL] void(\'\')");');
document.write('  mm_menu_0927134526_3.addMenuItem("Storm&nbsp;Safety&nbsp;Tips","location=\'[URL unfurl="true"]http://www.fpl.com/storm/customer_tips.shtml\'");');[/URL]
document.write('  mm_menu_0927134526_3.addMenuItem("Preparing&nbsp;for&nbsp;Hurricane&nbsp;Season","location=\'[URL unfurl="true"]http://www.fpl.com/storm/storm_prep.shtml\'");');[/URL]
document.write('  mm_menu_0927134526_3.addMenuItem("Making&nbsp;Homes&nbsp;Safe","location=\'[URL unfurl="true"]http://www.fpl.com/safety/making_homes_safe.shtml\'");');[/URL]
document.write('  mm_menu_0927134526_3.addMenuItem("Working&nbsp;Safely&nbsp;Around&nbsp;Power&nbsp;Lines","location=\'[URL unfurl="true"]http://www.fpl.com/safety/working_with_power.shtml\'");');[/URL]
document.write('  mm_menu_0927134526_3.addMenuItem("Nuclear&nbsp;Safety","location=\'[URL unfurl="true"]http://www.fpl.com/safety/nuclear/nuclear_safety.shtml\'");');[/URL]
document.write('  mm_menu_0927134526_3.hideOnMouseOut=true;');
document.write('  mm_menu_0927134526_3.menuBorder=1;');
document.write('  mm_menu_0927134526_3.menuLiteBgColor=\'#ffffff\';');
document.write('  mm_menu_0927134526_3.menuBorderBgColor=\'#ffffff\';');
document.write('  mm_menu_0927134526_3.bgColor=\'#000000\';'); 
document.write('  window.mm_menu_0927135038_4 = new Menu("root",160,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927135038_4.addMenuItem("Career&nbsp;Opportunities","location=\'[URL unfurl="true"]http://www.fplcareers.com\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("News","location=\'[URL unfurl="true"]http://www.fpl.com/news/index.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("Profile","location=\'[URL unfurl="true"]http://www.fpl.com/about/profile/company_profile.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("Investors","location=\'[URL unfurl="true"]http://www.fplgroup.com/investor/contents/investor_index.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("Rates,&nbsp;Rules&nbsp;&amp;&nbsp;Regulations","location=\'[URL unfurl="true"]http://www.fpl.com/rates/index.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("FPL\'s&nbsp;Commitment&nbsp;to&nbsp;Quality","location=\'[URL unfurl="true"]http://www.fpl.com/about/quality/fpls_commitment_to_quality.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("FPL\'s&nbsp;History","location=\'[URL unfurl="true"]http://www.fpl.com/about/history/looking_back_fpls_colorful_history.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.addMenuItem("FPL&nbsp;Retirees","location=\'[URL unfurl="true"]http://www.fpl.com/about/retirees/fpl_retirees.shtml\'");');[/URL]
document.write('  mm_menu_0927135038_4.hideOnMouseOut=true;');
document.write('  mm_menu_0927135038_4.menuBorder=1;');
document.write('  mm_menu_0927135038_4.menuLiteBgColor=\'#ffffff\';');

document.write('   mm_menu_0927135038_4.menuBorderBgColor=\'#ffffff\';');
document.write('   mm_menu_0927135038_4.bgColor=\'#000000\';');
document.write('  window.mm_menu_0927135239_5 = new Menu("root",97,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927135239_5.addMenuItem("Builders","location=\'[URL unfurl="true"]http://www.fpl.com/doingbusiness/builder/b1_index.shtml\'");');[/URL]
document.write('  mm_menu_0927135239_5.addMenuItem("Contractors","location=\'[URL unfurl="true"]http://www.fpl.com/doingbusiness/contractors/contents/contractors_and_partners.shtml\'");');[/URL]
document.write('  mm_menu_0927135239_5.addMenuItem("Suppliers","location=\'[URL unfurl="true"]http://www.fpl.com/doingbusiness/isc/contents/suppliers.shtml\'");');[/URL]
document.write('   mm_menu_0927135239_5.hideOnMouseOut=true;');
document.write('   mm_menu_0927135239_5.menuBorder=1;');
document.write('   mm_menu_0927135239_5.menuLiteBgColor=\'#ffffff\';');
document.write('   mm_menu_0927135239_5.menuBorderBgColor=\'#ffffff\';');
document.write('   mm_menu_0927135239_5.bgColor=\'#000000\';');
document.write('  window.mm_menu_0927135349_6 = new Menu("root",120,19,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#2e446c","#006699","left","middle",4,0,500,-5,7,true,true,true,7,false,true);');
document.write('  mm_menu_0927135349_6.addMenuItem("FPL&nbsp;Group","location=\'[URL unfurl="true"]http://www.fplgroup.com\'");');[/URL]
document.write('  mm_menu_0927135349_6.addMenuItem("FPL&nbsp;Energy","location=\'[URL unfurl="true"]http://www.fplenergy.com\'");');[/URL]
document.write('  mm_menu_0927135349_6.addMenuItem("FPL&nbsp;FiberNet","location=\'[URL unfurl="true"]http://www.fplfibernet.com\'");');[/URL]
document.write('  mm_menu_0927135349_6.addMenuItem("FPL&nbsp;Transmission&nbsp;Srv","location=\'[URL unfurl="true"]http://floasis.siemens-asp.com/OASIS/FPL/INFO.HTM\'");');[/URL]
document.write('  mm_menu_0927135349_6.addMenuItem("FPL&nbsp;Web&nbsp;Taxi","location=\'[URL unfurl="true"]http://www.fpl.com/accounting/webtaxi/taxi.html\'");');[/URL]
document.write('  mm_menu_0927135349_6.addMenuItem("FPL&nbsp;Energy&nbsp;Services","location=\'[URL unfurl="true"]http://www.fpl.com/energy_services/index.shtml\'");');[/URL]
document.write('   mm_menu_0927135349_6.hideOnMouseOut=true;');
document.write('   mm_menu_0927135349_6.menuBorder=1;');
document.write('   mm_menu_0927135349_6.menuLiteBgColor=\'#ffffff\';');
document.write('   mm_menu_0927135349_6.menuBorderBgColor=\'#ffffff\';');
document.write('   mm_menu_0927135349_6.bgColor=\'#000000\';');

document.write('  mm_menu_0927135349_6.writeMenus();');
document.write('}'); // mmLoadMenus() 

//-->
document.write('</script>');
document.write('<script type="text/javascript" src="[URL unfurl="true"]http://webtest.fpl.com/fplcommon/wrapper/global/mm_menu.js"></script>');[/URL]
document.write('<SCRIPT language="JavaScript"> ');
<!--  
document.write('	function doLastPayment() {');
document.write('		document.servletcall.command.value="lastPayment";');
document.write('		document.servletcall.submit();');
document.write('	}');

document.write('	function doLastStatement() {');
document.write('		document.servletcall.command.value="lastStatement";');
document.write('		document.servletcall.submit();');
document.write('	}');

document.write('	function doBillingHistory() {');
document.write('		document.servletcall.command.value="billingHistory";');
document.write('		document.servletcall.submit();');
document.write('	}');

document.write('	function doPaymentHistory() {');
document.write('		document.servletcall.command.value="paymentHistory";');
document.write('		document.servletcall.submit();');
document.write('	}');

document.write(' 	function doBillingGraph() {');
document.write('		document.servletcall.command.value="billingGraph";');
document.write('		document.servletcall.submit();');
document.write('	}');

// --> 
document.write('</SCRIPT>');


document.write('<script>');
document.write('function validateSearch() {');

document.write('if (document.searchform.q.value == "") {');
document.write('alert("Please enter a search term.");');
document.write('document.searchform.q.focus();');
document.write('return false;');
document.write('}');
document.write('}');
document.write('</script>');

document.write('<FORM NAME="servletcall" ACTION="[URL unfurl="true"]https://app.fpl.com/AccountInfo/AccountInfo"[/URL] METHOD="GET"><INPUT TYPE="hidden" NAME="command" VALUE=""></FORM> ');
document.write('<FORM NAME="customerserviceform" ACTION="[URL unfurl="true"]https://app.fpl.com/sowww2/SowwwHtmlController"[/URL] METHOD="GET" ENCTYPE="application/x-[URL unfurl="true"]www-form-urlencoded"><INPUT[/URL] TYPE="HIDDEN" NAME="command" VALUE=""></FORM>');
document.write('<FORM NAME="addressDisconnect" METHOD="GET" ACTION="[URL unfurl="true"]https://app.fpl.com/sowww2/SowwwHtmlController"><input[/URL] type="HIDDEN" name="command"></FORM>');
document.write('<FORM NAME="callingForm" METHOD="POST" ACTION="[URL unfurl="true"]https://app.fpl.com/fplcom_app/servlet/remailer"><INPUT[/URL] TYPE="HIDDEN" NAME="PageName"></FORM>');
document.write('<FORM NAME="callingForm2" METHOD="POST"  ACTION="[URL unfurl="true"]https://app.fpl.com/mkt_app/civaps"><INPUT[/URL] TYPE="HIDDEN" NAME="FormName"></FORM>');
document.write('<FORM NAME="budgetbillingform" ACTION="[URL unfurl="true"]https://app.fpl.com/billing/BiwwwHtmlController"[/URL] METHOD="get" ENCTYPE="application/x-[URL unfurl="true"]www-form-urlencoded">[/URL] <INPUT TYPE="HIDDEN" NAME="command" VALUE="HomeBudgetBill"></form>');
document.write('<FORM NAME="aftinfo" METHOD="GET" ACTION="[URL unfurl="true"]https://app.fpl.com/financial/HtmlController"[/URL]  ENCTYPE="application/x-[URL unfurl="true"]www-form-urlencoded"><INPUT[/URL] TYPE="HIDDEN" NAME="matrixRequestNumber" VALUE="27"><INPUT TYPE="HIDDEN" NAME="command" VALUE=""></form>');
document.write('<FORM NAME="callingDuctForm" METHOD="GET" ACTION = "[URL unfurl="true"]https://app.fpl.com/mkt_app/resduct"><INPUT[/URL] TYPE="HIDDEN" NAME="FormName"></form>');





document.write('<LINK HREF="/css/fpl.css" REL="stylesheet" TYPE="text/css" MEDIA="screen">');
document.write('<TITLE>Business | FPL | Business Customer Service</TITLE>');


document.write('<style type="text/css">');

document.write('.style2 {font-size: 10pt}');

document.write('</style>');
document.write('<META NAME="WT.ad" CONTENT="BU05">');
document.write('</head>');
document.write('<BODY>');
document.write('<table id="outerMostTable" width="760"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">');
document.write('  <tr>');
document.write('    <td width="130">');
	
document.write('	<DIV ID="banner"><a href="[URL unfurl="true"]http://www.fpl.com/index.shtml"><img[/URL] src="/fplcommon/wrapper/images/topLogo.gif" name="FPLlogo" width="86" height="81" border="0"></a></DIV>');

	
document.write('	</td>');
document.write('    <td align="right" valign="bottom">');
	
	
document.write('<style type="text/css">');
document.write('<!--');
document.write('.style1 {color: #000000}');
document.write('-->');
document.write('</style>');

document.write('<div id="searchBox">');
document.write('<table height="40" border="0" cellpadding="0" cellspacing="0">');
document.write('  <tr>');
document.write('    <td valign="middle"><span class="style1"><a href="[URL unfurl="true"]http://www.fpl.com">Home</a>[/URL] | <A HREF="[URL unfurl="true"]http://www.fpl.com/spanish/consejero/contents/index.shtml">En[/URL] Espa&ntilde;ol </A> | <A HREF="[URL unfurl="true"]http://www.fpl.com/contact/index.shtml">Contact[/URL] Us</A> | <A HREF="[URL unfurl="true"]http://www.fpl.com/map/index.shtml">Site[/URL] Map</A> | <A HREF="[URL unfurl="true"]http://www.fplcareers.com"[/URL] target="_blank">Careers</A> | </span><a href="javascript:window.print()"><img src="/fplcommon/wrapper/images/printThisPage.gif" alt="" name="print" width="104" height="16" border="0" align="top"></a>&nbsp;&nbsp;</td>');
    
document.write('	<FORM NAME="searchform" METHOD="GET" action="[URL unfurl="true"]http://fplgoogle.fpl.com/search"[/URL] onSubmit="return validateSearch();">');
document.write('	<td valign="middle">');
document.write('	<INPUT NAME="q" TYPE="text" size="17">');
document.write('	</td>');
document.write('    <td valign="middle">&nbsp;<input type="image" name="btnG" src="/fplcommon/wrapper/images/searchBtn.gif" width="65" height="17"></td>');
document.write('    <td valign="middle"><input type="hidden" name="ie" value="">');
document.write('      <input type="hidden" name="site" value="fpl_redesign">');
document.write('      <input type="hidden" name="output" value="xml_no_dtd">');
document.write('      <input type="hidden" name="client" value="fpl_redesign_client">');
document.write('      <input type="hidden" name="proxystylesheet" value="fpl_redesign_client"></td>');
document.write('	</FORM>');
document.write('  </tr>');
document.write('</table>');
document.write('</div>');

document.write('<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="/fplcommon/scripts/dcs_tag_new.js"></SCRIPT>');
document.write('<NOSCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" SRC="/fplcommon/scripts/dcs_tag_no_js.js"></NOSCRIPT>');





document.write('	<div id="topMenu"><script type="text/javascript">mmLoadMenus();</script>');
document.write('<table border="0" cellpadding="0" cellspacing="0" width="626">');
document.write('<!-- fwtable fwsrc="topMenu.png" fwbase="topMenuWithGraphics.gif" fwstyle="Dreamweaver" fwdocid = "1775429314" fwnested="0" -->');
document.write('  <tr>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="80" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="109" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="90" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="99" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="59" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="99" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="90" height="1" border="0" alt=""></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="1" height="1" border="0" alt=""></td>');
document.write('  </tr>');

document.write('  <tr>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927102750_0,0,29,null,\'topMenuWithGraphics_r1_c1\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c1\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c1_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c1_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927102750_0,0,29,null,\'topMenuWithGraphics_r1_c1\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c1\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c1_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c1_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c1" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c1.gif" width="80" height="29" border="0" alt=""></a></td>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927114817_1,0,29,null,\'topMenuWithGraphics_r1_c2\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c2\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c2_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c2_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927114817_1,0,29,null,\'topMenuWithGraphics_r1_c2\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c2\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c2_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c2_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c2" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c2.gif" width="109" height="29" border="0" alt=""></a></td>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927133553_2,0,29,null,\'topMenuWithGraphics_r1_c3\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c3\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c3_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c3_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927133553_2,0,29,null,\'topMenuWithGraphics_r1_c3\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c3\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c3_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c3_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c3" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c3.gif" width="90" height="29" border="0" alt=""></a></td>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927134526_3,0,29,null,\'topMenuWithGraphics_r1_c4\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c4\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c4_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c4_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927134526_3,0,29,null,\'topMenuWithGraphics_r1_c4\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c4\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c4_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c4_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c4" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c4.gif" width="99" height="29" border="0" alt=""></a></td>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927135038_4,0,29,null,\'topMenuWithGraphics_r1_c5\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c5\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c5_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c5_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927135038_4,0,29,null,\'topMenuWithGraphics_r1_c5\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c5\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c5_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c5_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c5" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c5.gif" width="59" height="29" border="0" alt=""></a></td>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927135239_5,0,29,null,\'topMenuWithGraphics_r1_c6\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c6\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c6_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c6_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927135239_5,0,29,null,\'topMenuWithGraphics_r1_c6\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c6\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c6_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c6_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c6" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c6.gif" width="99" height="29" border="0" alt=""></a></td>');
document.write('   <td><a href="#" onMouseOut="MM_nbGroup(\'out\');MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0927135349_6,-33,29,null,\'topMenuWithGraphics_r1_c7\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c7\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c7_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c7_f4.gif\',1);" onClick="MM_showMenu(window.mm_menu_0927135349_6,-33,29,null,\'topMenuWithGraphics_r1_c7\');MM_nbGroup(\'over\',\'topMenuWithGraphics_r1_c7\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c7_f2.gif\',\'/fplcommon/wrapper/images/topMenuWithGraphics_r1_c7_f4.gif\',1);"><img name="topMenuWithGraphics_r1_c7" src="/fplcommon/wrapper/images/topMenuWithGraphics_r1_c7.gif" width="90" height="29" border="0" alt=""></a></td>');
document.write('   <td><img src="/fplcommon/wrapper/images/spacer.gif" width="1" height="29" border="0" alt=""></td>');
document.write('  </tr>');
document.write('</table>');
document.write('</div>');
	
document.write('	</td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="0">');
document.write('      <tr>');
document.write('        <td>');
document.write('		<div id="leftBuckets">');
		
document.write('<div id="welcome" >');
document.write('  <table width="130" border="0" cellspacing="0" cellpadding="0">');
document.write('    <tr>');
document.write('      <td><img src="/fplcommon/wrapper/images/greenCap.gif" width="130" height="5"></td>');
document.write('    </tr>');
document.write('    <tr>');
document.write('      <td><div class="welcomeContent">Welcome<br> ');
document.write('    <img src="/fplcommon/wrapper/images/arrowWhiteNoBG.gif" width="9" height="11"> <a href="[URL unfurl="true"]https://app.fpl.com/eca/EcaController?command=toggle">Log[/URL] In / Log Out </a></div>');
document.write('  </td>');
document.write('    </tr>');
document.write('  </table> ');
document.write('</div>');

document.write('<div id="myAccount">');
document.write('<table width="130"  border="0" cellpadding="0" cellspacing="0" id="leftMenuTopTD">');
document.write('  <tr>');
document.write('    <td class="leftMenuTopTD">Quick Links </td>');
document.write('  </tr>');
document.write('</table>');
document.write('<table id="leftMenuTable" width="130"  border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="130" valign="top" class="myAccLinkTDs"><a href="[URL unfurl="true"]https://app.fpl.com/AccountInfo/AccountInfo?command=accountSummary">Account[/URL] Summary </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="dottedTDGreen" height="1"><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]https://app.fpl.com/Pbi/PbiHtmlController?command=validatePayment">Pay[/URL] Bill </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="dottedTDGreen"><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="javascript:doLastStatement();">View Bill</a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="dottedTDGreen"><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <td class="myAccLinkTDs"><a href="javascript:doBillingHistory()">Billing History </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="dottedTDGreen"><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="javascript:doBillingGraph()">Billing History Graph </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="dottedTDGreen"><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="javascript:doPaymentHistory()">Payment History </a></td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('    <td class="dottedTDGreen"><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]https://app.fpl.com/sowww2/SowwwHtmlController?command=connectpremisesearch">Start[/URL] Service </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="javascript:callCustForm(\'CLOSE_ACCOUNT\');">Stop Service</a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]https://app.fpl.com/sowww2/SowwwHtmlController?command=transferpremisesearch&searchType=transfer">Transfer[/URL] Service</a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]http://www.fpl.com/business/customer_service.shtml">Update[/URL] Account Info</a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]https://app.fpl.com/reg_app/AccountManagementController?command=manageAccountsDisplay">Select/Add[/URL] Account </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('   <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]http://www.fpl.com/customer/report_trouble.shtml">Power[/URL] Outage </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="myAccLinkTDs"><a href="[URL unfurl="true"]http://www.fpl.com/business/customer_service.shtml">More...[/URL] </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td><img src="/fplcommon/wrapper/images/smallDotsGreenBG.gif" width="130" height="1"></td>');
document.write('  </tr>');
  

document.write('</table> ');
document.write(' </div>');


document.write('<table width="130"  border="0" cellpadding="0" cellspacing="0" id="leftMenuTopTD">');
document.write('  <tr>');
document.write('    <td class="leftMenuTopTD">Business</td>');
document.write('  </tr>');
document.write('</table>');
document.write('<div id="blueBucket">');

document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/index.shtml">Business[/URL] Home </a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('  <td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/customer_service.shtml">Customer[/URL] Service </a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('  <td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('</tr>');
document.write('  <tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/bill/index.shtml">Billing[/URL] &amp; Payment </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/savings/index.shtml">Savings[/URL] &amp; Rebates </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('<td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/products/index.shtml">Products[/URL] &amp; Solutions </a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/electric/understanding_your_bill.shtml">Your[/URL] Account</a></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('<td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/business/electric/getting_power.shtml">Your[/URL] Power </a></td>');
document.write('  </tr>');
document.write('<tr>');
document.write('<td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/energy_services/business/natural_gas.shtml">Natural[/URL] Gas </a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td class="blueBucketDottedTD"><img src="/fplcommon/wrapper/images/dottedLineBlueBG.gif" width="22" height="3"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('    <td class="blueBucket"><a href="[URL unfurl="true"]http://www.fpl.com/storm/business_index.shtml">Storm[/URL] Tips </a></td>');
document.write('</tr>');

document.write('</table>');
document.write('</div>');


document.write('</div>');
document.write('</td>');
document.write('        <td class="centerContent" width="100%">');
		
document.write('		<!--  CONTENT STARTS HERE-->');
 
Hi

Use [tt]document.writeln()[/tt].
Code:
document.write('<script language="JavaScript">');
document.write('<!--');
document.write('function MM_findObj(n, d) { //v4.01');

[gray]// Outputs : [/gray]
<script language="JavaScript"><!--function MM_findObj(n, d) { //v4.01

[gray]/* ... */[/gray]

document.writeln('<script language="JavaScript">');
document.writeln('<!--');
document.writeln('function MM_findObj(n, d) { //v4.01');

[gray]// Outputs : [/gray]
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01

Feherke.
 
Am I better off doing a search and replace and replacing ALL the write for writeln?

Thanks for your help
 
Hi

Only lines with comments would be enough. But personally I would replace them all. But better listen to Greg and do as suggested in thread216-1366765 :
Code:
html='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">\n';[/URL]
[gray]// ...[/gray]
html+='<script language="JavaScript">\n';
html+='<!--\n';
html+='function MM_findObj(n, d) { //v4.01\n';
[gray]// ...[/gray]
html+='        <!--  CONTENT STARTS HERE-->\n';
document.writeln(html);
But better try the [tt]writeln()[/tt] thing first to be sure that is the problem.

Feherke.
 
Yeah I'll try plan b because writeln didn't work either.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top