swartout
asked on
Internet Explorer Error Expected ';'
I am getting this message on one of my pages. I am not sure how to correct? Here is the code for the page.
<cfinclude template="../include/heade r.cfm">
<cfinclude template="../include/menub ar.cfm">
<cfset can_edit = isdefined("form.revise")>
<cfset can_editcontact = isdefined("form.revisecont act")>
<cfset can_add = isdefined("form.add")>
<cfset can_addcontact = isdefined("form.addcontact ")>
<cfset can_deletecontact = isdefined("form.deletecont act")>
<cfparam name="url.account" default="">
<cfif isdefined("form.account")>
<cfset url.account = form.account>
</cfif>
<cfif Not Len(url.account)>
<cfquery datasource="btadb" name="getacc">
Select min(accountnbr) as account
from account
</cfquery>
<cfset url.account = getacc.account>
</cfif>
<cfparam name="url.contactid" default="">
<cfif isdefined("form.contactid" )>
<cfset url.contactid = form.contactid>
</cfif>
<cfparam name="url.message" default="">
<cfquery datasource="btadb" name="getaccounts">
select accountnbr, accountname from account</cfquery>
<cfquery datasource="btadb" name="getaccountmaster">
SELECT account.Accountnbr, account.Accountname, account.address, account.address2, account.city, account.state,
account.zip, account.zip2, account.areacode, account.prefix, account.number, account.faxareacode,
account.faxprefix, account.faxnumber, account.compease, account.performease
FROM account
WHERE account.accountnbr = #url.account#
</cfquery>
<cfquery datasource="btadb" name="getaccountcontact">
SELECT account.Accountnbr, account.Accountname, account.address, account.address2, account.city, account.state,
account.zip, account.zip2, account.areacode, account.prefix, account.number, account.faxareacode,
account.faxprefix, account.faxnumber, account.compease, account.performease,
accountcontact.contactid, accountcontact.contactlast name, accountcontact.contactfirs tname, accountcontact.contactarea code,
accountcontact.contactpref ix, accountcontact.contactnumb er, accountcontact.extension, accountcontact.department,
accountcontact.title, accountcontact.email
FROM account INNER JOIN
accountcontact ON account.Accountnbr = accountcontact.accountnbr
WHERE account.accountnbr = #url.account#
</cfquery>
<table width="75%" border="1" cellpadding="0" cellspacing="0" bordercolor="#669955" align="center">
<tr><td>
<form action="<cfif can_edit>account_action.cf m<cfelseif can_editcontact>account_ac tion.cfm
<cfelseif can_add>account_action.cfm <cfelseif can_addcontact>account_act ion.cfm
<cfelseif can_deletecontact>account_ action.cfm <cfelse>in dex.cfm</c fif>" name="accountform" method="post" id="accountform">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7" bgcolor="#669955"><font color="#FFFFFF">Account Master</font></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<cfinclude template="../include/chang eaccount.c fm">
</table>
<tr>
<td>
<cfoutput query="getaccountmaster">
<cfif can_edit>
<table width="100%" border="1" bordercolor="##669955" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table>
<tr><td><strong>Address:</ strong></t d></tr>
<tr><td><input type="text" value="#address#" name="address" style="width:280px"></td>< /tr>
<tr><td><input type="text" value="#address2#" name="address2" style="width:280px"></td>< /tr>
<tr><td><input type="text" value="#city#" name="city" style="width:100px">,
<select name="state" style="width:60px">
<option value="AK" <cfif #state# eq 'AK'>selected</cfif>>AK</o ption>
<option value="AZ" <cfif #state# eq 'AZ'>selected</cfif>>AZ</o ption>
<option value="AR" <cfif #state# eq 'AR'>selected</cfif>>AR</o ption>
<option value="CA" <cfif #state# eq 'CA'>selected</cfif>>CA</o ption>
<option value="CO" <cfif #state# eq 'CO'>selected</cfif>>CO</o ption>
<option value="CT" <cfif #state# eq 'CT'>selected</cfif>>CT</o ption>
<option value="DE" <cfif #state# eq 'DE'>selected</cfif>>DE</o ption>
<option value="DC" <cfif #state# eq 'DC'>selected</cfif>>DC</o ption>
<option value="FL" <cfif #state# eq 'FL'>selected</cfif>>FL</o ption>
<option value="GA" <cfif #state# eq 'GA'>selected</cfif>>GA</o ption>
<option value="HI" <cfif #state# eq 'HI'>selected</cfif>>HI</o ption>
<option value="ID" <cfif #state# eq 'ID'>selected</cfif>>ID</o ption>
<option value="IL" <cfif #state# eq 'IL'>selected</cfif>>IL</o ption>
<option value="IN" <cfif #state# eq 'IN'>selected</cfif>>IN</o ption>
<option value="IA" <cfif #state# eq 'IA'>selected</cfif>>IA</o ption>
<option value="KS" <cfif #state# eq 'KS'>selected</cfif>>KS</o ption>
<option value="KY" <cfif #state# eq 'KY'>selected</cfif>>KY</o ption>
<option value="LA" <cfif #state# eq 'LA'>selected</cfif>>LA</o ption>
<option value="ME" <cfif #state# eq 'ME'>selected</cfif>>ME</o ption>
<option value="MD" <cfif #state# eq 'MD'>selected</cfif>>MD</o ption>
<option value="MA" <cfif #state# eq 'MA'>selected</cfif>>MA</o ption>
<option value="MI" <cfif #state# eq 'MI'>selected</cfif>>MI</o ption>
<option value="MN" <cfif #state# eq 'MN'>selected</cfif>>MN</o ption>
<option value="MS" <cfif #state# eq 'MS'>selected</cfif>>MS</o ption>
<option value="MO" <cfif #state# eq 'MO'>selected</cfif>>MO</o ption>
<option value="MT" <cfif #state# eq 'MT'>selected</cfif>>MT</o ption>
<option value="NE" <cfif #state# eq 'NE'>selected</cfif>>NE</o ption>
<option value="NV" <cfif #state# eq 'NV'>selected</cfif>>NV</o ption>
<option value="NH" <cfif #state# eq 'NH'>selected</cfif>>NH</o ption>
<option value="NJ" <cfif #state# eq 'NJ'>selected</cfif>>NJ</o ption>
<option value="NM" <cfif #state# eq 'NM'>selected</cfif>>NM</o ption>
<option value="NY" <cfif #state# eq 'NY'>selected</cfif>>NY</o ption>
<option value="NC" <cfif #state# eq 'NC'>selected</cfif>>NC</o ption>
<option value="ND" <cfif #state# eq 'ND'>selected</cfif>>ND</o ption>
<option value="OH" <cfif #state# eq 'OH'>selected</cfif>>OH</o ption>
<option value="OK" <cfif #state# eq 'OK'>selected</cfif>>OK</o ption>
<option value="OR" <cfif #state# eq 'OR'>selected</cfif>>OR</o ption>
<option value="PA" <cfif #state# eq 'PA'>selected</cfif>>PA</o ption>
<option value="RI" <cfif #state# eq 'RI'>selected</cfif>>RI</o ption>
<option value="SC" <cfif #state# eq 'SC'>selected</cfif>>SC</o ption>
<option value="SD" <cfif #state# eq 'SD'>selected</cfif>>SD</o ption>
<option value="TN" <cfif #state# eq 'TN'>selected</cfif>>TN</o ption>
<option value="TX" <cfif #state# eq 'TX'>selected</cfif>>TX</o ption>
<option value="UT" <cfif #state# eq 'UT'>selected</cfif>>UT</o ption>
<option value="VT" <cfif #state# eq 'VT'>selected</cfif>>VT</o ption>
<option value="VA" <cfif #state# eq 'VA'>selected</cfif>>VA</o ption>
<option value="WA" <cfif #state# eq 'WA'>selected</cfif>>WA</o ption>
<option value="WV" <cfif #state# eq 'WV'>selected</cfif>>WV</o ption>
<option value="WI" <cfif #state# eq 'WI'>selected</cfif>>WI</o ption>
<option value="WY" <cfif #state# eq 'WY'>selected</cfif>>WY</o ption>
</select>
<input type="text" value="#zip#" name="zip" style="width:45px" size="5" maxlength="5"
onClick="this.value='';" onKeyUp="if(this.value.len gth==5) this.form.zip2.focus()" onFocus="this.value='';">
-<input type="text" value="#zip2#" name="zip2" style="width:45px"></td></ tr>
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Teleph one:</stro ng></td></ tr>
<tr><td>
<table><tr>
<td><input type="text" value="#areacode#" name="areacode" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.prefix.focus()" onFocus="this.value='';">< /td>
<td><input type="text" value="#prefix#" name="prefix" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.number.focus()" onFocus="this.value='';">< /td>
<td><input type="text" value="#number#" name="number" style="width:50px" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len gth==4) this.form.faxareacode.focu s()" onFocus="this.value='';">< /td>
</tr></table>
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Fax:</ strong></t d></tr>
<tr><td>
<table><tr>
<td><input type="text" value="#faxareacode#" name="faxareacode" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.faxprefix.focus( )" onFocus="this.value='';">< /td>
<td><input type="text" value="#faxprefix#" name="faxprefix" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.faxnumber.focus( )" onFocus="this.value='';">< /td>
<td><input type="text" value="#faxnumber#" name="faxnumber" style="width:50px" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len gth==4) this.form.canedit.focus()" onFocus="this.value='';">< /td>
</tr></table>
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td><strong>Support Systems:</strong></td></tr >
<tr><td>Compease: <select name="compease" style="width:50px">
<option value="yes" <cfif #compease# eq 'yes'>selected</cfif>>Yes< /option>
<option value="no" <cfif #compease# eq 'no'>selected</cfif>>No</o ption>
</select></td></tr>
<tr><td>Performease: <select name="performease" style="width:50px">
<option value="yes" <cfif #compease# eq 'yes'>selected</cfif>>Yes< /option>
<option value="no" <cfif #compease# eq 'no'>selected</cfif>>No</o ption>
</select></td></tr>
</table>
</td>
</tr>
</table>
<cfelse>
<table width="100%" border="1" bordercolor="##669955" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table>
<tr><td><strong>Address:</ strong></t d></tr>
<tr><td>#address#</td></tr >
<tr><td>#address2#</td></t r>
<tr><td>#city#<cfif #city# neq "">, #state# #zip#<cfif #zip2# neq "">-#zip2#<cfelse></cfif>< cfelse></c fif></td>< /tr>
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Teleph one:</stro ng></td></ tr>
<tr><td>
<cfif #areacode# eq ""> <cfelse>#areacode #-#prefix# -#number#< /cfif>
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Fax:</ strong></t d></tr>
<tr><td>
<cfif #faxareacode# eq ""> <cfelse>#faxareac ode#-#faxp refix#-#fa xnumber#</ cfif>
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td><strong>Support Systems:</strong></td></tr >
<tr><td>Compease: #compease#</td></tr>
<tr><td>Performease: #performease#</td></tr>
</table>
</td>
</tr>
</table>
</cfif></cfoutput>
</td></tr>
<tr><td><table><tr>
<td> </td>
<cfif can_editcontact><cfelseif can_addcontact><cfelseif can_deletecontact><cfelse>
<td><cfif can_edit><input type="submit" name="canedit" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re turn true;" style="width:80px">
<cfelse>
<input type="submit" name="revise" value="Revise" style="width:80px"></cfif>
</td></cfif></tr></table>
</td></tr>
<tr><td><table width="100%" border="1" bordercolor="#669955" cellpadding="0" cellspacing="0">
<tr>
<td width="150"><strong>Contac t:</strong ></td>
<td width="90"><strong>Telepho ne:</stron g></td>
<td width="50"><strong>Ext:</s trong></td >
<td width="150"><strong>Depart ment:</str ong></td>
<td width="150"><strong>Title: </strong>< /td>
<td width="150"><strong>Email: </strong>< /td>
</tr>
<cfif can_editcontact>
<cfoutput query="getaccountcontact">
<cfif getaccountcontact.contacti d eq #url.contactid#>
<tr>
<td>
<table>
<tr><td>First</td><td><inp ut type="text" value="#trim(Contactfirstn ame)#" name="firstname" style="width:150px"></td>< /tr>
<tr><td>Last</td><td><inpu t type="text" value="#trim(contactlastna me)#" name="lastname" style="width:150px"></td>< /tr>
</table>
</td>
<td>
<table><tr>
<td><input type="text" value="#contactareacode#" name="contactareacode" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.contactprefix.fo cus()" onFocus="this.value='';">- </td>
<td><input type="text" value="#contactprefix#" name="contactprefix" id="contactprefix" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.contactnumber.fo cus()" onFocus="this.value='';">- </td>
<td><input type="text" value="#contactnumber#" name="contactnumber" id="contactnumber" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len gth==4) this.form.extension.focus( )" onFocus="this.value='';">< /td>
</tr></table></td>
<td><input type="text" value="#extension#" name="extension" id="extension" style="width:50px"></td>
<td><input type="text" value="#trim(Department)#" name="department" style="width:150px"></td>
<td><input type="text" value="#trim(title)#" name="title" style="width:150px"></td>
<td><input type="text" value="#email#" name="email" style="width:150px"></td>
</tr>
</cfif>
</cfoutput>
<cfelseif can_addcontact>
<tr>
<td>
<table>
<tr><td>First</td><td><inp ut type="text" name="firstname" style="width:150px"></td>< /tr>
<tr><td>Last</td><td><inpu t type="text" name="lastname" style="width:150px"></td>< /tr>
</table>
</td>
<td>
<table><tr>
<td><input type="text" name="contactareacode" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.contactprefix.fo cus()">-</ td>
<td><input type="text" name="contactprefix" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len gth==3) this.form.contactnumber.fo cus()">-</ td>
<td><input type="text" name="contactnumber" style="width:50px" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len gth==4) this.form.extension.focus( )"></td>
</tr></table></td>
<td><input type="text" name="extension" style="width:50px"></td>
<td><input type="text" name="department" style="width:150px"></td>
<td><input type="text" name="title" style="width:150px"></td>
<td><input type="text" name="email" style="width:150px"></td>
</tr>
<cfelseif can_deletecontact>
<cfoutput query="getaccountcontact">
<cfif getaccountcontact.contacti d eq #url.contactid#>
<tr><td colspan="5" align="center"><font color="##FF0000">You will not be able to undo this action.</font></td>
<tr>
<td>#trim(Contactfirstname )#, #trim(contactlastname)#</t d>
<td> </td>
<td>#extension#</td>
<td>#trim(Department)#</td >
<td>#trim(title)#</td>
<td>#email#</td>
</tr>
</cfif>
</cfoutput>
<cfelse>
<cfoutput query="getaccountcontact">
<tr onclick="document.location =''index.c fm?account =#url.acco unt#&conta ctid=#cont actid#;"
<cfif getaccountcontact.contacti d eq #url.contactid#>bgcolor="w hitesmoke" </cfif>>
<td><a href="index.cfm?account=#u rl.account #&contacti d=#contact id#" class="basic">#trim(Contac tlastname) #, #trim(contactfirstname)#</ a></td>
<td><cfif #contactareacode# eq ""> <cfelse><table><t r><td>#con tactareaco de#-</td>< td>#contac tprefix#-< /td><td>#c ontactnumb er#</td></ tr></table ></cfif></ td>
<td><cfif #extension# eq ""> <cfelse>#extensio n#</cfif>< /td>
<td><cfif #department# eq ""> <cfelse>#trim(Dep artment)#< /cfif></td >
<td><cfif #title# eq ""> <cfelse>#trim(tit le)#</cfif ></td>
<td><cfif #email# eq ""> <cfelse>#email#</ cfif></td>
</tr>
</cfoutput>
</cfif>
</table>
</td></tr>
<tr><td><table>
<cfif url.message eq 1>
<tr><td> </td><td><fo nt color="#FF0000">You did not enter a Contact Name</font> </td>
</tr>
</cfif>
<tr>
<td> </td>
<input type="hidden" value="<cfoutput>#url.cont actid#</cf output>" name="contactid">
<cfif can_add><cfelseif can_edit><cfelse>
<td><cfif can_editcontact><input type="submit" name="caneditcontact" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re turn true;" style="width:80px">
<cfelseif can_addcontact><input type="submit" name="canaddcontact" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re turn true;" style="width:80px">
<cfelseif can_deletecontact><input type="submit" name="candeletecontact" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re turn true;" style="width:80px">
<cfelse>
<input type="submit" name="addcontact" value="Add" style="width:80px">
<cfif getaccountcontact.recordco unt>
<input type="submit" name="revisecontact" value="Revise" style="width:80px">
</cfif>
<input type="submit" name="deletecontact" value="Delete" style="width:80px">
</cfif>
</td></cfif>
<cfif can_edit>
<cfelseif can_add>
<cfelseif can_addcontact>
<cfelseif can_editcontact>
<cfelseif can_deletecontact>
<cfelse>
<td> </td>
<cfif #session.accountnbr# eq 9000 or #session.accountnbr# eq 9999>
<td>
<table>
<tr><td><input type="button" name="addcontact" value="Return to Adding New Call" style="width:250px" onclick="window.location.a ssign('../ support/ad dcall.cfm? account=<c foutput>#u rl.account #</cfoutpu t>');"></t d></tr>
</table>
</cfif>
</cfif></tr></table>
<tr><td>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#669955" align="center">
<tr style="height:38px"><td>&n bsp;
<input type="button" name="compease" value="Compease Master" style="width:150px" onclick="window.location.a ssign('../ compadmin/ index.cfm? account=<c foutput>#u rl.account #</cfoutpu t>');">
<input type="button" name="perfease" value="Performease Master" style="width:150px" onclick="window.location.a ssign('../ perfadmin/ index.cfm? account=<c foutput>#u rl.account #</cfoutpu t>');">
<input type="button" name="account" value="Support Tracking" style="width:150px" onclick="window.location.a ssign('../ support/de tails.cfm? account=<c foutput>#u rl.account #</cfoutpu t>');">
</td></tr></table>
</td></tr>
</form>
</td></tr>
</table>
<cfif can_edit>
<script language="JavaScript">
document.accountform.addre ss.focus() ;
</script>
<cfelseif can_editcontact>
<script language="JavaScript">
document.accountform.first name.focus ();
</script>
<cfelseif can_addcontact>
<script language="JavaScript">
document.accountform.first name.focus ();
</script>
</cfif>
<cfinclude template="../include/heade
<cfinclude template="../include/menub
<cfset can_edit = isdefined("form.revise")>
<cfset can_editcontact = isdefined("form.revisecont
<cfset can_add = isdefined("form.add")>
<cfset can_addcontact = isdefined("form.addcontact
<cfset can_deletecontact = isdefined("form.deletecont
<cfparam name="url.account" default="">
<cfif isdefined("form.account")>
<cfset url.account = form.account>
</cfif>
<cfif Not Len(url.account)>
<cfquery datasource="btadb" name="getacc">
Select min(accountnbr) as account
from account
</cfquery>
<cfset url.account = getacc.account>
</cfif>
<cfparam name="url.contactid" default="">
<cfif isdefined("form.contactid"
<cfset url.contactid = form.contactid>
</cfif>
<cfparam name="url.message" default="">
<cfquery datasource="btadb" name="getaccounts">
select accountnbr, accountname from account</cfquery>
<cfquery datasource="btadb" name="getaccountmaster">
SELECT account.Accountnbr, account.Accountname, account.address, account.address2, account.city, account.state,
account.zip, account.zip2, account.areacode, account.prefix, account.number, account.faxareacode,
account.faxprefix, account.faxnumber, account.compease, account.performease
FROM account
WHERE account.accountnbr = #url.account#
</cfquery>
<cfquery datasource="btadb" name="getaccountcontact">
SELECT account.Accountnbr, account.Accountname, account.address, account.address2, account.city, account.state,
account.zip, account.zip2, account.areacode, account.prefix, account.number, account.faxareacode,
account.faxprefix, account.faxnumber, account.compease, account.performease,
accountcontact.contactid, accountcontact.contactlast
accountcontact.contactpref
accountcontact.title, accountcontact.email
FROM account INNER JOIN
accountcontact ON account.Accountnbr = accountcontact.accountnbr
WHERE account.accountnbr = #url.account#
</cfquery>
<table width="75%" border="1" cellpadding="0" cellspacing="0" bordercolor="#669955" align="center">
<tr><td>
<form action="<cfif can_edit>account_action.cf
<cfelseif can_add>account_action.cfm
<cfelseif can_deletecontact>account_
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7" bgcolor="#669955"><font color="#FFFFFF">Account Master</font></td>
</tr>
<tr>
<td colspan="4"> </td>
</tr>
<cfinclude template="../include/chang
</table>
<tr>
<td>
<cfoutput query="getaccountmaster">
<cfif can_edit>
<table width="100%" border="1" bordercolor="##669955" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table>
<tr><td><strong>Address:</
<tr><td><input type="text" value="#address#" name="address" style="width:280px"></td><
<tr><td><input type="text" value="#address2#" name="address2" style="width:280px"></td><
<tr><td><input type="text" value="#city#" name="city" style="width:100px">,
<select name="state" style="width:60px">
<option value="AK" <cfif #state# eq 'AK'>selected</cfif>>AK</o
<option value="AZ" <cfif #state# eq 'AZ'>selected</cfif>>AZ</o
<option value="AR" <cfif #state# eq 'AR'>selected</cfif>>AR</o
<option value="CA" <cfif #state# eq 'CA'>selected</cfif>>CA</o
<option value="CO" <cfif #state# eq 'CO'>selected</cfif>>CO</o
<option value="CT" <cfif #state# eq 'CT'>selected</cfif>>CT</o
<option value="DE" <cfif #state# eq 'DE'>selected</cfif>>DE</o
<option value="DC" <cfif #state# eq 'DC'>selected</cfif>>DC</o
<option value="FL" <cfif #state# eq 'FL'>selected</cfif>>FL</o
<option value="GA" <cfif #state# eq 'GA'>selected</cfif>>GA</o
<option value="HI" <cfif #state# eq 'HI'>selected</cfif>>HI</o
<option value="ID" <cfif #state# eq 'ID'>selected</cfif>>ID</o
<option value="IL" <cfif #state# eq 'IL'>selected</cfif>>IL</o
<option value="IN" <cfif #state# eq 'IN'>selected</cfif>>IN</o
<option value="IA" <cfif #state# eq 'IA'>selected</cfif>>IA</o
<option value="KS" <cfif #state# eq 'KS'>selected</cfif>>KS</o
<option value="KY" <cfif #state# eq 'KY'>selected</cfif>>KY</o
<option value="LA" <cfif #state# eq 'LA'>selected</cfif>>LA</o
<option value="ME" <cfif #state# eq 'ME'>selected</cfif>>ME</o
<option value="MD" <cfif #state# eq 'MD'>selected</cfif>>MD</o
<option value="MA" <cfif #state# eq 'MA'>selected</cfif>>MA</o
<option value="MI" <cfif #state# eq 'MI'>selected</cfif>>MI</o
<option value="MN" <cfif #state# eq 'MN'>selected</cfif>>MN</o
<option value="MS" <cfif #state# eq 'MS'>selected</cfif>>MS</o
<option value="MO" <cfif #state# eq 'MO'>selected</cfif>>MO</o
<option value="MT" <cfif #state# eq 'MT'>selected</cfif>>MT</o
<option value="NE" <cfif #state# eq 'NE'>selected</cfif>>NE</o
<option value="NV" <cfif #state# eq 'NV'>selected</cfif>>NV</o
<option value="NH" <cfif #state# eq 'NH'>selected</cfif>>NH</o
<option value="NJ" <cfif #state# eq 'NJ'>selected</cfif>>NJ</o
<option value="NM" <cfif #state# eq 'NM'>selected</cfif>>NM</o
<option value="NY" <cfif #state# eq 'NY'>selected</cfif>>NY</o
<option value="NC" <cfif #state# eq 'NC'>selected</cfif>>NC</o
<option value="ND" <cfif #state# eq 'ND'>selected</cfif>>ND</o
<option value="OH" <cfif #state# eq 'OH'>selected</cfif>>OH</o
<option value="OK" <cfif #state# eq 'OK'>selected</cfif>>OK</o
<option value="OR" <cfif #state# eq 'OR'>selected</cfif>>OR</o
<option value="PA" <cfif #state# eq 'PA'>selected</cfif>>PA</o
<option value="RI" <cfif #state# eq 'RI'>selected</cfif>>RI</o
<option value="SC" <cfif #state# eq 'SC'>selected</cfif>>SC</o
<option value="SD" <cfif #state# eq 'SD'>selected</cfif>>SD</o
<option value="TN" <cfif #state# eq 'TN'>selected</cfif>>TN</o
<option value="TX" <cfif #state# eq 'TX'>selected</cfif>>TX</o
<option value="UT" <cfif #state# eq 'UT'>selected</cfif>>UT</o
<option value="VT" <cfif #state# eq 'VT'>selected</cfif>>VT</o
<option value="VA" <cfif #state# eq 'VA'>selected</cfif>>VA</o
<option value="WA" <cfif #state# eq 'WA'>selected</cfif>>WA</o
<option value="WV" <cfif #state# eq 'WV'>selected</cfif>>WV</o
<option value="WI" <cfif #state# eq 'WI'>selected</cfif>>WI</o
<option value="WY" <cfif #state# eq 'WY'>selected</cfif>>WY</o
</select>
<input type="text" value="#zip#" name="zip" style="width:45px" size="5" maxlength="5"
onClick="this.value='';" onKeyUp="if(this.value.len
-<input type="text" value="#zip2#" name="zip2" style="width:45px"></td></
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Teleph
<tr><td>
<table><tr>
<td><input type="text" value="#areacode#" name="areacode" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" value="#prefix#" name="prefix" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" value="#number#" name="number" style="width:50px" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len
</tr></table>
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Fax:</
<tr><td>
<table><tr>
<td><input type="text" value="#faxareacode#" name="faxareacode" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" value="#faxprefix#" name="faxprefix" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" value="#faxnumber#" name="faxnumber" style="width:50px" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len
</tr></table>
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td><strong>Support Systems:</strong></td></tr
<tr><td>Compease: <select name="compease" style="width:50px">
<option value="yes" <cfif #compease# eq 'yes'>selected</cfif>>Yes<
<option value="no" <cfif #compease# eq 'no'>selected</cfif>>No</o
</select></td></tr>
<tr><td>Performease: <select name="performease" style="width:50px">
<option value="yes" <cfif #compease# eq 'yes'>selected</cfif>>Yes<
<option value="no" <cfif #compease# eq 'no'>selected</cfif>>No</o
</select></td></tr>
</table>
</td>
</tr>
</table>
<cfelse>
<table width="100%" border="1" bordercolor="##669955" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table>
<tr><td><strong>Address:</
<tr><td>#address#</td></tr
<tr><td>#address2#</td></t
<tr><td>#city#<cfif #city# neq "">, #state# #zip#<cfif #zip2# neq "">-#zip2#<cfelse></cfif><
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Teleph
<tr><td>
<cfif #areacode# eq ""> <cfelse>#areacode
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td width="125"><strong>Fax:</
<tr><td>
<cfif #faxareacode# eq ""> <cfelse>#faxareac
</td></tr>
</table>
</td>
<td valign="top">
<table>
<tr><td><strong>Support Systems:</strong></td></tr
<tr><td>Compease: #compease#</td></tr>
<tr><td>Performease: #performease#</td></tr>
</table>
</td>
</tr>
</table>
</cfif></cfoutput>
</td></tr>
<tr><td><table><tr>
<td> </td>
<cfif can_editcontact><cfelseif can_addcontact><cfelseif can_deletecontact><cfelse>
<td><cfif can_edit><input type="submit" name="canedit" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re
<cfelse>
<input type="submit" name="revise" value="Revise" style="width:80px"></cfif>
</td></cfif></tr></table>
</td></tr>
<tr><td><table width="100%" border="1" bordercolor="#669955" cellpadding="0" cellspacing="0">
<tr>
<td width="150"><strong>Contac
<td width="90"><strong>Telepho
<td width="50"><strong>Ext:</s
<td width="150"><strong>Depart
<td width="150"><strong>Title:
<td width="150"><strong>Email:
</tr>
<cfif can_editcontact>
<cfoutput query="getaccountcontact">
<cfif getaccountcontact.contacti
<tr>
<td>
<table>
<tr><td>First</td><td><inp
<tr><td>Last</td><td><inpu
</table>
</td>
<td>
<table><tr>
<td><input type="text" value="#contactareacode#" name="contactareacode" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" value="#contactprefix#" name="contactprefix" id="contactprefix" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" value="#contactnumber#" name="contactnumber" id="contactnumber" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len
</tr></table></td>
<td><input type="text" value="#extension#" name="extension" id="extension" style="width:50px"></td>
<td><input type="text" value="#trim(Department)#"
<td><input type="text" value="#trim(title)#" name="title" style="width:150px"></td>
<td><input type="text" value="#email#" name="email" style="width:150px"></td>
</tr>
</cfif>
</cfoutput>
<cfelseif can_addcontact>
<tr>
<td>
<table>
<tr><td>First</td><td><inp
<tr><td>Last</td><td><inpu
</table>
</td>
<td>
<table><tr>
<td><input type="text" name="contactareacode" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" name="contactprefix" style="width:30px" size="3" maxlength="3"
onClick="this.value='';" onKeyUp="if(this.value.len
<td><input type="text" name="contactnumber" style="width:50px" size="4" maxlength="4"
onClick="this.value='';" onKeyUp="if(this.value.len
</tr></table></td>
<td><input type="text" name="extension" style="width:50px"></td>
<td><input type="text" name="department" style="width:150px"></td>
<td><input type="text" name="title" style="width:150px"></td>
<td><input type="text" name="email" style="width:150px"></td>
</tr>
<cfelseif can_deletecontact>
<cfoutput query="getaccountcontact">
<cfif getaccountcontact.contacti
<tr><td colspan="5" align="center"><font color="##FF0000">You will not be able to undo this action.</font></td>
<tr>
<td>#trim(Contactfirstname
<td> </td>
<td>#extension#</td>
<td>#trim(Department)#</td
<td>#trim(title)#</td>
<td>#email#</td>
</tr>
</cfif>
</cfoutput>
<cfelse>
<cfoutput query="getaccountcontact">
<tr onclick="document.location
<cfif getaccountcontact.contacti
<td><a href="index.cfm?account=#u
<td><cfif #contactareacode# eq ""> <cfelse><table><t
<td><cfif #extension# eq ""> <cfelse>#extensio
<td><cfif #department# eq ""> <cfelse>#trim(Dep
<td><cfif #title# eq ""> <cfelse>#trim(tit
<td><cfif #email# eq ""> <cfelse>#email#</
</tr>
</cfoutput>
</cfif>
</table>
</td></tr>
<tr><td><table>
<cfif url.message eq 1>
<tr><td> </td><td><fo
</tr>
</cfif>
<tr>
<td> </td>
<input type="hidden" value="<cfoutput>#url.cont
<cfif can_add><cfelseif can_edit><cfelse>
<td><cfif can_editcontact><input type="submit" name="caneditcontact" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re
<cfelseif can_addcontact><input type="submit" name="canaddcontact" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re
<cfelseif can_deletecontact><input type="submit" name="candeletecontact" value="Save" style="width:80px">
<input type="button" name="cancel" value="Cancel" onClick="history.go(-1);re
<cfelse>
<input type="submit" name="addcontact" value="Add" style="width:80px">
<cfif getaccountcontact.recordco
<input type="submit" name="revisecontact" value="Revise" style="width:80px">
</cfif>
<input type="submit" name="deletecontact" value="Delete" style="width:80px">
</cfif>
</td></cfif>
<cfif can_edit>
<cfelseif can_add>
<cfelseif can_addcontact>
<cfelseif can_editcontact>
<cfelseif can_deletecontact>
<cfelse>
<td> </td>
<cfif #session.accountnbr# eq 9000 or #session.accountnbr# eq 9999>
<td>
<table>
<tr><td><input type="button" name="addcontact" value="Return to Adding New Call" style="width:250px" onclick="window.location.a
</table>
</cfif>
</cfif></tr></table>
<tr><td>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#669955" align="center">
<tr style="height:38px"><td>&n
<input type="button" name="compease" value="Compease Master" style="width:150px" onclick="window.location.a
<input type="button" name="perfease" value="Performease Master" style="width:150px" onclick="window.location.a
<input type="button" name="account" value="Support Tracking" style="width:150px" onclick="window.location.a
</td></tr></table>
</td></tr>
</form>
</td></tr>
</table>
<cfif can_edit>
<script language="JavaScript">
document.accountform.addre
</script>
<cfelseif can_editcontact>
<script language="JavaScript">
document.accountform.first
</script>
<cfelseif can_addcontact>
<script language="JavaScript">
document.accountform.first
</script>
</cfif>
can you provide the source fromthe compiled page also
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
its around line 555 in the code the single quotes used to identify the url do not encompass the url so the interpreter is looking for a semi-colon after document.location='' before continuing with the rest of the line
it wld be a lot easier - if u cld let us know where exactly the error is !
Jester is correct remove the double quotes before the index.cfm
and make it single..
Regards
Hart
and make it single..
Regards
Hart
ASKER
Thanks for the fix. It works now.
glad i could help
thanks for the points
thanks for the points