 /* CAPTION FORM SCRIPT */
/* Written by JB 20/10/2000 */

function CaptionForm(PhotoFile,HTMLFile,Caption){
with (document){
open();
writeln('<HTML><HEAD>');
writeln("<LINK REL=StyleSheet HREF='style.css' TITLE='Normal' TYPE='text/css'>");
writeln('<TITLE>Photo Caption Addition</TITLE>');
writeln("</HEAD><BODY BGCOLOR='#FFFFFF'>");
writeln("<H2>Photo Caption Addition</H2>");
writeln("<TABLE><TR>");
writeln("<TD><IMG SRC='images/" + PhotoFile + ".jpg'></TD>");
writeln("<TD VALIGN='top'>" + Caption + "</TD></TABLE>");
writeln("<FORM METHOD='POST' ACTION='/cgi-bin/formmail'>");
writeln("<INPUT TYPE=HIDDEN NAME='recipient' VALUE='railcaption@broadgauge.org.uk'>");
writeln("<INPUT TYPE=HIDDEN NAME='subject' VALUE='Photo Caption (" + HTMLFile + ".html - " + PhotoFile + ".jpg)'>");
writeln("<INPUT TYPE=HIDDEN NAME='email' VALUE='railcaption@broadgauge.org.uk'>");
writeln("<INPUT TYPE=HIDDEN NAME='realname' VALUE='Web Response'>");
writeln("<INPUT TYPE=HIDDEN NAME='redirect' VALUE='http://www.jsbusiness.clara.net/railway/" + HTMLFile + ".html#" + PhotoFile + "jpg)'>");
writeln("<INPUT TYPE=HIDDEN NAME='required' VALUE='Name,EMail,Caption'>");
writeln("<INPUT TYPE=HIDDEN NAME='sort' VALUE='order:Name,EMail,Caption'>");
writeln("<TABLE>");
writeln("<TR><TD>Name:<TD><input type='text' size='30' name='Name'></TR>");
writeln("<TR><TD>E-Mail:<TD><input type='text' size='30' name='EMail'></TR>");
writeln("<TR><TD VALIGN='top'>Caption:<TD><TEXTAREA ROWS=10 COLS=50 NAME='Caption'></TEXTAREA></TR>");
writeln("</TABLE>");
writeln("Press send button to send caption. You will be automatically returned to the previous page.<br>");
writeln("<input type='submit' value='Send'>");
writeln("<input type='reset' value='Reset'>");
writeln("</form>");
writeln("</BODY></HTML>");
}}

/* END OF CAPTION FORM SCRIPT */

//DO NOT ALTER THIS SECTION - IT IS GENERATED BY THE SYSTEM
function formHandler1(){
var URL = document.form1.site1.options[document.form1.site1.selectedIndex].value;
window.location.href = URL;
}
function SiteMenu1(){
document.write('<form name="form1">');
document.write('<select name="site1" size=1 onChange="javascript:formHandler1()">');
document.write('<option value="">Go to....');
document.write('<option value="../bgs/index.html">About The BGS');
document.write('<option value="../events/index.html">Events');
document.write('<option value="../general/index.html">General Pages');
document.write('<option value="../history/index.html">History');
document.write('<option value="../models/index.html">Models and Products');
document.write('<option value="../publications/index.html">Publications');
document.write('<option value="../today/index.html">Today');
document.write('</select>');
document.write('</form>');
}
function formHandler2(){
var URL = document.form2.site2.options[document.form2.site2.selectedIndex].value;
window.location.href = URL;
}
function SiteMenu2(){
document.write('<form name="form2">');
document.write('<select name="site2" size=1 onChange="javascript:formHandler2()">');
document.write('<option value="">Go to....');
document.write('<option value="../bgs/index.html">About The BGS');
document.write('<option value="../events/index.html">Events');
document.write('<option value="../general/index.html">General Pages');
document.write('<option value="../history/index.html">History');
document.write('<option value="../models/index.html">Models and Products');
document.write('<option value="../publications/index.html">Publications');
document.write('<option value="../today/index.html">Today');
document.write('</select>');
document.write('</form>');
}
//END OF SECTION GENERATED BY SYSTEM
