<!---
function ln(len){document.writeln('<div id="ln'+cnt+'" class="corner" style="width:'+len+'px;">&nbsp;</div>');cnt+=1}
function b1() {document.getElementById('hb').style.color='#'+document.f1.hbtext.value}
function b2() {document.getElementById('hb').style.background='#'+document.f1.hbback.value
 if (typeof(lb)!="undefined") {document.getElementById('lb').style.background='#'+document.f1.hbback.value}
 if (typeof(ln1)!="undefined") {for (ii=1; ii<19; ii++) {document.getElementById('ln'+ii).style.background='#'+document.f1.hbback.value}}
 if (typeof(ln19)!="undefined") {for (ii=19; ii<37; ii++) {document.getElementById('ln'+ii).style.background='#'+document.f1.hbback.value}}
 if (typeof(wct)!="undefined") {document.getElementById('wct').style.background='#'+document.f1.hbback.value}
 if (typeof(foot)!="undefined") {document.getElementById('foot').style.background='#'+document.f1.hbback.value}
}

function b3() {document.getElementById('nb').style.background='#'+document.f1.nbback.value}
function b5() {document.getElementById('cn').style.color='#'+document.f1.cntext.value}
function b6() {document.getElementById('cn').style.background='#'+document.f1.cnback.value
 document.getElementById('cb').style.background='#'+document.f1.cnback.value}

function head() {
 w1=document.f1.head1.value
 w2=document.f1.number.selectedIndex
 pn[w2]=w1
 document.getElementById('head').innerHTML=w1
 document.getElementById('pg'+w2).innerHTML=w1
}
function change(wk) {
 document.f1.number.selectedIndex=wk
 document.f1.head1.value=pn[wk]
 document.getElementById('head').innerHTML=pn[wk]
 document.f1.head1.focus()
}
function newPage() {
 wk=document.f1.number.selectedIndex
 document.f1.head1.value=pn[wk]
 document.getElementById('head').innerHTML=pn[wk]
 document.f1.head1.focus()
}

function nextPage() {
 if (document.f1.number.selectedIndex<25) {document.f1.number.selectedIndex+=1; newPage()}
}
var ver=0;col="";wrk="";lPick="";hFont=90;htFont=300;cFont=100;cWidth=75;quick=1;rhs=0
cc=new Array("00","22","33","55","66","99","aa","cc","dd","ff")
pn=new Array("A:Home Page Title","B:Page","C:Page","D:Page","E:Page","F:Page","G:Page","H:Page","I:Page","J:Page","K:Page","L:Page","M:Page","N:Page","O:Page","P:Page","Q:Page","R:Page","S:Page","T:Page","U:Page","V:Page","W:Page","X:Page","Y:Page","Z:Page")

function pickBox(tPick) {
 if (lPick!="") document.getElementById(lPick).innerHTML='<br>'
 if (lPick==tPick) {lPick="";return}
 lPick=tPick

 if (tPick=="p1") {work="hbtext";bF=1}
 if (tPick=="p2") {work="hbback";bF=2}
 if (tPick=="p3") {work="nbback";bF=3}
 if (tPick=="p5") {work="cntext";bF=5}
 if (tPick=="p6") {work="cnback";bF=6}
 bx1='<span class="pick" style="background-color:#'
 bx2='" onclick="document.f1.'+work+'.value=\''
 bx3='\';b'+bF+'()">&nbsp;</span>'

 pC="<div class='pbox'>"
 rc=0;gc=0;bc=0
 line=0;row=0
 for (ii=0; ii<10; ii++) {
  pC+='<div class="pline">'
  for (jj=1; jj<101; jj++) {
   rGB=cc[gc]+cc[rc]+cc[bc]
   pC+=bx1+rGB+bx2+rGB+bx3
   bc+=1
   if (bc>9) {bc=0;gc+=1}
   if (gc>9) {gc=0;rc+=1;pC+="</div>"}
  }
 }
 pC+='</div'
 document.getElementById(tPick).innerHTML=pC
}
function newLogo(wrk) {
 if (document.f1.logo.value=="") return
 document.logo1.src=document.f1.logo.value
 if(wrk==1) return
 document.logo2.src=document.f1.logo.value
}
function chFont(chge) {
 if (document.f1.x5[0].checked) chge=chge*5
 hFont+=chge
 if (hFont<25) hFont=25
 document.getElementById('nb').style.fontSize=hFont+"%"
 document.getElementById('koa').style.fontSize=hFont+"%"
 document.f1.hf.value=hFont+"%"
}
function chtFont(chge) {
 if (document.f1.x5[0].checked) chge=chge*5
 htFont+=chge
 if (htFont<25) htFont=25
 document.getElementById('head').style.fontSize=htFont+"%"
 document.f1.htf.value=htFont+"%"
}
function ccFont(chge) {
 if (document.f1.x5[0].checked) chge=chge*5
 cFont+=chge
 if (cFont<25) cFont=25
 document.getElementById('cn').style.fontSize=cFont+"%"
 document.f1.cf.value=cFont+"%"
}
function cwWidth(chge) {
 if (document.f1.x5[0].checked) chge=chge*5
 cWidth+=chge
 if (cWidth<35) cWidth=35
 if (cWidth>90) cWidth=90
 document.getElementById('wb').style.width=cWidth+"%"
 chge=100-cWidth-rhs
 document.getElementById('lb').style.width=chge+"%"
 document.f1.cw.value=cWidth+"%"
}
function eMail(nb) {
df=document.f1;page="";body="";
if (nb==1) {
 page=""
 for (ii=1; ii<27; ii++) {page+=ii+":"+pn[ii-1]+"  "}
 body="Add any notes or additional changes wanted above this line. Leave all text below unchanged."
 +"\n\nAttach one document per page required in the same order as your page titles (ie home page first) and also attach your logo graphic (if any)."
 +"\n\nQuotes are based on work required, changed at £15 (UK) per 20 minute. A simple 6 page site with your content supplied with 6 word documents (one per page) is normally £30."
 +"\n\nTemplate:"+df.temp.value+" Heading Text: #"+df.hbtext.value+" Heading Background: #"+df.hbback.value
 +" Navigation Background:"+df.nbback.value
 +"\nTitle Font:"+df.htf.value+"  Heading Font:"+df.hf.value
 +"\n\nLogo:"+df.logo.value
 +"\n\nPage Headings:"+page 
 +"\n\nContent Text:"+df.cntext.value+" & Content Background:"+df.cnback.value
 +"\nContent Width:"+df.cw.value+" Content Font:"+df.cf.value
 sub='Web Design    off the shelf - Request for a no Obligation Quote.'
}
if (nb==2) {body="";sub="Image Enquiry"}
if (nb==3) {body="";sub="General Enquiry"}  
 address='me9@privacy.netweb-design-ots.co.uk?subject='+sub
 +'&attachment="'+df.logo.value+'"&body='+escape(body)
 address = address.split("me9@privacy.net")
 address = address.join("@")
 window.open ('mailto:peter'+address)
}
//--->