 |
 |
<?xml version="1.0" encoding="<X-FC-ITEM DATA[Charset]>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--Toolbars/95 H=<X-FC-REQUEST-TIME HEADER> LS=<X-FC-REQUEST-TIME LOGIN.START> L=<X-FC-REQUEST-TIME LOGIN>
OS=<X-FC-REQUEST-TIME OPEN.START> O=<X-FC-REQUEST-TIME OPEN> T=<X-FC-REQUEST-TIME>-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<X-FC-ITEM DATA[Charset]>"/>
<title></title>
<!--#include virtual="/.Templates/GlobalStyles.inc"--><!--#rem
Style taken from Normal Text in preferences, falling back to Form Fields in WSP form.--><!--#if expr="<X-FC-FIELD PREFS.2001 DEFAULT=LANG.127.2001.11 FONTSIZE>"--><!--#set var="DEFAULTSIZE" value="<X-FC-FIELD PREFS.2001 DEFAULT=LANG.127.2001.11 FONTSIZE>"--><!--#else--><!--#set var="DEFAULTSIZE" value="<X-FC-FIELD PREFS.5696 DEFAULT=LANG.49.5696.11 FONTSIZE>"--><!--#endif--><!--#if expr="<X-FC-FIELD PREFS.2002 DEFAULT=LANG.127.2002.11EXISTS>"--><!--#set var="DEFAULTCOLOUR" value="<X-FC-FIELD PREFS.2002 DEFAULT=LANG.127.2002.11 RGB>"--><!--#else--><!--#set var="DEFAULTCOLOUR" value="<X-FC-FIELD PREFS.5697 DEFAULT=LANG.49.5697.11 RGB>"--><!--#endif--><!--#if expr="<X-FC-FIELD PREFS.2000 DEFAULT=LANG.127.2000.9 LENGTH>"--><!--#set var="FONT" value="<X-FC-FIELD PREFS.2000 DEFAULT=LANG.127.2000.9 STRING>"--><!--#set var="POSTFONT" value="<X-FC-FIELD PREFS.5695 DEFAULT=LANG.5695.9 STRING>"--><!--#set var="PREFONT" expr="@split($POSTFONT,$FONT)"--><!--#set var="FONTLEN"
expr="@length($PREFONT)"--><!--#if expr="$FONTLEN"--><!--#set var="FONTLEN" expr="$FONTLEN - 1"--><!--#if expr="@substr($PREFONT,$FONTLEN,1) == ','"--><!--#set var="PREFONT" expr="@substr($PREFONT,0,$FONTLEN)"--><!--#endif--><!--#set var="FONT" value="${FONT},${PREFONT}"--><!--#endif--><!--#set var="DEFAULTFONT" value="${FONT}${POSTFONT}"--><!--#else--><!--#set var="DEFAULTFONT" value="<X-FC-FIELD PREFS.5695 DEFAULT=LANG.5675.9 STRING>"--><!--#endif-->
<script type="text/javascript" src="/.Templates/JavaScript/TBrollover.js"></script>
<script type="text/javascript">
<!--<!--#rem
CRGB(s) NormalizeRGB(style)
converts a stylesheet rgb(r,g,b) value to an HTML standard #RRGGBB version
-->
function NRGB(s){
var cs="";
if(s==null)
return "#000000";
s=""+s;
if(s.substr(0,4)=="rgb("){
cs="#";
s=s.substr(4,s.length);
var cv=parseInt(s);
cs+=(cv<16?"0":"")+cv.toString(16);
s=s.substr(s.indexOf(",")+1,s.length);
cv=parseInt(s);
cs+=(cv<16?"0":"")+cv.toString(16);
s=s.substr(s.indexOf(",")+1,s.length);
cv=parseInt(s);
cs+=(cv<16?"0":"")+cv.toString(16);
cs=cs.toUpperCase();
}else if(s.charAt(0)=="#")
cs=s.toUpperCase();
else{
cs=parseInt(s).toString(16);
while(cs.length<6)
cs="0"+cs;
cs="#"+cs.toUpperCase();
}
return cs;
}<!--#rem
dEC(c,v) doExecuteCommand(command,value)
Executes one of the build in IE / Gecko editor commands
-->
function dEC(c,v){
parent.frames["EDITBODY"].document.execCommand(c,false,v);
dUASE();
return false;
}<!--#rem
ISH(h) InsertHTML(HTML)
Inserts some HTML at/over the current selection
-->
function ISH(h){<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
var D=parent.frames["EDITBODY"];
D.focus();
D=D.document;
var cp=D.selection.createRange(0);
cp.pasteHTML(h);<!--#else-->
dEC("insertHTML",h);<!--#endif-->
}<!--#rem
gEE(n,n2) getEnclosingElement(name,name2)
-->
function gEE(n,n2){
var EE=null;
var BE=parent.frames["EDITBODY"];
n=n.toLowerCase();
if(n2)
n2=n2.toLowerCase();<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
var S=BE.document.selection;
if(S.type.toLowerCase()=="control")
N=S.createRange(0).item(0);
else
N=S.createRange(0).parentElement();<!--#else-->
N=BE.getSelection().getRangeAt(0).commonAncestorContainer;<!--#endif-->
while(EE==null&&N!=null){
if(N.nodeType==1){
var t=N.tagName.toLowerCase();
if(t==n||(n2&&t==n2))
EE=N;
}
if(EE==null&&N.parentNode!=null&&N.parentNode!=BE.document.body)
N=N.parentNode;
else
N=null;
}
return EE;
}<!--#if expr="<X-FC-BROWSER NAME.MSIE>"--><!--#rem
fSAV(E,a,s,v) findStyleAttributeValue(element,attribute,set,value)
Because IE is written by twits
-->
function fSAV(E,a,s,v){
var T=E.style.cssText;
var ci=0;
var nsc;
var nc;
var f=0;
do{
nsc=T.indexOf(";",ci);
if(nsc==-1)
nsc=T.length;
nc=T.indexOf(":",ci);
if(nc!=-1&&T.substring(ci,nc).toUpperCase()==a.toUpperCase()){
if(s){
if(f==0&&v!=null&&v!=""){
T=T.substr(0,ci)+a+":"+v+";"+T.substring(nsc+1,T.length);
ci=T.indexOf(";",ci)+1;
}else
T=T.substr(0,ci)+T.substring(nsc+1,T.length);
}else{
nc=nc+1;
while(nc<nsc&&T.charAt(nc)==" ")
++nc;
while(nsc>nc&&T.charAt(nsc-1)==" ")
--nsc;
return T.substring(nc,nsc);
}
f=1;
}else
ci=nsc+1;
while(ci<T.length&&T.charAt(ci)==" ")
++ci;
}while(ci<T.length);
if(s){
if(f==0&&v!=null&&v!="")
T=a+":"+v+";"+T;
E.style.cssText=T;
}
return null;
}<!--#endif--><!--#rem
gSAV(E,a) getStyleAttributeValue(element,attribute)
-->
function gSAV(E,a){
var v=null;<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
v=fSAV(E,a,0,null);<!--#else-->
v=E.style.getPropertyValue(a);
if(v!=null&&v.length==0)
v=null;<!--#endif-->
return v;
}<!--#rem
sSAV(E,a,v) setStyleAttributeValue(element,attribute,value)
-->
function sSAV(E,a,v){<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
fSAV(E,a,1,v);<!--#else-->
E.style.setProperty(a,v,"");<!--#endif-->
}<!--#rem
rSAV(E,a) removeStyleAttributeValue(element,attribute)
-->
function rSAV(E,a){<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
fSAV(E,a,1,null);<!--#else-->
E.style.removeProperty(a);<!--#endif-->
}<!--#rem
dIS(c) doInsertion(command)
Inserts an object at/over the current selection
-->
function dIS(c){
if(c==1){
dFI(-1);
}else if(c==2){
ISH("<hr width=\"100%\" color=\"#999999\" size=\"2\" noshade=\"noshade\" title=\"<X-FC-FIELD LANG.614.13 STRING>\" style=\"page-break-after:always;\"\/>");
}else if(c==3){
ISH("<hr width=\"<!--#echo expr="<X-FC-FIELD FCft.307.1001.11 DEFAULT=900 NUMBER> / 10"-->%\" color=\"<X-FC-FIELD FCft.307.1002.11 DEFAULT="#000000" RGB>\" size=\"<X-FC-FIELD FCft.307.1000.11 DEFAULT=1 NUMBER>\" noshade=\"noshade\" style=\"margin-top:<X-FC-FIELD FCft.307.1004.11 DEFAULT=0 NUMBER>px;visibility:visible;\"\/>");
}else if(c==4){
dIL();
}else if (c==5){
dIK();
}else if(c==6){
dIT();
}else if(c==7){
ISH("<!--#echo expr="@escape(`<X-FC-FIELD PREFS.1109 DEFAULT=LANG.127.1109.9 STRING>`)"-->");
}else{
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}
return false;
}
var IAS=new Array("right","left","center","top","bottom","middle");<!--#rem
dSI(i) doSetImage(index)
-->
function dSI(i){
if(DW!=null){
var A=parent.frames["EDITBODY"].document.images;
if(i<0||i>=A.length){
var E=DW.document.forms["MainForm"];
if(E["I:U"].value.length){
var w=parseInt(E["I:SW"].value);
var h=parseInt(E["I:SH"].value);
var p=parseInt(E["I:P"].value);
var a=parseInt(E["I:A"].options[E["I:A"].selectedIndex].value);
var i="<img src=\""+E["I:U"].value+"\" alt=\""+E["I:C"].value+"\" title=\""+E["I:C"].value+"\"";
if(!isNaN(h)&&!isNaN(w)&&h>0&&w>0)
i+=" width=\""+w+"\" height=\""+h+"\"";
if(!isNaN(p)&&p>0)
i+=" hspace=\""+p+"\" vspace=\""+p+"\"";
if(!isNaN(a)&&a>=0&&a<=5)
i+=" align=\""+IAS[a]+"\"";
i+=" border=\"0\"/>";
ISH(i);
}
}else{
var E=DW.document.forms["MainForm"];
if(E["I:U"].value.length){
var I=A[i];
var w=parseInt(E["I:SW"].value);
var h=parseInt(E["I:SH"].value);
var p=parseInt(E["I:P"].value);
var a=parseInt(E["I:A"].options[E["I:A"].selectedIndex].value);
I.src=E["I:U"].value;
I.alt=E["I:C"].value;
I.title=E["I:C"].value;
if(!isNaN(h)&&!isNaN(w)&&h>0&&w>0){
I.width=w;
I.height=h;
}else{
I.removeAttribute("width");
I.removeAttribute("height");
}
if(isNaN(p)||p<0)
p=0;
I.hspace=p;
I.vspace=p;
if(isNaN(a)||a<0||a>5)
a=0;
I.align=IAS[a];
}
}
dCD();
}
}<!--#if expr="0"--><!--#rem TABLE OPS--><!--#rem
dIG() doInsertTable()
-->
function dIG(){
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}<!--#rem
dSG(i) doSetTable(index)
-->
function dSG(i){
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}<!--#rem
dG(c) doTable(command)
-->
function dG(c){
if(c==1){
// Insert Row
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==2){
// Insert Row After
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==3){
// Insert Column
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==4){
// Insert Column After
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==5){
// Insert Rows
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==6){
// Insert Columns
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==7){
// Split Rows
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==8){
// Split Columns
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==9){
// Delete Rows
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==10){
// Delete Columns
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==11){
// Format Cells
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else if(c==12){
// Format Table
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}else{
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}
}<!--#endif--><!--#rem
dIL() doInsertLink(index)
-->
function dIL(){
if(DW)
dCD();
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=302&Close=-1&Index=-1","FCEDITWIN","width=450,height=250,resizable");
}<!--#rem
gLA getLinkArray
FireFox doesn't properly update the document links[] array when in edit mode, so we have to manually construct one
-->
function gLA(){<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
return parent.frames["EDITBODY"].document.links;<!--#else-->
var A=new Array();
var BE=parent.frames["EDITBODY"].document.body;
var N=BE.firstChild;
while(N!=null){
if(N.nodeType==1&&N.tagName.toLowerCase()=="a"&&N.href.length)
A[A.length]=N;
if(N.hasChildNodes())
N=N.firstChild;
else if(N.nextSibling!=null)
N=N.nextSibling;
else if(N==N.parentNode.lastChild){
while(N!=null&&(N.parentNode==null||N.parentNode.nextSibling==null))
N=N.parentNode;
if(N!=null)
N=N.parentNode.nextSibling;
}else if(N==BE)
N=null;
else
N=N.parentNode;
}
return A;<!--#endif-->
}<!--#rem
RLI(L) ResolveLinkIndex(Link)
-->
function RLI(L){
var i=-1;
var A=gLA();
var a;
for(a=0;a<A.length&&i==-1;a++){
if(A[a]==L)
i=a;
}
return i;
}<!--#rem
RMI(M) ResolveMarkerIndex(Marker)
-->
function RMI(M){
var i=-1;
var A=parent.frames["EDITBODY"].document.anchors;
var a;
for(a=0;a<A.length&&i==-1;a++){
if(A[a]==M)
i=a;
}
return i;
}<!--#rem
RII(I) ResolveImageIndex(Image)
-->
function RII(I){
var i=-1;
var A=parent.frames["EDITBODY"].document.images;
var a;
for(a=0;a<A.length&&i==-1;a++){
if(A[a]==I)
i=a;
}
return i;
}<!--#rem
dSL(i) doSetLink(index)
-->
function dSL(i){
if(DW){
var E=DW.document.forms["MF"].elements;
var U=E["L:U"].value;
var L=null;
if(U.length==0)
;
else if(i==-1){
dEC("createLink",U);
L=gEE("a");
}else{
var A=gLA();
if(i>=0&&i<A.length){
L=A[i];
L.href=U;
}
}
if(L!=null){
var T=E["L:T"].value;
var W=E["L:W"].options[E["L:W"].selectedIndex].value;
var N=E["L:N"].value;
if(T.length)
L.title=T;
else
L.title="";
if(W==0)
L.target="";
else if(W==1)
L.target="_blank";
else
L.target=N;
}
dCD();
}
}<!--#rem
dIK() doInsertMarker()
-->
function dIK(){
var c=true;
var n="";
while(c==true&&n!=null){
n=prompt("<X-FC-FIELD FCft.303.3000.30 STRING>:","")
if(n!=null){
if(n.length==0)
n=null;
else{
var A=parent.frames["EDITBODY"].document.anchors;
var f=false;
for(var a=0;a<A.length&&f==false;a++){
if(A[a].name==n)
f=true;
}
if(f){
c=confirm("<!--#set var="MARKERSTR" value="<X-FC-FIELD LANG.7544.2 STRING>"--><!--#echo expr="@split($MARKERSTR,'^1')"-->\""+n+"\"<!--#echo var="MARKERSTR"-->");
}else{
c=false;
ISH("<a name=\""+n+"\"><\/a>");
}
}
}
}
}<!--#rem
dF(c) doFormat(command)
-->
function dF(c){
if(c==0)
dFL(-1);
else if(c==1)
dFK(-1);
else if(c==2)
dFM();
else if(c==3)
dFB();
else
alert("<X-FC-FIELD LANG.7544.5 STRING>");
}<!--#rem
dFS() doFormatSelected
-->
function dFS(){
var BE=parent.frames["EDITBODY"];<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
var S=BE.document.selection;
var N=null;
if(S.type.toLowerCase()=="control")
N=S.createRange(0).item(0);
else
N=S.createRange(0).parentElement();<!--#else-->
var R=BE.getSelection().getRangeAt(0);
var N=R.startContainer;
if(N.nodeType==1&&R.startOffset>=0&&R.startOffset<N.childNodes.length){
N=N.childNodes[R.startOffset];
}<!--#endif-->
var f=false;
if(N.nodeType==1){
if(N.tagName.toLowerCase()=="img"){
var i=RII(N);
if(i!=-1)
dFI(i);
f=true;
}else if(N.tagName.toLowerCase()=="hr"){
dFR(N);
f=true;
}else if(N.tagName.toLowerCase()=="a"){
if(N.href.length){
var i=RLI(N);
if(i!=-1)
dFL(i);
}else{
var i=RMI(N);
if(i!=-1)
dFK(i);
}
f=true;
}
}
if(!f){
var A=gEE("a");
if(A!=null){
if(A.href.length){
var i=RLI(A);
if(i!=-1)
dFL(i);
}else{
var i=RMI(A);
if(i!=-1)
dFK(i);
}
}else{
dFT();
}
}
return false;
}<!--#rem
dFT() doFormatText
-->
function dFT(){
if(DW!=null)
dCD();
var BE=parent.frames["EDITBODY"].document;
var FD=0;
var FP=0;
var FF=BE.queryCommandValue("fontname");
var FS=9;
var FC=0;
if(BE.queryCommandState("bold"))
FD|=0x01;
if(BE.queryCommandState("italic"))
FD|=0x02;
if(BE.queryCommandState("underline"))
FD|=0x04;
if(BE.queryCommandState("strikethrough"))
FD|=0x08;
if(NRGB(BE.queryCommandValue(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->))=="#D0D0D0")
FD|=0x10;
else if(NRGB(BE.queryCommandValue(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->))=="#00C0C0")
FD|=0x20;
if(BE.queryCommandState("superscript"))
FP=1;
else if(BE.queryCommandState("subscript"))
FP=2;
FC=BE.queryCommandValue("forecolor");
if(FC==null||FC=="")
FC=0x<!--#echo expr="@substr($DEFAULTCOLOUR,1,6)"-->;
FC=FC.toString(16);
while (FC.length<6)
FC="0"+FC;<!--#if expr="<X-FC-BROWSER NAME.MSIE>"--><!--#rem
IE 6 has a byte reversal bug whereby the forecolour comes back as BBGGRR.-->
FC=FC.substr(4,2)+FC.substr(2,2)+FC.substr(0,2);<!--#else-->
if(FC.substr(0,4)=="rgb(")
FC=NRGB(FC);
if(FC.charAt(0)=="#")
FC=FC.substr(1,6);<!--#endif-->
FC=parseInt(FC,16);
FS=BE.queryCommandValue("fontsize");
if(FS==null||FS=="")
FS=<!--#echo var="DEFAULTSIZE"-->;
else if(FS.toString().charAt(0)=="+"){
FS=<!--#echo var="DEFAULTSIZE"-->;
}else if(FS.toString().charAt(0)=="-"){
FS=<!--#echo var="DEFAULTSIZE"-->;
}else if(!isNaN(parseInt(FS))){
if(FS>HFS.length)
FS=HFS.length;
FS=HFS[FS-1];
}else
FS=<!--#echo var="DEFAULTSIZE"-->;
if(gEE("font")!=null){
var fsp=gEE("font").style.fontSize;
if(fsp==null||fsp=="")
fsp=gSAV(gEE("font"),"font-size");
if(fsp){
fsp=parseInt(fsp);
if(!isNaN(fsp))
FS=fsp;
}
}
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=300&Close=-1&FF="+escape(FF)+"&FS="+FS+"&FC="+FC+"&FP="+FP+"&FD="+FD,"FCEDITWIN","width=500,height=300,resizable");
return false;
}<!--#rem
dST() doSetText
-->
function dST(){
if(DW!=null){
var E=DW.document.forms["MainForm"].elements;
var BE=parent.frames["EDITBODY"].document;
dEC("fontname",E["T:FF"]);
var fc=E["FieldID:1016=RGB"].value;<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
document.images["EDIT:COLOUR"].src="/__Color/"+fc+"?Width=16&Height=16";<!--#else-->
var FC=document.forms["EDITFORM"].elements["EDIT:COLOUR"];
FC.selectedIndex=0;
for(i=1;i<FC.options.length;i++){
if(FC.options[i].value==fc)
FC.selectedIndex=i;
}<!--#endif-->
dEC("forecolor",fc);
if(E["T:FDB"].checked){
if(!BE.queryCommandState("bold"))
dEC("bold");
}else{
while(BE.queryCommandState("bold"))
dEC("bold");
}
if(E["T:FDI"].checked){
if(!BE.queryCommandState("italic"))
dEC("italic");
}else{
while(BE.queryCommandState("italic"))
dEC("italic");
}
if(E["T:FDU"].checked){
if(!BE.queryCommandState("underline"))
dEC("underline");
}else{
while(BE.queryCommandState("underline"))
dEC("underline");
}
if(E["T:FDX"].checked){
if(!BE.queryCommandState("strikethrough"))
dEC("strikethrough");
}else{
while(BE.queryCommandState("strikethrough"))
dEC("strikethrough");
}
if(E["T:FDQ"].checked){
if(NRGB(BE.queryCommandValue(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->))!=0xD0D0D0)
dEC(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->,"#D0D0D0");
}else if(E["T:FDL"].checked){
if(NRGB(BE.queryCommandValue(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->))!=0x00BFBF)
dEC(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->,"#00BFBF");
}else{
dEC(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->,"");
}
var fp=parseInt(E["T:FP"].options[E["T:FP"].selectedIndex].value);
if(fp==2){
if(!BE.queryCommandState("subscript")){
while(BE.queryCommandState("superscript"))
dEC("superscript");
dEC("subscript");
}
}else if(fp==1){
if(!BE.queryCommandState("superscript")){
while(BE.queryCommandState("subscript"))
dEC("subscript");
dEC("superscript");
}
}else{
while(BE.queryCommandState("subscript"))
dEC("subscript");
while(BE.queryCommandState("superscript"))
dEC("superscript");
}
dFFS(parseInt(E["T:FS"].options[E["T:FS"].selectedIndex].value));
dCD();
}
}<!--#rem
dFP() doFormatParagraphs
-->
function dFP(){
if(DW!=null)
dCD();
var PA=0;
var PP=null;
var PL=null;
var PIL=null;
var PIR=null;
var PIF=null;
var ED=gEE("div","p");
if(ED!=null){
PA=ED.align;
if(PA=="center")
PA=1;
else if(PA=="right")
PA=-1;
else
PA=0;
PP=parseInt(gSAV(ED,"margin-top"));
PL=parseInt(gSAV(ED,"line-height"));
PIL=parseInt(gSAV(ED,"padding-left"));
PIR=parseInt(gSAV(ED,"padding-right"));
PIF=parseInt(gSAV(ED,"text-indent"));
}
if(PP==null||PP=="")
PP=0;
if(PL==null||PL==""||isNaN(PL))
PL=100;
if(PIL==null||PIL=="")
PIL=0;
if(PIR==null||PIR=="")
PIR=0;
if(PIF==null||PIF=="")
PIF=0;
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=301&Close=-1&PA="+PA+"&PP="+PP+"&PL="+PL+"&PIL="+PIL+"&PIF="+PIF+"&PIR="+PIR,"FCEDITWIN","width=450,height=300,resizable");
return false;
}<!--#rem
dSP() doSetParagraphs
-->
function dSP(){
if(DW!=null){
var E=DW.document.forms["MF"];
if(typeof(E)!="undefined"){
var ED=gEE("div","p");
var A=parseInt(E["P:A"].options[E["P:A"].selectedIndex].value);
A=(A==-1?"Right":(A==1?"Center":"Left"));
if(ED==null){
dEC("Justify"+A,null);
ED=gEE("div","p");
}<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
if(ED.tagName.toLowerCase()=="p"){
var h=ED.innerHTML;
var ND=parent.frames["EDITBODY"].document.createElement("div");
ED.replaceNode(ND);
ED=ND;
ED.innerHTML=h;
}<!--#endif-->
sSAV(ED,"text-align",A);
ED.align=A;
sSAV(ED,"margin-top",E["P:P"].value+"px");
sSAV(ED,"line-height",E["P:L"].value+"%")
sSAV(ED,"vertical-align",E["P:L"].value+"%");
sSAV(ED,"padding-left",E["P:IL"].value+"px");
sSAV(ED,"padding-right",E["P:IR"].value+"px");
sSAV(ED,"text-indent",E["P:IF"].value+"px");
}
dCD();
}
}<!--#rem
dFL(i) doFormatLinks(index)
-->
function dFL(i){
var A=gLA();
if(A.length==0)
alert("<X-FC-FIELD LANG.7544.3 STRING>")
else if(i<0||i>=A.length){
if(DW)
dCD();
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=315&Close=-1","FCEDITWIN","width=500,height=250,resizable");
}else{
var L=A[i];
var U=L.getAttribute("href");
var T=L.title;
var W=0;
var N=null;
if(L.target=="_blank")
W=1;
else if(L.target!=null&&L.target.length){
W=2;
N=L.target;
}
if(DW)<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
DW.resizeTo(450,300);<!--#else-->
dCD();<!--#endif-->
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=302&Close=-1&Index="+i+"&LU="+escape(U)+"&LW="+W+(W==2?"&LN="+escape(N):"")+(T.length?"&T="+escape(T):""),"FCEDITWIN","width=450,height=300,resizable");
}
}<!--#rem
dFL(i) doFormatMarkers(index)
-->
function dFK(i){
if(i==-1){
var A=parent.frames["EDITBODY"].document.anchors;
if(A.length){
if(DW)
dCD();
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=306&Close=-1","FCEDITWIN","width=250,height=250,resizable");
}else{
alert("<X-FC-FIELD LANG.7544.3 STRING>")
}
}else{
var BE=parent.frames["EDITBODY"].document;
var MN=BE.anchors[i].name;
MN=prompt("<X-FC-FIELD FTft.303.3000.30 STRING> \""+MN+"\": ",MN);
dSK(i,MN);
}
}<!--#rem
dSK(i,n) doSetMarker(index,name)
-->
function dSK(i,n){
var BE=parent.frames["EDITBODY"].document;
var A=BE.anchors;
if(i>=0&&i<A.length&&n!=null){
if(n.length==0){<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
A[i].removeNode(true);<!--#else-->
var R=BE.createRange();
R.selectNode(A[i]);
R.deleteContents();<!--#endif-->
}else{
var A=parent.frames["EDITBODY"].document.anchors;
var f=false;
for(var a=0;a<A.length&&f==false;a++){
if(i!=a&&A[a].name==n)
f=true;
}
if(f){
c=alert("<!--#set var="MARKERSTR" value="<X-FC-FIELD LANG.7544.2 STRING>"--><!--#echo expr="@split($MARKERSTR,'^1')"-->\""+n+"\"<!--#echo var="MARKERSTR"-->");
}else{
A[i].name=n;
}
}
}
if(DW!=null)
dCD();
}<!--#rem
dFL(i) doFormatImages(index)
-->
function dFI(i){
if(DW!=null)
dCD();
var A=parent.frames["EDITBODY"].document.images;
if(i<0||i>=A.length){
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=308&Close=-1&Show=2&Index=-1","FCEDITWIN","resizable,width=600,height=<!--#echo expr="400 + (30 * <X-FC-LIST-COUNT>)"-->");
}else{
var I=A[i];
var w=parseInt(I.width);
var h=parseInt(I.height);
var p=parseInt(I.hspace);
var as=I.align.toLowerCase();
var a=-1;
var is;
for(is=0;is<IAS.length&&a==-1;is++){
if(as==IAS[is])
a=is;
}
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=308&Close=-1&Show=2&Index="+i+"&IU="+escape(I.src)+"&IC="+escape(I.alt)+"&IP="+p+(w?"&ISW="+w:"")+(h?"&ISH="+w:"")
,"FCEDITWIN","resizable,width=600,height=<!--#echo expr="400 + (30 * <X-FC-LIST-COUNT>)"-->");
}
}<!--#rem
dFM() doFormatMargins
-->
function dFM(){
if(DW!=null)
dCD();
var BE=parent.frames["EDITBODY"].document.body;
var M=gSAV(BE,"margin");
var ML=null;
var MR=null;
var MT=null;
var MB=null;
if(M!=null){
var ni=-1;
MT=parseInt(M);
ni=M.indexOf(" ");
if(ni>-1){
while(ni<M.length&&M.charAt(++ni)==" ");
if(ni<M.length){
MR=parseInt(M.substr(ni,M.length));
ni=M.indexOf(" ",ni);
if(ni>-1){
while(ni<M.length&&M.charAt(++ni)==" ");
if(ni<M.length){
MB=parseInt(M.substr(ni,M.length));
ni=M.indexOf(" ",ni);
if(ni>-1){
while(ni<M.length&&M.charAt(++ni)==" ");
if(ni<M.length)
ML=parseInt(M.substr(ni,M.length));
}
}
}
}
}
}else{
ML=gSAV(BE,"margin-left");
MR=gSAV(BE,"margin-right");
MT=gSAV(BE,"margin-top");
MB=gSAV(BE,"margin-bottom");
}
if(MT==null||isNaN(MT))MT=10;
if(MR==null||isNaN(MR))MR=MT;
if(MB==null||isNaN(MB))MB=MT;
if(ML==null||isNaN(ML))ML=MR;
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=309&Close=-1&ML="+ML+"&MR="+MR+"&MT="+MT+"&MB="+MB,"FCEDITWIN","width=300,height=100,resizable");
return false;
}<!--#rem
dSM() doSetMargins
-->
function dSM(){
if(DW!=null){
var E=DW.document.forms["MF"];
var BE=parent.frames["EDITBODY"].document.body;
if(typeof(E)!="undefined"){
E=E.elements;
var ML=parseInt(E["M:L"].value);
var MR=parseInt(E["M:R"].value);
var MT=parseInt(E["M:T"].value);
var MB=parseInt(E["M:B"].value);
if(gSAV(BE,"margin")!=null){
if(ML==MR&&MT==MB&&ML==MT)
sSAV(BE,"margin",MT+"px");
else if(ML==MR&&MT==MB)
sSAV(BE,"margin",MT+"px "+MR+"px");
else
sSAV(BE,"margin",MT+"px "+MR+"px "+MB+"px "+ML+"px");
}else{
sSAV(BE,"margin-left",ML+"px");
sSAV(BE,"margin-right",MR+"px");
sSAV(BE,"margin-top",MT+"px");
sSAV(BE,"margin-bottom",MB+"px");
}
DW.close();
DW=null;
}
}
}<!--#rem
dFB() doFormatBackground
-->
function dFB(){
var BE=parent.frames["EDITBODY"].document.body;
var BGI=gSAV(BE,"background-image");
var BGIT=gSAV(BE,"background-repeat");
var BGIC=gSAV(BE,"background-position");
var BGC=gSAV(BE,"background-color");
var u="<X-FC-OBJURL>?Templates=Edit&FormID=320&Close=-1&Show=2";
if(BGI==null){
BGI=BE.getAttribute("background",1);
if(BGI!=null&&BGI.length==0)
BGI=null;
}
if(BGC==null){
BGC=BE.getAttribute("bgcolor",1);
if(BGC!=null&&BGC.length==0)
BGC=null;
}
if(BGI!=null){
if(BGI.substr(0,4)=="url(")
BGI=BGI.substr(4,BGI.length-5);
u+="&BGI="+escape(BGI);
if(BGIT!=null&&BGIT=="repeat")
u+="&BGIP=16";
else if(BGIC!=null&&BGIC=="center")
u+="&BGIP=32";
else
u+="&BGIP=128";
}
if(BGC!=null){
if(BGC.substr(0,4)=="rgb("){
var BGCV=(parseInt(BGC.substr(4,BGC.length))<<16);
var ni=BGC.indexOf(',');
BGCV+=(parseInt(BGC.substr(ni+1,BGC.length))<<8);
ni=BGC.indexOf(',',ni+1);
BGCV+=parseInt(BGC.substr(ni+1,BGC.length));
BGC=BGCV;
}else{
if(BGC.charAt(0)=="#")
BGC=BGC.substr(1,6);
BGC=parseInt(BGC,16);
}
u+="&BGCR="+((BGC>>16)&0x000000FF)+"&BGCG="+((BGC>>8)&0x000000FF)+"&BGCB="+(BGC&0x000000FF);
}
if(DW!=null)
dCD();
DW=window.open(u,"FCEDITWIN","resizable,width=600,height=<!--#echo expr="170 + (30 * <X-FC-LIST-COUNT>)"-->");
}<!--#rem
dSB doSetBackground
-->
function dSB(){
if(DW!=null){
var BE=parent.frames["EDITBODY"].document.body;
var E=DW.document.forms["BGForm"].elements;
var IP=parseInt(E["B:IP"].value);
if(E["B:UC"].checked){
var BGC=E["FieldID:1010=RGB"].value;<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
BE.bgColor=BGC;<!--#else-->
BE.setAttribute("bgcolor",BGC,1);<!--#endif-->
BGC=parseInt(BGC.substr(1,6),16);
BGC="rgb("+((BGC>>16)&0x000000FF)+","+((BGC>>8)&0x000000FF)+","+(BGC&0x000000FF)+")";
sSAV(BE,"background-color",BGC);
}else{
rSAV(BE,"background-color");<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
BE.bgColor="";<!--#else-->
BE.removeAttribute("bgcolor");<!--#endif-->
}
if(E["B:I"].value!=""){
sSAV(BE,"background-image","url("+E["B:I"].value+")");
BE.setAttribute("background",E["B:I"].value,1);
if(IP==16){
sSAV(BE,"background-repeat","repeat");
}else{
sSAV(BE,"background-repeat","no-repeat");
}
if(IP==32){
sSAV(BE,"background-position","center");
}else{
sSAV(BE,"background-position","top left");
}
}else{
rSAV(BE,"background-image");
rSAV(BE,"background-repeat");
rSAV(BE,"background-position");
BE.removeAttribute("background");
}
dCD();
}
}<!--#rem
dFR(R) doFormatRule(Rule)
-->
var FR=null;
function dFR(R){
var PB=gSAV(R,"page-break-after");
if(PB=="always")
return;
var RC=gSAV(R,"color");
var RP=gSAV(R,"margin-top");
var RCR=0;
var RCG=0;
var RCB=0;
if(RC==null||RC=="")
RC=R.color;
RC=NRGB(RC);
RCR=parseInt(RC.substr(1,2),16);
RCG=parseInt(RC.substr(3,2),16);
RCB=parseInt(RC.substr(5,2),16);
if(RP==null||typeof(RP)=="undefined")
RP=0;
if(DW)
dCD();
FR=R;
DW=window.open("<X-FC-OBJURL>?Templates=Edit&FormID=307&Close=-1&RT="+R.size+"&RP="+RP+"&RH="+(R.style.visibility=="hidden"?1:0)+"&RW="+parseInt(R.width)+"&RCR="+RCR+"&RCG="+RCG+"&RCB="+RCB,"FCEDITWIN","width=525,height=300,resizable");
}<!--#rem
dSR() doSetRule
-->
function dSR(){
if(DW!=null&FR!=null){
var E=DW.document.forms["MF"].elements;
FR.size=E["R:T"].value;
FR.style.height=FR.size+"px";
FR.style.marginTop=E["R:P"].value+"px";
FR.style.visibility=(E["R:V"].checked?"visible":"hidden");
FR.width=E["R:W"].value+"%";
rSAV(FR,"color");
FR.color=E["FieldID:1002=RGB"].value;
}
FR=null;
dCD();
}<!--#rem
dFFS(ps) doFormatFontSize(PointSize)
-->
var HFS=new Array(<!--#echo expr="@fontsize(8)"-->,<!--#echo expr="@fontsize(10)"-->,<!--#echo expr="@fontsize(12)"-->,<!--#echo expr="@fontsize(14)"-->,<!--#echo expr="@fontsize(18)"-->,<!--#echo expr="@fontsize(24)"-->,<!--#echo expr="@fontsize(36)"-->);
function dFFS(ps){
var i=0;
while(i<(HFS.length-1)&&ps>HFS[i])
++i;
dEC("FontSize",i+1);<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
var FE=gEE("font");
if(FE!=null)
sSAV(FE,"font-size",ps+"pt");<!--#else-->
var R=parent.frames["EDITBODY"].getSelection().getRangeAt(0);
var N=R.startContainer;
if(N.nodeType==3){
if(R.startOffset&&N.nextSibling)
N=N.nextSibling;
else
N=N.parentNode;
}
while(N!=null&&R.intersectsNode(N)){
if(N.nodeType==1&&N.tagName.toLowerCase()=="font")
sSAV(N,"font-size",ps+"pt");
if(N.hasChildNodes())
N=N.firstChild;
else if(N.nextSibling!=null)
N=N.nextSibling;
else if(N==N.parentNode.lastChild){
while(N!=null&&(N.parentNode==null||N.parentNode.nextSibling==null))
N=N.parentNode;
if(N!=null)
N=N.parentNode.nextSibling;
}else
N=N.parentNode;
}<!--#endif-->
}<!--#rem
dRIF() doRemoveInlineFormatting-->
function dRIF(){
var BF=parent.frames["EDITBODY"];
var BE=BF.document;
dEC("bold");
while(BE.queryCommandState("bold"))
dEC("bold");
dEC("italic");
while(BE.queryCommandState("italic"))
dEC("italic");
dEC("underline");
while(BE.queryCommandState("underline")&&gEE("a")==null)
dEC("underline");
dEC("strikethrough");
while(BE.queryCommandState("strikethrough"))
dEC("strikethrough");
dEC("superscript");
while(BE.queryCommandState("superscript"))
dEC("superscript");
dEC("subscript");
while(BE.queryCommandState("subscript"))
dEC("subscript");
dEC(<!--#if expr="<X-FC-BROWSER
NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->,"#FFFFFF");<!--#if
expr="<X-FC-BROWSER NAME.MSIE>"-->
var S=BE.selection;
var R=S.createRange(0);
if(S.type.toLowerCase()=="control"){
N=R.item(0);
rSAV(N,"background-color");
}else{
N=R.parentElement();
rSAV(N,"background-color");
}<!--#else-->
var R=BF.getSelection().getRangeAt(0);
N=R.startContainer;
while(N!=null&&R.intersectsNode(N)){
if(N.nodeType==1)
rSAV(N,"background-color");
if(N.hasChildNodes())
N=N.firstChild;
else if(N.nextSibling!=null)
N=N.nextSibling;
else if(N==N.parentNode.lastChild){
while(N!=null&&(N.parentNode==null||N.parentNode.nextSibling==null))
N=N.parentNode;
if(N!=null)
N=N.parentNode.nextSibling;
}else
N=N.parentNode;
}<!--#endif-->
return false;
}<!--#rem
dCD() doCloseDialog()
-->
var DW=null;
function dCD(){
if(DW!=null){
var CD=DW;
DW=null;
CD.close();
}
}<!--#if expr="<X-FC-BROWSER NAME.MSIE>"--><!--#rem
dCP() doChooseColour
-->
function dCP(){
var c=0x<!--#echo expr="@substr($DEFAULTCOLOUR,1,6)"-->;
var I=document.images["EDIT:COLOUR"];
var s=I.src;
var ni=s.lastIndexOf("/");
if(ni!=-1)
s=s.substr(ni+1,s.length);
ni=s.indexOf("?")
if(ni!=-1)
s=s.substr(0,ni);
if(s&&!isNaN(parseInt(s,16)))
c=parseInt(s,16);
c=DH.ChooseColorDlg(c);
c=c.toString(16);
while(c.length<6)
c="0"+c;
I.src="/__Color/"+c+"?Width=16&Height=16";
return dEC("ForeColor",c);
}<!--#rem
LFDD() LoadFontDropDown
Populates the contents of the font dropdown on IE
-->
function LFDD(){
var f=0;
var c=DH.fonts.count;
var E=document.forms["EDITFORM"].elements["EDIT:FACE"];
var O=E.options;
var F=new Array();
for(f=1;f<=c;f++)
F[f-1]=DH.fonts(f);
F.sort();
for(f=0;f<c;f++){
if((f+1)==O.length)
O[f+1]=new Option();
O[f+1].text=F[f];
O[f+1].value=F[f];
}
}<!--#endif--><!--#rem
dL doLoad
onLoad event
-->
function dL(){<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
LFDD();<!--#endif-->
}<!--#rem
dUASE(IL) doUpdateActiveStyleElements(initialLoad)
-->
function dUASE(IL){
var BE=parent.frames["EDITBODY"].document;
var E=document.forms["EDITFORM"];
var I=document.images;
var i=0;
var pt=1;
if(BE.queryCommandState("bold")){
I["EDIT:BOLD"].style.borderColor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>";
pt=0;
}else
I["EDIT:BOLD"].style.borderColor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>";
if(BE.queryCommandState("italic")){
I["EDIT:ITALIC"].style.borderColor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>";
pt=0;
}else
I["EDIT:ITALIC"].style.borderColor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>";
if(BE.queryCommandState("underline")){
I["EDIT:UNDERLINE"].style.borderColor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>";
pt=0;
}else
I["EDIT:UNDERLINE"].style.borderColor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>";
if(NRGB(BE.queryCommandValue(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->))=="#D0D0D0"){
I["EDIT:QUOTE"].style.borderColor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>";
pt=0;
}else
I["EDIT:QUOTE"].style.borderColor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>";
if(IL==0&&gEE("a")!=null){
I["EDIT:LINK"].style.borderColor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>";
pt=0;
}else
I["EDIT:LINK"].style.borderColor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>";
if(BE.queryCommandState("strikethrough"))
pt=0;
if(BE.queryCommandState("subscript"))
pt=0;
if(BE.queryCommandState("superscript"))
pt=0;
if(pt)
I["EDIT:PLAIN"].style.borderColor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>";
else
I["EDIT:PLAIN"].style.borderColor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>";
var ff=BE.queryCommandValue("fontname");
var FD=E["EDIT:FACE"];
FD.selectedIndex=0;
if(ff!=null&&ff!=""){
for(i=0;i<FD.options.length&&FD.selectedIndex==0;i++)
if(FD.options[i].value.toUpperCase()==ff.toUpperCase())
FD.selectedIndex=i;
}
var fc=BE.queryCommandValue("forecolor");
if(fc==null||fc=="")
fc=0x<!--#echo expr="@substr($DEFAULTCOLOUR,1,6)"-->;
fc=fc.toString(16);
while (fc.length<6)
fc="0"+fc;<!--#if expr="<X-FC-BROWSER NAME.MSIE>"--><!--#rem
IE 6 has a byte reversal bug whereby the forecolour comes back as BBGGRR.-->
fc=fc.substr(4,2)+fc.substr(2,2)+fc.substr(0,2);
var FC=I["EDIT:COLOUR"];
var s=FC.src;
var ni=s.lastIndexOf("/");
if(ni!=-1)
s=s.substr(ni+1,s.length);
ni=s.indexOf("?")
if(ni!=-1)
s=s.substr(0,ni);
if(!(s&&!isNaN(parseInt(s,16))&&s==fc))
FC.src="/__Color/"+fc+"?Width=16&Height=16";<!--#else-->
if(fc.substr(0,4)=="rgb(")
fc=NRGB(fc);
else if(fc.charAt(0)!="#")
fc="#"+fc;
var FC=E["EDIT:COLOUR"];
FC.selectedIndex=0;
for(i=1;i<FC.options.length;i++){
if(FC.options[i].value==fc)
FC.selectedIndex=i;
}<!--#endif-->
var fs=BE.queryCommandValue("fontsize");
if(fs==null||fs=="")
fs=<!--#echo var="DEFAULTSIZE"-->;
else if(fs.toString().charAt(0)=="+"){
fs=<!--#echo var="DEFAULTSIZE"-->;
}else if(fs.toString().charAt(0)=="-"){
fs=<!--#echo var="DEFAULTSIZE"-->;
}else if(!isNaN(parseInt(fs))){
if(fs>HFS.length)
fs=HFS.length;
fs=HFS[fs-1];
}else
fs=<!--#echo var="DEFAULTSIZE"-->;
if(IL==0&&gEE("font")!=null){
var fsp=gEE("font").style.fontSize;
if(fsp==null||fsp=="")
fsp=gSAV(gEE("font"),"font-size");
if(fsp){
fsp=parseInt(fsp);
if(!isNaN(fsp))
fs=fsp;
}
}
var FS=E["EDIT:SIZE"];
for(i=0;i<FS.options.length;i++){
if(i==FS.options.length-1)
FS.selectedIndex=i;
else if(fs>=parseInt(FS.options[i].value)&&fs<parseInt(FS.options[i+1].value)){
FS.selectedIndex=i;
i=FS.options.length;
}
}
var FA=E["EDIT:ALIGN"];
FA.selectedIndex=0;
if(BE.queryCommandState("JustifyRight"))
FA.selectedIndex=2;
else if(BE.queryCommandState("JustifyCenter"))
FA.selectedIndex=1;<!--#if expr="0"--><!--#rem TABLE OPS-->
var FT=E["EDIT:TABLE"];
if(IL==0&&gEE("table")!=null)
FT.disabled=false;
else
FT.disabled=true;<!--#endif-->
}
//-->
</script>
</head>
<body bgcolor="<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>" unselectable="on" onload="dL();" style="margin:2px;" onunload="dCD();">
<form name="EDITFORM" action="JavaScript://" onsubmit="return false;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dRIF();"><img name="EDIT:PLAIN" src="<X-FC-LOGIN>Icons/i11030" alt="<X-FC-FIELD LANG.CMD.30.0 STRING>" title="<X-FC-FIELD LANG.CMD.30.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="1" style="border-color:<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>;border-style:solid;border-width:1px;"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dEC('bold',null);"><img name="EDIT:BOLD" src="<X-FC-LOGIN>Icons/i11031" alt="<X-FC-FIELD LANG.CMD.31.0 STRING>" title="<X-FC-FIELD LANG.CMD.31.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="1" style="border-color:<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>;border-style:solid;border-width:1px;"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dEC('italic',null);"><img name="EDIT:ITALIC" src="<X-FC-LOGIN>Icons/i11032" alt="<X-FC-FIELD LANG.CMD.32.0 STRING>" title="<X-FC-FIELD LANG.CMD.32.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="1" style="border-color:<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>;border-style:solid;border-width:1px;"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dEC('underline',null);"><img name="EDIT:UNDERLINE" src="<X-FC-LOGIN>Icons/i11033" alt="<X-FC-FIELD LANG.CMD.33.0 STRING>" title="<X-FC-FIELD LANG.CMD.33.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="1" style="border-color:<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>;border-style:solid;border-width:1px;"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dEC(<!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->'backcolor'<!--#else-->'hilitecolor'<!--#endif-->,'#D0D0D0');"><img name="EDIT:QUOTE" src="<X-FC-LOGIN>Icons/i11036" alt="<X-FC-FIELD LANG.CMD.36.0 STRING>" title="<X-FC-FIELD LANG.CMD.36.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="1" style="border-color:<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>;border-style:solid;border-width:1px;"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td bgcolor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>" style="width:1px;"><img src="/Icons/0" alt="" width="1" height="1" border="0"/></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dEC('Indent',null);"><img src="<X-FC-LOGIN>Icons/i11563" alt="<X-FC-FIELD LANG.CMD.563.0 STRING>" title="<X-FC-FIELD LANG.CMD.563.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="0"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dEC('Outdent',null);"><img src="<X-FC-LOGIN>Icons/i11562" alt="<X-FC-FIELD LANG.CMD.562.0 STRING>" title="<X-FC-FIELD LANG.CMD.562.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="0"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td bgcolor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>" style="width:1px;"><img src="/Icons/0" alt="" width="1" height="1" border="0"/></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dFS();"><img src="<X-FC-LOGIN>Icons/i11530" alt="<X-FC-FIELD LANG.CMD.530.0 STRING>" title="<X-FC-FIELD LANG.CMD.530.9 STRING>"
width="24" height="24" hspace="2" vspace="2" border="0"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dFP();"><img src="<X-FC-LOGIN>Icons/i11511" alt="<X-FC-FIELD LANG.CMD.511.0 STRING>" title="<X-FC-FIELD LANG.CMD.511.9 STRING>"
width="24" height="24" hspace="2" vspace="2" border="0"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dIS(4);"><img name="EDIT:LINK" src="<X-FC-LOGIN>Icons/i11703" alt="<X-FC-FIELD LANG.CMD.703.0 STRING>" title="<X-FC-FIELD LANG.CMD.703.9 STRING>" width="24" height="24" hspace="2" vspace="2" border="1" style="border-color:<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>;border-style:solid;border-width:1px;"/></a></td>
</tr>
</table></td>
<td class="p"> </td>
<td bgcolor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>" style="width:1px;"><img src="/Icons/0" alt="" width="1" height="1" border="0"/></td>
<td class="p"> </td>
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="return dIS(7);"><img src="<X-FC-LOGIN>Icons/i11355" alt="<X-FC-FIELD LANG.CMD.355.0 STRING>" title="<X-FC-FIELD LANG.CMD.355.9 STRING>"
width="24" height="24" hspace="2" vspace="2" border="0"/></a></td>
</tr>
</table></td>
<td class="p" width="100%"> </td><!--#if expr="$EDITORDEBUG"-->
<td class="tbplain" onmouseover="dRi(this);" onmouseout="dRo(this);"><table cellpadding="0" cellspacing="0" border="0" style="width:28px;height:28px;">
<tr>
<td><a href="JavaScript://" onclick="alert(parent.frames['EDITBODY'].document.documentElement.innerHTML);return false;"><img src="<X-FC-LOGIN>Icons/i7027" alt="<X-FC-FIELD LANG.7544.4 STRING>" title="<X-FC-FIELD LANG.7544.4 STRING>" width="24" height="24" hspace="2" vspace="2" border="0"/></a></td>
</tr>
</table></td>
<td class="p"> </td><!--#endif-->
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="/Icons/0" alt="" width="1" height="2" border="0"/></td>
</tr>
<tr>
<td bgcolor="<X-FC-FIELD PREFS.5606 DEFAULT=LANG.49.5606.11 RGB>"><img src="/Icons/0" alt="" width="1" height="1" border="0"/></td>
</tr>
<tr>
<td><img src="/Icons/0" alt="" width="1" height="2" border="0"/></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="p"> </td>
<td><select name="EDIT:FACE" class="forms" onchange="dEC('FontName',this.options[this.selectedIndex].value);">
<option value="<!--#echo var="DEFAULTFONT"-->" selected="selected"></option><!--#if expr="@length($CUSTOMFONTS)"--><!--#set var="FONTLIST" value="$CUSTOMFONTS"--><!--#else--><!--#set var="FONTLIST" value="<X-FC-FIELD LANG.7502 STRING>"--><!--#endif--><!--#while expr="@length($FONTLIST)"--><!--#set var="FONT" expr="@split($FONTLIST,';')"-->
<option value="<!--#echo expr="@mlescape($FONT)"-->"><!--#echo expr="@mlescape($FONT)"--></option><!--#endwhile-->
</select></td>
<td class="p"> </td>
<td><select name="EDIT:SIZE" class="forms" onchange="dFFS(this.options[this.selectedIndex].value);"><!--#set var="FONTSIZES" value="8;10;12;14;16;18;20;24;36;48;72"--><!--#while expr="$FONTSIZES"--><!--#set var="FONTSIZE" expr="@split($FONTSIZES,';')"-->
<option value="<!--#echo expr="@fontsize($FONTSIZE)"-->"<!--#if expr="$DEFAULTSIZE == @fontsize($FONTSIZE)"--> selected="selected"<!--#endif-->><!--#echo var="FONTSIZE"--></option><!--#endwhile-->
</select></td>
<td class="p"> </td>
<td><table cellpadding="0" cellspacing="0" border="0" style="width:16px;height:16px;border-style:solid;border-color:<X-FC-FIELD PREFS.5602 DEFAULT=LANG.49.5602.11 RGB>;border-width:2px;">
<tr><!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
<td><a href="JavaScript://" onclick="return dCP();"><img id="EDIT:COLOUR" src="/__Color/<!--#echo expr="@substr($DEFAULTCOLOUR,1,6)"-->?Width=16&Height=16" width="16" height="16" border="0"/></a></td><!--#else-->
<td><select class="forms" name="EDIT:COLOUR" onchange="if(this.selectedIndex>0)dEC('ForeColor',this.options[this.selectedIndex].value);">
<option value="#000000"><X-FC-FIELD LANG.7545.1 STRING></option><!--#set var="INDEX" value="1"--><!--#while expr="++$INDEX < 18"--><!--#set var="COLOUR" value="<X-FC-FIELD LANG.7545.`$INDEX` STRING>"--><!--#set var="COLOURSTR" expr="@split($COLOUR,'=')"-->
<option value="<!--#echo var="COLOUR"-->"<!--#if expr="$COLOUR==~$DEFAULTCOLOUR"--> selected="selected"<!--#endif-->><!--#echo var="COLOURSTR"--></option><!--#endwhile-->
</select></td><!--#endif-->
</tr>
</table></td>
<td class="p"> </td>
<td><select name="EDIT:ALIGN" class="forms" onchange="dEC(this.options[this.selectedIndex].value,null);">
<option value="JustifyLeft"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1012.10 LITERALSTRING>`,0)"--></option>
<option value="JustifyCenter"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1012.10 LITERALSTRING>`,1)"--></option>
<option value="JustifyRight"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1012.10 LITERALSTRING>`,-1)"--></option>
</select></td>
<td class="p"> </td>
<td><select name="EDIT:INSERT" class="forms" onchange="if(this.selectedIndex>0){dIS(this.options[this.selectedIndex].value);this.selectedIndex=0;}">
<option value="-1" selected="selected"><X-FC-FIELD LANG.CMD.422.0 STRING>...</option>
<option value="7"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,7)"--></option>
<option value="1"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,1)"--></option><!--#if expr="0"--><!--#rem TABLE OPS-->
<option value="6"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,6)"--></option><!--#endif-->
<option value="2"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,2)"--></option>
<option value="3"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,3)"--></option>
<option value="4"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,4)"--></option>
<option value="5"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1060.10 LITERALSTRING>`,5)"--></option>
</select></td>
<td class="p"> </td>
<td><select name="EDIT:FORMAT" class="forms" onchange="if(this.selectedIndex>0){dF(this.options[this.selectedIndex].value);this.selectedIndex=0;}">
<option value="-1" selected="selected"><X-FC-FIELD LANG.CMD.577.0 STRING>...</option>
<option value="0"><X-FC-FIELD FCft.302.0.25 STRING></option>
<option value="1"><X-FC-FIELD FCft.303.0.25 STRING></option>
<option value="2"><X-FC-FIELD FCft.309.0.25 STRING></option>
<option value="3"><X-FC-FIELD FCft.320.0.25 STRING></option>
</select></td><!--#if expr="0"--><!--#rem TABLE OPS-->
<td class="p"> </td>
<td><select name="EDIT:TABLE" class="forms" onchange="if(this.selectedIndex>0){dG(this.options[this.selectedIndex].value);this.selectedIndex=0;}" disabled="disabled">
<option value="-1" selected="selected"><X-FC-FIELD LANG.614.39 STRING></option>
<option value="12"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,12)"--></option>
<option value="11"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,11)"--></option>
<option value="8"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,8)"--></option>
<option value="6"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,6)"--></option>
<option value="7"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,7)"--></option>
<option value="5"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,5)"--></option>
<option value="3"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,3)"--></option>
<option value="4"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,4)"--></option>
<option value="1"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,1)"--></option>
<option value="2"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,2)"--></option>
<option value="10"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,10)"--></option>
<option value="9"><!--#echo expr="@list(`<X-FC-FIELD FCft.350.1066.10 LITERALSTRING>`,9)"--></option>
</select></td><!--#endif-->
<td class="p" width="100%"> </td>
</tr>
</table>
</form><!--#if expr="<X-FC-BROWSER NAME.MSIE>"-->
<object id="DH" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0" height="0"></object><!--#endif-->
</body>
<!--*Toolbars/95 BSS=<X-FC-REQUEST-TIME BODY.SETUPSTART> BSE=<X-FC-REQUEST-TIME BODY.SETUPEND> BSD=<X-FC-REQUEST-TIME BODY.STYLEDONE> B=<X-FC-REQUEST-TIME BODY> D=<X-FC-REQUEST-TIME>-->
</html> |  |
 |
|