// StartupK has added id= to all name= form inputs
// afterwards added button for EasyLinks

server = "robshelp.com";
thisjs="StartupK.js";	// Check for this in BuilderX.cgi and FreeForm.cgi GOSUB fields
			// the js file always needs to start with "Startup"
thishref="Startup.htm" // change from Startup.htm when developing revisions - also in Builder and FreeForm cgi's
byid = (document.getElementById) ? "byid" : ""; // used later as is!
docall = (document.all) ? "docall" : "";  if (window.opera) docall = ""; // used later as is!
if (self != top) {
	alert("Because FreeForm will not function properly within a frameset, FreeForm is being loaded into the full browser window");
	top.location.href=thishref;
}
defaultStatus = "Leave this window open while using FreeForm";
WindowLoadTest=isloaded=isclicked=0;
justpath=window.location.href.substring(0,window.location.href.lastIndexOf("/")+1);
if (justpath.indexOf("?") != -1) {
	justpath = justpath.substring(0,justpath.indexOf("?"));	
	justpath = justpath.substring(0,justpath.lastIndexOf("/")+1);
}
function hasclicked() {
	if (isclicked) return 1;
	else {isclicked=1; setTimeout("isclicked=0",2000);}
}
function windowfailed() {alert('It appears that a previous effort to open a new window failed.  If that persists you MAY have one or more pop-up blockers on your computer that are preventing new windows (pop-ups) from being opened.  You should be able to fix that by configuring the blocker(s) to allow pop-ups on ' + server + '. Please see the Computer Requirements section of the Startup Page for more instructions. Pop-ups are not used for advertising on the RobsHelp or EAPH.com sites!');}
function newwindow() {
	if (isloaded) {
		if (hasclicked()) return;
		if (WindowLoadTest==1) windowfailed();
		document.cookie = "test" + "=" + "testing";
		WindowLoadTest=1;
		document.THEFORM.action=justpath+"NewWindowTest.cgi";
		document.THEFORM.GOSUB.value="PREVIEW";
		thefilename = justpath + "NewWindowTransit.htm" + "?" + "THEFORM";
		thetargetname="newwindowtest";
		theparams="toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
		if (docall || byid) theparams += ",top=10,left=10";
		anewwindowopener();
	}
	else reloadit();
}
anewwindow=thefilename=thetargetname=theparams="";
function anewwindowopener() {
	anewwindow=window.open(thefilename,thetargetname,theparams);
	if (anewwindow.opener == null) anewwindow.opener = self;
	if (window.focus) anewwindow.focus();
}
function reloadit() {
	if (confirm('WARNING! This operation was initiated before the page was fully loaded and also caused the page to stop loading.  This may result in data loss that can only be recovered by reloading the page. Choose OK to reload the page now or Cancel to abort.')) window.location.reload(true);
}
function makefullwin(wn) {
	if (window.screen && navigator.userAgent.indexOf("AOL") < 0) {
		if (window.screen.availWidth && window.screen.availHeight) {
			bwin[wn].moveTo(1,1);  // left,top	IE needs before
			bwin[wn].resizeTo(bwin[wn].screen.availWidth-2,bwin[wn].screen.availHeight-2);
			bwin[wn].moveTo(1,1);  // left,top	FF needs after
		}
	}
}
function pscroll(anchorName) {
	if (document.getElementsByTagName) {
		var allLinks = self.document.getElementsByTagName("a");
		var dLink = null, destx = 0, desty = 0;
		for (var i=0;i<allLinks.length;i++) {
			if (allLinks[i].name && (allLinks[i].name == anchorName)) {
				dLink = allLinks[i];
				destx = dLink.offsetLeft; 
				desty = dLink.offsetTop;
				break;
			}
		}
		if (dLink) {
			while (dLink.offsetParent && dLink.offsetParent != document.body) {
				dLink = dLink.offsetParent;
				destx += dLink.offsetLeft;
				desty += dLink.offsetTop;
			}
		}
		var shere = 0;
		while (shere < desty) {
			self.scrollTo(destx,shere);
			shere += (desty < 200) ? 10 : ((desty < 500) ? 20 : 30);
		}
		self.scrollTo(destx,desty);
	}
	else document.location.hash = anchorName;
}
function getaCookie(wn,Name) {
	var offset=end=search="";
	var search = Name + "="
	if (bwin[wn].document.cookie.length > 0) {
		offset = bwin[wn].document.cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			end = bwin[wn].document.cookie.indexOf(";", offset);
			if (end == -1) end = bwin[wn].document.cookie.length;
			return unescape(bwin[wn].document.cookie.substring(offset, end));
		}
		else return "";
	}
	else return "";
}
function replace(string,text,by) {
	// Replaces text with by in string
	var strLength = string.length, txtLength = text.length;
	if ((strLength == 0) || (txtLength == 0)) return string;
	var pos = string.indexOf(text);
	if ((!pos) && (text != string.substring(0,txtLength))) return string;
	if (pos == -1) return string;
	var newstr = string.substring(0,pos) + by;
	if (pos+txtLength < strLength) newstr += replace(string.substring(pos+txtLength,strLength),text,by);
	return newstr;
}
showimg="";
function showpic(obj) {
	if (hasclicked()) return;
	while (obj.value.substring(0,1) == " ") {obj.value = obj.value.substring(1,obj.value.length);}
	showimg = obj.value;
	while (obj.value.substring(obj.value.length-1) == " ") {obj.value = obj.value.substring(0,obj.value.length-1);}
	showimg = obj.value;
	if (showimg.toLowerCase() == 'http://') showimg = "";
	if (showimg) {
		if (showimg.substring(0,7).toLowerCase() != 'http://' && showimg.substring(0,6).toLowerCase() != 'ftp://') {
			showimg = 'http://' + showimg;
			obj.value = showimg;
		}
		else if (showimg.substring(0,14).toLowerCase() == 'http://http://') {
			showimg = showimg.substring(7,showimg.length);
			obj.value = showimg;
		}
	}
	if (!showimg) showimg = "n.gif";
	document.images['SHOWHERE'].src = "n.gif";
	document.images['SHOWHERE'].src = showimg;
	getsize();
}
sizer = new Image();
function getsize(no,imgadr,formadr) {
	sizer.onload=setsize;
	sizer.src = showimg;
}
function setsize() {
	sizer.onload="";
	var natwidth = (sizer.width > 1) ? sizer.width : 96;
	var natheight = (sizer.height > 1) ? sizer.height : 96;
	document.images['SHOWHERE'].height = (natheight > natwidth) ? 96 : 96*(natheight/natwidth);
	document.images['SHOWHERE'].width = (natheight <= natwidth) ? 96 : 96*(natwidth/natheight);
}
function testpic(obj) {
	showimg = fixurl(obj.value,obj.value);
	obj.value = showimg;
	if (!showimg) {
		alert('What you entered does not appear to be a valid or complete URL');
		return;
	}
	if (hasclicked()) return;
	if (WindowLoadTest==1) windowfailed();
	WindowLoadTest=1;
	document.PICSHOW.action=justpath+"ImageTestA.cgi";
	document.PICSHOW.GOSUB.value="PREVIEW";
	thefilename = justpath + "NewWindowTransit.htm" + "?" + "PICSHOW";
	thetargetname="newwindowtest";
	theparams="toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
	if (docall || byid) theparams += ",top=10,left=10";
	anewwindowopener();
}
function fixurl(str,u) {
	if (u.substring(0,1) == "#") return u;
	else {
		u = unescape(u);
		u = rmtl(u);
		// remove http:// or ftp:// so can encode
		if (u.toLowerCase().indexOf("http://http://") > -1) u = u.substring(u.indexOf("http://")+14);
		else if (u.toLowerCase().indexOf("http://ftp://") > -1) u = u.substring(u.indexOf("http://")+13);
		else if (u.substring(0,8).toLowerCase() == 'https://') u = u.substring(u.indexOf("https://")+8);
		else if (u.substring(0,7).toLowerCase() == 'http://') u = u.substring(u.indexOf("http://")+7);
		else if (u.substring(0,6).toLowerCase() == 'ftp://') u = u.substring(u.indexOf("ftp://")+6);
		u = rmtl(u);
		u = replace(u,'\\',"/");
		u = escape(u);
		if (u.indexOf('%2F') > -1) u = replace(u,'%2F',"/");
		if (u.indexOf('%2E') > -1) u = replace(u,'%2E',".");
		if (u.indexOf('%3F') > -1) u = replace(u,'%3F',"?");
		if (u.indexOf('%26') > -1) u = replace(u,'%26',"&");
		if (u.indexOf('%3D') > -1) u = replace(u,'%3D',"=");
		if (u.indexOf('%7E') > -1) u = replace(u,'%7E',"~");
		if (u.indexOf('%3A') > -1) u = replace(u,'%3A',":");
		if (u.indexOf('%2D') > -1) u = replace(u,'%2D',"-");
		if (u) {
			if (str.toLowerCase().indexOf("ftp://") > -1) u = "ftp://" + u;
			else if (str.toLowerCase().indexOf("http://") > -1) u = "http://" + u;
			else if (str.toLowerCase().indexOf("https://") > -1) u = "https://" + u;
			else u = "http://" + u;
		}
		return u;	// or empty string
	}
}
function rmqahtml(s,tl) {
	if (s.indexOf("'") > -1) s = replace(s,"'","");
	if (s.indexOf('"') > -1) s = replace(s,'"',"");
	if (s.indexOf('<') > -1) s = replace(s,'<',"");
	if (s.indexOf('>') > -1) s = replace(s,'>',"");
	if (tl) s = rmtl(s);
	return s;
}
function rmtl(s) {
	while (''+ s.charAt(s.length-1)==' ') s=s.substring(0,s.length-1);
	while (''+ s.charAt(0) == ' ') s = s.substring(1);
	return s;
}
function tchk(obj) {
	obj.value = replace(obj.value,"*","");
	obj.value = replace(obj.value,'"',"");
	obj.value = replace(obj.value,'<',"");
	obj.value = replace(obj.value,'>',"");
}
function gwc(obj) {
	obj.value = ino(obj.value);
	if (obj.value > 100) obj.value=100;
}
function ino(dec,perc) {
	dec = replace(dec,' ',"");
	if (perc && dec.indexOf('%') > -1) {
		if (parseInt("0" + dec,10) == 0) dec="";
		else dec = parseInt(dec);
		if (dec) dec += "%";
	}
	else {
		if (parseInt("0" + dec,10) == 0) dec="";
		else dec = parseInt(dec);
	}
	return dec;  // or empty value
}
function rmq(s,tl) {
	s = replace(s,'"',"");
	if (tl) s = rmtl(s);
	return s;
}
validCchars = '0123456789ABCDEF';
validCnames =',aliceblue,antiquewhite,aqua,aquamarine,azure,beige,bisque,black,blanchedalmond,blue,blueviolet,brown,burlywood,cadetblue,chartreuse,chocolate,coral,cornflowerblue,cornsilk,crimson,cyan,darkblue,darkcyan,darkgoldenrod,darkgray,darkgreen,darkkhaki,darkmagenta,darkolivegreen,darkorange,darkorchid,darkred,darksalmon,darkseagreen,darkslateblue,darkslategray,darkturquoise,darkviolet,deeppink,deepskyblue,dimgray,dodgerblue,firebrick,floralwhite,forestgreen,fuchsia,gainsboro,ghostwhite,gold,goldenrod,gray,green,greenyellow,honeydew,hotpink,indianred,indigo,ivory,khaki,lavender,lavenderblush,lawngreen,lemonchiffon,lightblue,lightcoral,lightcyan,lightgoldenrodyellow,lightgreen,lightgrey,lightpink,lightsalmon,lightseagreen,lightskyblue,lightslategray,lightsteelblue,lightyellow,lime,limegreen,linen,magenta,maroon,mediumaquamarine,mediumblue,mediumorchid,mediumpurple,mediumseagreen,mediumslateblue,mediumspringgreen,mediumturquoise,mediumvioletred,midnightblue,mintcream,mistyrose,moccasin,navajowhite,navy,oldlace,olive,olivedrab,orange,orangered,orchid,palegoldenrod,palegreen,paleturquoise,palevioletred,papayawhip,peachpuff,peru,pink,plum,powderblue,purple,red,rosybrown,royalblue,saddlebrown,salmon,sandybrown,seagreen,seashell,sienna,silver,skyblue,slateblue,slategray,snow,springgreen,steelblue,tan,teal,thistle,tomato,turquoise,violet,wheat,white,whitesmoke,yellow,yellowgreen,';
chart = ',#000000,#FF0000,#FF0030,#FF3400,#FF0068,#FF3430,#FF6800,#FF0098,#FF3468,#FF6830,#FF9800,#FF00D0,#FF3498,#FF6868,#FF9830,#FF9868,#FF9898,#D06868,#D00000,#D00030,#D03400,#D00068,#D03430,#D06800,#D00098,#D03468,#D06830,#980000,#980030,#983400,#980068,#983430,#680000,#680030,#683400,#300000,#303430,#FFFF00,#FFFF30,#FFFF68,#FFFF98,#FFFFD0,#FFCC30,#D0FF30,#FFCC68,#D0FF68,#FFCC98,#D0FF98,#D0CC00,#D0CC30,#FFCC00,#D0CC68,#D09800,#986800,#98FF68,#D0CC98,#D0FFD0,#D09830,#98CC30,#D09868,#98CC68,#989800,#989830,#989868,#98CC98,#986830,#689830,#686800,#686830,#689868,#306830,#303400,#686868,#00FF00,#30CC00,#00CC30,#68FF00,#30FF30,#00FF68,#98FF00,#68FF30,#30FF68,#00FF98,#D0FF00,#98FF30,#68FF68,#30FF98,#68FF98,#98FF98,#68CC68,#00CC00,#30CC00,#00CC30,#68CC00,#30CC30,#00CC68,#98CC00,#68CC30,#30CC68,#009800,#309800,#009830,#689800,#309830,#006800,#306800,#006830,#003400,#989898,#00FFFF,#30FFFF,#68FFFF,#98FFFF,#D0FFFF,#30FFD0,#30CCFF,#68FFD0,#68CCFF,#98FFD0,#98CCFF,#00CCD0,#30CCD0,#00FFD0,#68CCD0,#00CC98,#009868,#6898FF,#98CCD0,#9868FF,#30CC98,#3098D0,#68CC98,#6898D0,#009898,#309898,#689898,#9898D0,#309868,#306898,#006868,#306868,#686898,#303468,#003430,#C0C0C0,#0000FF,#0034D0,#3000D0,#0068FF,#3034FF,#6800FF,#0098FF,#3068FF,#6834FF,#9800FF,#00CCFF,#3098FF,#6868FF,#9834FF,#9868FF,#9898FF,#6868D0,#0000D0,#0034D0,#3000D0,#0068D0,#3034D0,#6800D0,#0098D0,#3068D0,#6834D0,#000098,#003498,#300098,#006898,#303498,#000068,#003468,#300068,#000030,#FFFFFF,#FF00FF,#FF34FF,#FF68FF,#FF98FF,#FFCCFF,#D034FF,#FF34D0,#D068FF,#FF68D0,#D098FF,#FF98D0,#D000D0,#D034D0,#D000FF,#D068D0,#FF6898,#986898,#680098,#D098D0,#FFCCD0,#9834D0,#D03498,#9868D0,#D06898,#980098,#983498,#9800D0,#D09898,#683498,#983468,#680068,#683468,#986868,#683430,#300030,';
function colorvalid(clr) {
	if (clr.charAt(0) != "#") clr = "#" + clr;
	if (clr.length != 7 && clr.length != 4) return false;
	for (var i = 1; i < clr.length; i++) if (validCchars.indexOf(clr.charAt(i).toUpperCase()) < 0) return false;
	return true;
}
IPOdate = new Date();
IPOdate.setTime(Date.parse("Aug 9, 1995"))
NOWdate = new Date();
cacheavoid = NOWdate - IPOdate;
function imgpick(service,formn,fld) {
	if (hasclicked()) return;
	imgurlfld = fld; // used when returning from thecgi redraw function
	formname = formn; // used when returning from thecgi redraw function
	document.THEFORM.IMAGENO.value = document[formname][imgurlfld].value;
	if (service=="eaph") {
		eaphuser=document.THEFORM.EAPHUSER.value;
		theuser=eaphuser;
		thecgi="geteaphdemo.cgi";	
	}
	if (theuser.substring(theuser.lastIndexOf(".")) == ".htm") {
		getservice=justpath + "cache/" + theuser;
		getservice += "?" + thecgi;
		getservice += "#SUBMITTO";
	}
	else {
		NOWdate = new Date();
		cacheavoid = NOWdate - IPOdate;
		getservice=justpath+thecgi+"?"+cacheavoid;
	}
	thefilename=getservice;
	thetargetname="picker";
	theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
	if (docall || byid) theparams += ",top=10,left=10";
	anewwindowopener();
}
function redraw() { 
	theobj = document[formname][imgurlfld];
	theobj.value = document.THEFORM.IMAGENO.value;
	showpic(document.PICSHOW.PICURL);
}
needToConfirm=0;
function confirmExit() {
	if (needToConfirm) return "Leaving or reloading the Startup Page while using the FreeForm Builder will cause errors.  If you also have the Builder window open, press Cancel to avoid problems.";
}
builderwin=0;
bwin = new Object;
function loadup(command) {
	if (isloaded) {
		if (hasclicked()) return;
		if (WindowLoadTest==1) {
			builderwin=0;
			windowfailed();
		}
		WindowLoadTest=1;
		if (command == "contribute") {
			thefilename = justpath + "PleaseContribute.cgi?" + cacheavoid;
			thetargetname = "contribute";
			theparams="toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
			if (docall || byid) theparams += ",top=10,left=10";
			anewwindowopener();
		}
		else if (command == "register" || command == "reminder") {
			document.THEFORM.GOSUB.value="REGISTER";
			document.THEFORM.action = justpath + "RegistrationUB.cgi" + "?" + "startup";
			thefilename = justpath + "NewWindowTransit.htm" + "?" + "THEFORM";
			thetargetname="startupregister";
			theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
			if (docall || byid) theparams += ",top=10,left=10";
			anewwindowopener();
		}
		else if (command == "passchange") {
			document.THEFORM.GOSUB.value="CPASS";
			document.THEFORM.action = justpath + "PasschangeU.cgi" + "?" + "startup";
			thefilename = justpath + "NewWindowTransit.htm" + "?" + "THEFORM";
			thetargetname="startupregister";
			theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
			if (docall || byid) theparams += ",top=10,left=10";
			anewwindowopener();
		}
		else if (command == "BuilderB") {
			if (builderwin) {
				if (!confirm('The Builder may already be open in another window. If so, it may be best to switch to it instead of opening another Builder. Click "OK" to proceed with loading a new Builder window, click "Cancel" to abort:')) {
					WindowLoadTest=0;
					return;
				}
			}
			needToConfirm=1;
			window.onbeforeunload = confirmExit;
			NOWdate = new Date();
			cacheavoid = NOWdate - IPOdate;
			builderwin = cacheavoid;
			document.THEFORM.GOSUB.value = thisjs;
			document.THEFORM.EAPHUSER.value="";
			document.THEFORM.action = justpath + "BuilderB.cgi" + "?" + "startup&" + cacheavoid + "&" + byid + docall;
			thefilename = justpath + "NewWindowTransit.htm" + "?" + "THEFORM";
			thetargetname = "b" + cacheavoid;
			theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
			anewwindow = window.open(thefilename,thetargetname,theparams);
			// direct assignment to object fails in IE4.0
			bwin[thetargetname] = anewwindow;
			if (bwin[thetargetname].opener == null) bwin[thetargetname].opener = self;
			if (window.focus) bwin[thetargetname].focus();
		}
		else if (command == "builder") {
			if (builderwin) {
				if (!confirm('The Builder may already be open in another window. If so, it may be best to switch to it instead of opening another Builder. Click "OK" to proceed with loading a new Builder window, click "Cancel" to abort:')) {
				WindowLoadTest=0;
				return;
				}
			}
			needToConfirm=1;
			window.onbeforeunload = confirmExit;
			NOWdate = new Date();
			cacheavoid = NOWdate - IPOdate;
			builderwin = cacheavoid;
			document.THEFORM.GOSUB.value="STARTUP";
			document.THEFORM.EAPHUSER.value="";
			document.THEFORM.action = justpath + "FreeForm.cgi" + "?" + "startup&" + cacheavoid + "&" + byid + docall;
			thefilename = justpath + "NewWindowTransit.htm" + "?" + "THEFORM";
			thetargetname = "b" + cacheavoid;
			theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
			anewwindowopener();
		}
	}
	else reloadit();
}
subdata = new Object;		// reserved for GXCODE input areas
numinputs = 0;			// reserved for GXCODE input areas
inputtypes = new Array();	// reserved for GXCODE input areas
tca = new Array();	// used by docopypaste.htm for text input areas
for (i=0;i<=21;i++) {tca[i]="";}	// used by docopypaste.htm
pca = new Array();	// used by docopypaste.htm for picture input areas
for (i=0;i<=16;i++) {pca[i]="";}	// used by docopypaste.htm
fsizer = new Image();
var tw;
pno=dims=pimgadr=pformadr=inptpe=turl="";
function gtz(wn,n,tpe) {
	if (window.focus) bwin[wn].focus();
	if (('' + pno).indexOf("BGIMAGE") > -1) {
		pformadr = pno;  // when returning from geteaph,getaol,getearth,other
		pno = "";
		if (bwin[wn].byid) sbg(wn,pformadr);
	}
	else {
		pno=n;
		pimgadr = (tpe == "IMAGE2") ? "S_" + n + "_IMAGE2" : "S_" + n + "_" + tpe;
		pformadr = (tpe == "IMAGE2") ? "S_" + n + "_IMAGE_IMAGE2" : pimgadr + "_IMAGE";
		var bwdtf=bwin[wn].document.THEFORM;
		turl=fixurl(bwdtf[pformadr].value,bwdtf[pformadr].value);
		bwdtf[pformadr].value=turl;
		bwdtf[((tpe == "IMAGE2") ? "S_" + n + "_IMAGE_IMAGE2W" : pimgadr + "_IMAGEW")].value = "";
		bwdtf[((tpe == "IMAGE2") ? "S_" + n + "_IMAGE_IMAGE2H" : pimgadr + "_IMAGEH")].value = "";
		if (document.images) {
			bwin[wn].document.images[pimgadr].src="n.gif";
			if (turl && turl.toLowerCase() != "http://" && turl.toLowerCase() != "ftp://") {
				bwin[wn].document.images[pimgadr].src=bwdtf[pformadr].value;
				if (bwin[wn].docall || bwin[wn].byid) {
					tw = wn;
					fsizer.onload=stz;
					fsizer.src=bwdtf[pformadr].value;
				}
			}
		}
	}
}
function stz() {
	fsizer.onload="";
	var hs = (fsizer.width > 1 && fsizer.height > 1) ? 1 : 0;
	if (pimgadr.indexOf('IMAGE2') > -1) {
		bwin[tw].document.THEFORM[pimgadr.substring(0,pimgadr.length-1) + "_IMAGE2W"].value = (hs) ? fsizer.width : "";
		bwin[tw].document.THEFORM[pimgadr.substring(0,pimgadr.length-1) + "_IMAGE2H"].value = (hs) ? fsizer.height : "";
	}
	else {
		bwin[tw].document.THEFORM[pimgadr + "_IMAGEW"].value = (hs) ? fsizer.width : "";
		bwin[tw].document.THEFORM[pimgadr + "_IMAGEH"].value = (hs) ? fsizer.height : "";
	}
	var showwidth = (hs) ? fsizer.width : 92;
	var showheight = (hs) ? fsizer.height : 92;
	bwin[tw].document.images[pimgadr].height = (showheight > showwidth) ? 92 : 92*(showheight/showwidth);
	bwin[tw].document.images[pimgadr].width = (showheight <= showwidth) ? 92 : 92*(showwidth/showheight);
	bwin[tw].document.images[pimgadr].src=bwin[tw].document.THEFORM[pformadr].value;
}
vclr = "";
function swc(wn,inp) {
	var bwdtf = bwin[wn].document.THEFORM;
	bwdtf[inp+"CODE"].value = rmqahtml(bwdtf[inp+"CODE"].value,1);
	if (chart.toLowerCase().indexOf(',' + bwdtf[inp+"CODE"].value.toLowerCase() + ',') > -1) {
		if (bwin[wn].byid) bwin[wn].document.getElementById(inp+"div").style.backgroundColor = bwdtf[inp+"CODE"].value;
		else bwin[wn].document.images[inp+"IMG"].src="c/" + bwdtf[inp+"CODE"].value.toUpperCase().substring(1) + ".gif";
	}
	else {
		if (!bwin[wn].byid) bwdtf[inp+"IMG"].src="c/custom.gif";
		vclr = bwdtf[inp+"CODE"].value;
		if (vclr.indexOf(' ') > -1) vclr = replace(vclr,' ',"");
		if (validCnames.indexOf(',' + vclr.toLowerCase() + ',') > -1) {
			bwdtf[inp+"CODE"].value = vclr;
			if (bwin[wn].byid) bwin[wn].document.getElementById(inp+"div").style.backgroundColor=vclr;
		}
		else if (colorvalid(vclr)) {
			if (vclr.charAt(0) != "#") vclr = "#" + vclr;
			if (vclr.length==4) vclr = '#' + vclr.substring(1,2) + vclr.substring(1,2) + vclr.substring(2,3) + vclr.substring(2,3) + vclr.substring(3,4) + vclr.substring(3,4);
			bwdtf[inp+"CODE"].value = vclr;
			if (bwin[wn].byid) bwin[wn].document.getElementById(inp+"div").style.backgroundColor=vclr.toUpperCase();
			else if (chart.toLowerCase().indexOf(',' + bwdtf[inp+"CODE"].value.toLowerCase() + ',') > -1) bwdtf[inp+"IMG"].src="c/" + bwdtf[inp+"CODE"].value.toUpperCase().substring(1) + ".gif";
		}
		else {
			bwdtf[inp+"CODE"].value = "";
			if (bwin[wn].byid) bwin[wn].document.getElementById(inp+"div").style.backgroundColor="";
			else bwin[wn].document.images[inp+"IMG"].src="c/nothing.gif";
		}
	}
}
function sbg(wn,fld) {
	var bwdtf = bwin[wn].document.THEFORM;
	turl=bwdtf[fld].value;
	turl=fixurl(turl,turl);
	bwdtf[fld].value = turl;
	if (bwin[wn].byid) bwin[wn].document.getElementById(fld + "SHOW").style.backgroundImage = (turl) ? "url(" + turl + ")" : "url(n.gif)";
}
function clearit(wn,showempties) {
	var bwdtf = bwin[wn].document.THEFORM;
	if (bwin[wn].isloaded) {
		bwin[wn].hassubmitted=1;
		bwdtf.action=bwin[wn].justpath+"BuilderB.cgi" + "?" + escape(bwdtf.OTHERUSER.value) + "&" + escape(bwdtf.EAPHUSER.value) + "&" + escape(bwdtf.AOLUSER.value) + "&" + escape(bwdtf.EARTHUSER.value) + "&" + escape(bwdtf.FreeFormNumber.value) + "&" + escape(bwdtf.PreviewNumber.value) + "&" + escape(bwdtf.SEMAIL.value) + "&" + escape(bwdtf.REGTIME.value) + "&CLEAR";
		if (bwin[wn].byid) bwdtf.action += "&byid";
		if (bwin[wn].docall) bwdtf.action += "&docall";
		bwdtf.target="_self";
		bwdtf.GOSUB.value="CLEARIT" + showempties;
		bwdtf.submit();
	}
	else bwin[wn].reloadit();
}
function pke(wn,n) {
	if (bwin[wn].isloaded) {
		bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "epicsB.htm?" : "epicsA.htm?") + n;
		bwin[wn].thetargetname="emailpic";
		bwin[wn].theparams="toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function pkb(wn,thepage,thefieldname) {
	if (bwin[wn].isloaded) {
		if (thepage == "chms") bwin[wn].thefilename=bwin[wn].justpath + "christmasbackgroundsA2.htm?" + thefieldname;
		else if (thepage == "eas") bwin[wn].thefilename=bwin[wn].justpath + "easterbackgroundsA2.htm?" + thefieldname;
		else if (thepage == "val") bwin[wn].thefilename=bwin[wn].justpath + "valentinebackgroundsA2.htm?" + thefieldname;
		else if (thepage == "spk") bwin[wn].thefilename=bwin[wn].justpath + "sparkles1to40A2.htm?" + thefieldname;
		else bwin[wn].thefilename=bwin[wn].justpath + "tiles1to20A2.htm?" + thefieldname;
		bwin[wn].thetargetname="pickback";
		bwin[wn].theparams="toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function pkf(wn) {
	if (bwin[wn].isloaded) {
		bwin[wn].thefilename=bwin[wn].justpath + "choosecorefonts2.htm";
		bwin[wn].thetargetname="preview";
		bwin[wn].theparams="toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
cachedfiles="";
serveroffset=0;
function ipk(wn,service,inpfld,tpe,no) {
	if (bwin[wn].isloaded) {
		pno="";
		var bwdtf = bwin[wn].document.THEFORM;
		bwdtf.IMAGENO.value=inpfld;
		// dimensions throw an error for BGIMAGE so exclude
		if (inpfld.indexOf("BGIMAGE") > -1) {
			dims = 0;
			pno = inpfld;
		}
		else if ((no) && (document.images)) {
			pno=no;
			inptpe=tpe;
			pformadr=inpfld;
			dims = 1;
		}
		if (service=="aol") {
			bwin[wn].aoluser=bwdtf.AOLUSER.value;
			bwin[wn].theuser=bwin[wn].aoluser;
			bwin[wn].thecgi="getaolE.cgi";
		}
		else if (service=="earth") {
			bwin[wn].earthuser=bwdtf.EARTHUSER.value;
			bwin[wn].theuser=bwin[wn].earthuser;
			bwin[wn].thecgi="getearthE.cgi"
		}
		else if (service=="other") {
			bwin[wn].otheruser=bwdtf.OTHERUSER.value;
			bwin[wn].theuser=bwin[wn].otheruser;
			bwin[wn].thecgi="otherE.cgi"
		}
		else if (service=="eaph") {
			bwin[wn].eaphuser=bwdtf.EAPHUSER.value;
			bwin[wn].theuser=bwin[wn].eaphuser;
			bwin[wn].thecgi="geteaphJ.cgi";
		}
		if (bwin[wn].theuser.indexOf(".htm") > -1) {
			if (service == "eaph") {
				bwin[wn].getservice=bwin[wn].justpath + "ecache/" + bwin[wn].theuser;
				cachedfilenametime = bwin[wn].theuser.substring(bwin[wn].theuser.indexOf("--")+2,bwin[wn].theuser.lastIndexOf("."));
				NOWdate = new Date();
				if (((parseInt(cachedfilenametime) - serveroffset) + (60*60*24)) > parseInt(NOWdate.getTime()/1000)) {
					// bwin[wn].getservice += "#RESULTS";
				}
				else {
					bwin[wn].getservice=bwin[wn].justpath+bwin[wn].thecgi+ "?" + justpath + "&" + parseInt(NOWdate.getTime()/1000);
				}
			}
			else {
				bwin[wn].getservice=bwin[wn].justpath + "cache/" + bwin[wn].theuser;
				bwin[wn].getservice += "?" + bwin[wn].thecgi;
				// bwin[wn].getservice += "#SUBMITTO";
			}
		}
		else {
			if (service=="eaph") {
				NOWdate = new Date();
				bwin[wn].getservice=bwin[wn].justpath+bwin[wn].thecgi+ "?" + justpath + "&" + parseInt(NOWdate.getTime()/1000);
			}
			else {
				bwin[wn].getservice=bwin[wn].justpath+bwin[wn].thecgi+"?"+bwin[wn].cacheavoid;
				if (docall) bwin[wn].getservice += "documentall";
			}
		}
		bwin[wn].thefilename=bwin[wn].getservice;
		bwin[wn].thetargetname="getimage";
		bwin[wn].theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function gpc(wn,no) {
	if (bwin[wn].isloaded) {
		NOWdate = new Date();
		bwin[wn].thefilename=bwin[wn].justpath + "getalbumB.cgi" + "?" + no + "&" + parseInt(NOWdate.getTime());
		bwin[wn].thetargetname="getalbum";
		bwin[wn].theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function gel(wn,no) {
	if (bwin[wn].isloaded) {
		NOWdate = new Date();
		bwin[wn].thefilename=bwin[wn].justpath + "geteasylinks.cgi" + "?" + no + "&" + parseInt(NOWdate.getTime());
		bwin[wn].thetargetname="geteasy";
		bwin[wn].theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function getPlugin(wn,n) {
	if (bwin[wn].isloaded) {
		bwin[wn].thefilename=bwin[wn].justpath+"getPluginB.cgi?" + n;
		bwin[wn].thetargetname="getplugin";
		bwin[wn].theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function adj(wn,n,tpe) {
	if (bwin[wn].isloaded) {
		bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "adjustitB.htm?" : "adjustitA.htm?") + n + "&" + tpe;
		bwin[wn].thetargetname="adjustit";
		bwin[wn].theparams="toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function gac(wn,inp) {
	if (bwin[wn].isloaded) {
		if (inp.indexOf("_TITLE_") > -1 || inp.indexOf("_TEXT_") > -1 || inp.indexOf("_TERMS_") > -1) bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "c/getcolorsC.htm?" : "c/getcolors.htm?") + inp;
		if (inp=="T" || inp=="B") bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "c/getglobalcolorsC.htm?" : "c/getglobalcolorsB.htm?") + inp;
		if (inp=="L" || inp=="V") bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "c/getglobalcolorsC.htm?" : "c/getlinkcolorsB.htm?") + inp;
		bwin[wn].thetargetname="ColorPicker";
		bwin[wn].theparams="toolbar=yes,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height=330,width=630";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
var screenY, screenX, cursorX, cursorY, padAmtX, padAmtY, leftprop, topprop;
function hw(wn,url,evnt) {
	bwin[wn].theparams="toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height=240,width=540";
	if (window.screen) {
		if ((window.screen.availHeight && window.screen.availWidth) || (window.outerHeight && window.outerWidth)) {
			screenY = (bwin[wn].screen.availHeight) ? bwin[wn].screen.availHeight : bwin[wn].outerHeight;
			screenX = (bwin[wn].screen.availWidth) ? bwin[wn].screen.availWidth : bwin[wn].outerWidth;
			cursorX = evnt.screenX;
			cursorY = evnt.screenY;
			padAmtX = 10;
			padAmtY = 10;
			if((cursorY + 240 + padAmtY) > screenY) padAmtY = (-30) + (240 * -1);
			if((cursorX + 540 + padAmtX) > screenX) padAmtX = (-30) + (540 * -1);
			leftprop = (window.pageXOffset) ? (cursorX - window.pageXOffset + padAmtX) : cursorX + padAmtX;
			topprop = (window.pageYOffset) ? (cursorY - window.pageYOffset + padAmtY) : cursorY + padAmtY;
			if (topprop && leftprop) bwin[wn].theparams += ",left=" + leftprop + ",top=" + topprop;
		}
	}
	bwin[wn].thefilename=url;
	bwin[wn].thetargetname="helpwin";
	bwin[wn].anewwindowopener();
}
function rmk(wn,type,what,where,howmany) {
	if (bwin[wn].isloaded) {
		if (bwin[wn].candwin() && type) bwin[wn].mwin(bwin[wn].loadmsg());
		var bwdtf = bwin[wn].document.THEFORM;
		bwdtf.GOSUB.value="REMAKE";
		bwin[wn].thefilename = bwin[wn].justpath+"BuilderB.cgi"+"?"+type+"&"+what+"&"+where+"&"+howmany;
		if (bwin[wn].byid) bwin[wn].thefilename += "&byid";
		if (bwin[wn].docall) bwin[wn].thefilename += "&docall";
		bwin[wn].thefilename += '#S_'+where+'_CHOICES_HASH';
		bwdtf.action=bwin[wn].thefilename;
		bwdtf.target="_self";
		bwdtf.submit();
	}
	else bwin[wn].reloadit();
}
function gallerybuilder(wn,fld) {
	bwin[wn].getnames();
	thisinp = fld;
	if (byid) bwin[wn].thefilename="GalleryBuilderN.htm";
	else bwin[wn].thefilename="GalleryBuilderN.htm?" + fld;
	bwin[wn].thetargetname="";
	bwin[wn].theparams="toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
	bwin[wn].anewwindowopener()
}
thisinp="";
function btl(wn,inp) {
	if (bwin[wn].isloaded) {
		thisinp = inp;
		bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "BorderDesignerB.htm" : "BorderDesignerA.htm");
		bwin[wn].thetargetname="";
		bwin[wn].theparams="toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height=330,width=630";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function chc(wn,inp) {
	if (bwin[wn].isloaded) {
		bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "BorderBuilderColorsA.htm?" : "BorderBuilderColors.htm?") + inp;
		bwin[wn].thetargetname="colorstool";
		bwin[wn].theparams="toolbar=yes,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,height=330,width=630";
		if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
		else bwin[wn].anewwindowopener();
	}
	else bwin[wn].reloadit();
}
function dgn(wn,inp) {
	bwin[wn].thefilename = bwin[wn].justpath + ((bwin[wn].candwin()) ? "DiagnosticsA.cgi" : "Diagnostics.cgi") + "?getit&" + bwin[wn].document.THEFORM[inp].value;
	bwin[wn].thetargetname="diagnostics";
	bwin[wn].theparams="toolbar=yes,location=yes,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes,height=330,width=630";
	if (bwin[wn].candwin()) bwin[wn].dwin(bwin[wn].thefilename);
	else bwin[wn].anewwindowopener();
}
function help(url) {
	return '<a href="h2/' + url + '" target="hlp" onclick="return hw(this.href,event);" title="Help"><b>?</b></a>\n';
}
function makechoices(n,colstat,hascolumns) {
	var returnval = '<a name=S_' + n + '_CHOICES_HASH></a>\n'
	+ '<table width="99%" cellpadding=0 cellspacing=5 border=0 style="margin:3px">'
	+ '<tr><td width="13%" rowspan=2>'
	+ help("Insert.htm")
	+ '\nInsert Qty:'
	+ '<input name=Q_' + n + '_IQTY id=Q_' + n + '_IQTY type=text size=2 value=1 onChange="this.value=o.ino(this.value)" title="You may insert up to 10 of any Input Area type by entering a quantity here">'
	+ '</td><td>'
	+ "<input class=btn type=button value=Text onClick=\"rmk('add','TEXT',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=Title onClick=\"rmk('add','TITLE',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=Picture onClick=\"rmk('add','IMAGE',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=\"Thumbnail Link\" onClick=\"rmk('add','THUMBNAIL',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=Terms onClick=\"rmk('add','TERMS',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=\"Email Link\" onClick=\"rmk('add','EMAIL',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=\"Auctions Link\" onClick=\"rmk('add','AUCTIONS',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=\"Website Link\" onClick=\"rmk('add','WEBSITE',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=Code onClick=\"rmk('add','XCODE',\'" + n + "\')\">\n"
	+ "<input class=btn type=button value=Gallery onClick=\"rmk('add','GXCODE',\'" + n + "\')\">\n"
	+ '<span class=err></span>';
	if (hascolumns) {
		var cantable = help("TwoColumns.htm");
		if (colstat==0) cantable += '<input class=btn type=button value="Start Two Column Layout Here" onClick="rmk(\'add\',\'TTOP\',\'' + n + '\')">\n';
		else if (colstat==1) cantable += '<input class=btn type=button value="End Left Column, Start Right Column Here" onClick="rmk(\'add\',\'TMID\',\'' + n + '\')">\n';
		else if (colstat==2) cantable += '<input class=btn type=button value="End Two Column Layout Here" onClick="rmk(\'add\',\'TBOT\',\'' + n + '\')">\n';

		returnval += '</td></tr><tr><td class=tc>\n' + cantable;
	}
	
	return returnval + '</td></tr></table>';
}
hasabovebelow=0;
hastextbackground=0;
hasimagejoin=0;
hasimageclick=0;

function maketop(n,tpe,type,nm,ck,ftr) { // (type is upper case field name, tpe is lower case input type)
	var rt = "Remove this Input Area from the Builder, will reload Builder without this Input Area";
	return '&nbsp; ' + '<a href="javascript:// ' + rt + '" onclick="rmk(\'remove\',\'' + tpe + '\',\'' + n + '\')" title="' + rt + '">Remove</a>\n'
	+ '&nbsp; Name: ' + help("InputNames.htm")
	+ '<input type=text size=8 onchange="this.value=ano(this.value)" size=7 name=S_' + n + '_' + type + '_NAME id=S_' + n + '_' + type + '_NAME value="' + nm + '">'
	+ '&nbsp; <input name=S_' + n + '_' + type + '_IH id=S_' + n + '_' + type + '_IH type=checkbox'
	+ ((ck) ? ' checked' : '')
	+ ' onClick="hideshow(\'S_' + n + '_' + type + '_I\')"> ' + help("Hide.htm") + ' Collapse\n'
	+ ((ftr) ? '&nbsp; <a href="javascript:doprefs()">Preferences</a>\n' : '');
}
function makeleft(n) {	// was tpe,n,type,ck
	return '<div style="background-color:#EFEFEF; padding:5px; width:125px; margin:auto">'
	+ help("Preview.htm")
	+ '\n<input class=btn type=button value="Preview" onClick="mpv(\'' + n + '\')" title="Preview window - view presentation so far, save it, and get the HTML to use on eBay etc."><br>\n'
	+ help("QuickSave.htm")	
	+ '\n<input class=btn type=button value=" Quick\nSave" onClick="qsv()" title="Temporarily save ALL current Builder Input Areas and contents (opens a new window)"></div>\n';
}
function makeab(n,type,ab,bl,cs) {
	return ((hasabovebelow) ? '</td></tr><tr><td class=bwrwc>'
		+ 'Optional'
		+ '</td><td class=bw>'
		+ ' Display this Input Area '
		+ ' <input type=checkbox name=S_' + n + '_' + type + '_FA id=S_' + n + '_' + type + '_FA'
		+ ((ab) ? ' checked' : '') + ' onclick="canFA(this)"> '
 		+ help("DisplayAbove.htm")
		+ ' Above '
		+ '<input type=checkbox name=S_' + n + '_' + type + '_FB id=S_' + n + '_' + type + '_FB'
		+ ((bl) ? ' checked' : '') + ' onclick="canFB(this)"> '
		+ help("DisplayBelow.htm")
		+ ' Below FrameBuilder frames'
		: '');
}
function alignment(n,tpe,TA,def) {
	if (!TA) TA = def;
	return "<input name=S_" + n + "_" + tpe + "_TA id=S_" + n + "_" + tpe + "_TALeft type=radio value=left" + ((TA == "left") ? " checked" : "") + ">Left &nbsp;\n"
	+ "<input name=S_" + n + "_" + tpe + "_TA id=S_" + n + "_" + tpe + "_TAIndent type=radio value=indented" + ((TA == "indented") ? " checked" : "") + ">Indented &nbsp;\n"
	+ "<input name=S_" + n + "_" + tpe + "_TA id=S_" + n + "_" + tpe + "_TAMore type=radio value=indented_more" + ((TA == "indented_more") ? " checked" : "") + ">Indented&nbsp;More &nbsp;\n"
	+ "<input name=S_" + n + "_" + tpe + "_TA id=S_" + n + "_" + tpe + "_TACenter type=radio value=centered" + ((TA == "centered") ? " checked" : "") + ">Centered\n";
}
function makechooselinks(n,tpe,suffix) {
	return help("ChooseImage.htm")
	+ '<a href="javascript:ipk(\'earth\',\'' + 'S_' + n + '_' + tpe + '_' + suffix + '\',\'' + ((suffix=="IMAGE2") ? suffix : tpe) + '\',\'' + n + '\')" title="Choose an image from EARTHLINK webspace (opens a new window)">EarthLink</a>&nbsp;\n'
	+ '<a href="javascript:ipk(\'other\',\'' + 'S_' + n + '_' + tpe + '_' + suffix + '\',\'' + ((suffix=="IMAGE2") ? suffix : tpe) + '\',\'' + n + '\')" title="Choose an image from OTHER webspace (opens a new window)">Other</a>&nbsp;\n'
	+ '<a href="javascript:ipk(\'eaph\',\'' + 'S_' + n + '_' + tpe + '_' + suffix + '\',\'' + ((suffix=="IMAGE2") ? suffix : tpe) + '\',\'' + n + '\')" class=eaph title="Choose an image from EAPH webspace (opens a new window)">EAPH.com</a>&nbsp;\n';
}
function bstyles(n,tpe,BS) {
	return '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSSolid value=solid' + ((BS == 'solid') ? ' checked' : '') + '>Solid,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSDashed value=dashed' + ((BS == 'dashed') ? ' checked' : '') + '>Dashed,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSDotted value=dotted' + ((BS == 'dotted') ? ' checked' : '') + '>Dotted,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSDouble value=double' + ((BS == 'double') ? ' checked' : '') + '>Double,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSGroove value=groove' + ((BS == 'groove') ? ' checked' : '') + '>Groove,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSRidge value=ridge' + ((BS == 'ridge') ? ' checked' : '') + '>Ridge,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSInset value=inset' + ((BS == 'inset') ? ' checked' : '') + '>Inset,\n'
	+ '<input type=radio name=S_' + n + "_" + tpe + '_BS id=S_' + n + "_" + tpe + '_BSOutset value=outset' + ((BS == 'outset') ? ' checked' : '') + '>Outset\n';
}
function tcolor(n,tpe,TGCHECK,TCODE) {
	return '<input name=S_' + n + '_' + tpe + '_TGLOBAL id=S_' + n + '_' + tpe + '_TGLOBAL' + TGCHECK + ' type=checkbox>\n'
	+ help("UseGlobalTextColor.htm")
	+ 'Use Global Features Text Color, or <br>'
	+ ((byid) ? '<div class=cd style="background-color:' +  TCODE + '" id="S_' + n + '_' + tpe + '_Tdiv" onClick="o.gac(w,\'S_' + n + '_' + tpe + '_T\')"></div>'
	: '<a href="javascript:o.gac(w,\'S_' + n + '_' + tpe + '_T\')" title="Pick a color from a chart (opens a new window)"><img align=bottom border=0 height=24 name=S_' + n + '_' + tpe + '_TIMG src=n.gif width=24></a>')
	+ '<input type=text name=S_' + n + '_' + tpe + '_TCODE id=S_' + n + '_' + tpe + '_TCODE size=7 value="' + TCODE + '" maxLength=50 onChange="typein(\'S_' + n + '_' + tpe + '_T\',this)">\n'
	+ help("TextColor.htm")
	+ 'Text Color (click swatch to choose from chart)';
}
function sizebold(n,tpe,TSIZE,TBOLD) {
	if (!TSIZE) TSIZE = "3";
	return '<input name=S_' + n + '_' + tpe + '_TSIZE id=S_' + n + '_' + tpe + '_TSIZE2 type=radio value="-1"' + ((TSIZE == "-1") ? " checked" : "") + ">-1 &nbsp;\n"
	+ '<input name=S_' + n + '_' + tpe + '_TSIZE id=S_' + n + '_' + tpe + '_TSIZE3 type=radio value="3"' + ((TSIZE == "3") ? " checked" : "") + ">Normal &nbsp;\n"
	+ '<input name=S_' + n + '_' + tpe + '_TSIZE id=S_' + n + '_' + tpe + '_TSIZE4 type=radio value="+1"' + ((TSIZE == "+1") ? " checked" : "") + ">+1 &nbsp;\n"
	+ '<input name=S_' + n + '_' + tpe + '_TSIZE id=S_' + n + '_' + tpe + '_TSIZE5 type=radio value="+2"' + ((TSIZE == "+2") ? " checked" : "") + ">+2 &nbsp;\n"
	+ '<input name=S_' + n + '_' + tpe + '_TSIZE id=S_' + n + '_' + tpe + '_TSIZE6 type=radio value="+3"' + ((TSIZE == "+3") ? " checked" : "") + ">+3 &nbsp;\n"
	+ '<input name=S_' + n + '_' + tpe + '_TSIZE id=S_' + n + '_' + tpe + '_TSIZE7 type=radio value="+4"' + ((TSIZE == "+4") ? " checked" : "") + ">+4 &nbsp;\n"
	+ '<input name=S_' + n + '_' + tpe + '_TBOLD id=S_' + n + '_' + tpe + '_TBOLD type=checkbox' + ((TBOLD) ? " checked" : "") + ">Bold\n";
}
function bcolor(n,tpe,BGCHECK,BCODE) {
	return '<input name=S_' + n + '_' + tpe + '_BGLOBAL id=S_' + n + '_' + tpe + '_BGLOBAL' + BGCHECK + ' type=checkbox>\n'
	+ help("UseGlobalBackground.htm")
	+ 'Use Global Features Background, or <br>'
	+ ((byid) ? '<div class=cd style="background-color:' + BCODE + '" id="S_' + n + '_' + tpe + '_Bdiv" onClick="o.gac(w,\'S_' + n + '_' + tpe + '_B\')"></div>'
	: '<a href="javascript:o.gac(w,\'S_' + n + '_' + tpe + '_B\')" title="Pick a color from a chart (opens a new window)"><img align=bottom border=0 height=24 name=S_' + n + '_' + tpe + '_BIMG src=n.gif width=24></a>')
	+ '<input type=text name=S_' + n + '_' + tpe + '_BCODE id=S_' + n + '_' + tpe + '_BCODE size=7 value="' + BCODE + '" maxLength=50 onChange="typein(\'S_' + n + '_' + tpe + '_B\',this)">\n'
	+ help("TextBackColor.htm")
	+ 'Backgound Color (click swatch to choose from chart)';
}
function makecode(BP) {
	var JA = BP.split("|");

	return '<input type=hidden name=S_' + JA[1] + '_XCODE_PHOLDR id=S_' + JA[1] + '_XCODE_PHOLDR value="1">\n'
	+ '<a name=S_' + JA[1] + '_XCODE></a>\n'
	+ '<table bgcolor="#FFFFCC" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Code Input Area</font>\n'
	+ maketop(JA[1],'code','XCODE',JA[3],JA[4])
	+ '</td></tr><tr><td class=i style="border-bottom: 1px solid white">'
	+ 'Use for JavaScript and CSS Style declarations.\n'
	+ 'Click on "Code" within any of the gray "Insert:" sections to add more Code Input Areas.\n'
	+ '<a href="h2/Code.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Code Input Areas (opens a new window)"><b>More Help</b></a>\n'
	+ '</td></tr></table>'

	+ '<table bgcolor="#FFFFCC" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tbody id=S_' + JA[1] + '_XCODE_I'
	+ ((JA[4] && byid) ? ' style="display:none"' : '') + '>\n<tr><td width="17%" class=bwrwc>'
	+ makeleft(JA[1])
	+ '</td><td class=bw>'
	+ 'Enter code below -or- insert from <input class=btn type=button value="EAPH Plugins" onClick="o.getPlugin(w,' + JA[1] + ')"><br>\n'
	+ '<TEXTAREA class=w78pc cols=50 name=S_' + JA[1] + '_XCODE_XCODE id=S_' + JA[1] + '_XCODE_XCODE rows=15 wrap=VIRTUAL>' + unescape(JA[2]) + '</TEXTAREA>\n'
	+ makeab(JA[1],'XCODE',JA[5],JA[6])
	+ '</td></tr></tbody></table>';
}
function makeTTOP(BP) {
	var JA = BP.split("|");
	return '<input type=hidden name=S_' + JA[1] + '_TTOP_NO id=S_' + JA[1] + '_TTOP_NO value="1">\n'
	+ '<a name=S_' + JA[1] + '_TTOP></a>\n'
	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#FFFFD0" border=2>\n'
	+ '<tr><td>\n'
	+ '<b>' + JA[1] + ' Two Column Layout BEGINS here</b>\n'
	+ 'Width: <input name=S_' + JA[1] + '_TTOP_OXW id=S_' + JA[1] + '_TTOP_OXW value="' + JA[2] + '" onchange="this.value=o.ino(this.value)" size=3> Pixels'
	+ ' -OR- <input name=S_' + JA[1] + '_TTOP_OPW id=S_' + JA[1] + '_TTOP_OPW value="' + JA[3] + '" onchange="o.gwc(this)" size=3>% (1-100) (leave widths blank for auto sizing)\n'
	+ '</td><td width=75 rowspan=2 align=center>'
	+ '<a href=h2/TwoColumns.htm target=hlp onclick="return hw(this.href,event);" title="Help for Two Column Layouts (opens a new window)">Help</a>\n'
	+ '<br><br><a href="javascript:rmk(\'remove\',\'TTOP\',\'' + JA[1] + '\')" title="Remove this Input Area from the Builder, will reload Builder without this Input Area">Remove</a>\n'
	+ '</td></tr><tr><td>'
	+ '<b>Left Column BEGINS Here</b>\n'
	+ 'Width: <input name=S_' + JA[1] + '_TTOP_LXW id=S_' + JA[1] + '_TTOP_LXW value="' + JA[4] + '" onchange="this.value=o.ino(this.value)" size=3> Pixels'
	+ ' -OR- <input name=S_' + JA[1] + '_TTOP_LPW id=S_' + JA[1] + '_TTOP_LPW value="' + JA[5] + '" onchange="o.gwc(this)" size=3>% (1-100) (leave widths blank for auto sizing)\n'
	+ '<br><input type=checkbox name=S_' + JA[1] + '_TTOP_HC id=S_' + JA[1] + '_TTOP_HC' + ((JA[6]) ? ' checked' : '') + '> Center Content Horizontally (default is left align),\n'
	+ '<input type=checkbox name=S_' + JA[1] + '_TTOP_VC id=S_' + JA[1] + '_TTOP_VC' + ((JA[7]) ? ' checked' : '') + '> Center Content Vertically (default is top align)'
	+ '<br>All input areas below will appear in left column until you insert: "End Left Column, Start Right Column Here"\n'
	+ '</td></tr></table>';
}
function makeTMID(BP) {
	var JA = BP.split("|");
	return '<input type=hidden name=S_' + JA[1] + '_TMID_NO id=S_' + JA[1] + '_TMID_NO value="1">\n'
	+ '<a name=S_' + JA[1] + '_TMID></a>\n'
	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#FFFFD0" border=2>\n'
	+ '<tr><td>\n'
	+ '<b>' + JA[1] + ' Left Column ENDS Here</b>\n'
	+ '<br><b>Right Column BEGINS Here</b>\n'
	+ 'Width: <input name=S_' + JA[1] + '_TMID_RXW id=S_' + JA[1] + '_TMID_RXW value="' + JA[2] + '" onchange="this.value=o.ino(this.value)" size=3> Pixels'
	+ ' -OR- <input name=S_' + JA[1] + '_TMID_RPW id=S_' + JA[1] + '_TMID_RPW value="' + JA[3] + '" onchange="o.gwc(this)" size=3>% (1-100) (leave widths blank for auto sizing)\n'
	+ '<br><input type=checkbox name=S_' + JA[1] + '_TMID_HC id=S_' + JA[1] + '_TMID_HC' + ((JA[4]) ? ' checked' : '') + '> Center Content Horizontally (default is left align),\n'
	+ '<input type=checkbox name=S_' + JA[1] + '_TMID_VC id=S_' + JA[1] + '_TMID_VC' + ((JA[5]) ? ' checked' : '') + '> Center Content Vertically (default is top align)'
	+ '<br>All input areas below will appear in right column until you insert: "End Two Column Layout Here"\n'
	+ '</td><td width=75 align=center>'
	+ '<a href=h2/TwoColumns.htm target=hlp onclick="return hw(this.href,event);" title="Help for Two Column Layouts (opens a new window)">Help</a>\n'
	+ '<br><br><a href="javascript:rmk(\'remove\',\'TMID\',\'' + JA[1] + '\')" title="Remove this Input Area from the Builder, will reload Builder without this Input Area">Remove</a>\n'
	+ '</td></tr></table>';
}
function makeTBOT(BP) {
	var JA = BP.split("|");
	return '<input type=hidden name=S_' + JA[1] + '_TBOT_NO id=S_' + JA[1] + '_TBOT_NO value="1">\n'
	+ '<a name=S_' + JA[1] + '_TBOT></a>\n'
	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#FFFFD0" border=2>\n'
	+ '<tr><td>\n'
	+ '<b>' + JA[1] + ' Two Column Layout ENDS here (Right Column Ends here)</b> All input areas below will appear without a two column layout.  You may start another anywhere below by inserting "Start Two Column Layout Here".\n'
	+ '</td><td width=75 align=center>'
	+ '<a href=h2/TwoColumns.htm target=hlp onclick="return hw(this.href,event);" title="Help for Two Column Layouts (opens a new window)">Help</a>\n'
	+ '<br><br><a href="javascript:rmk(\'remove\',\'TBOT\',\'' + JA[1] + '\')" title="Remove this Input Area from the Builder, will reload Builder without this Input Area">Remove</a>\n'
	+ '</td></tr></table>';
}
function makeimage(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_IMAGE></a>\n'
	+ '<table bgcolor="#D0E8F8" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Picture Input Area</font>\n'
	+ maketop(JA[1],'image','IMAGE',JA[13],JA[14],1)
	+ '</td></tr><tr><td class=ip style="border-bottom: 1px solid white">'
	+ 'Picture Input Areas have Click to Enlarge and Join with Text options (enable using Preferences link).\n'
	+ '<a href=h2/Picture.htm target=hlp onclick="return hw(this.href,event);" title="General Help for Picture Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#D0E8F8" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_IMAGE_I'
	+ ((JA[14] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Copy / Paste'
	+ '</td><td class=bw>'
	+ '<span class=sl>\n'
	+ help("InputCP.htm")
	+ '<input class=btn type=button value="Paste Settings" onClick="pst(w,' + JA[1] + ',\'IMAGE\')" title="Paste settings-only from what you have copied from another input area">\n'
	+ '<input class=btn type=button value="Paste ALL" onClick="pst(w,' + JA[1] + ',\'IMAGE\',\'1\')" title="Paste everything from what you have copied from another input area"></span>\n'
	+ '<span class=sr>\n'
	+ help("InputCP.htm")
	+ '<input class=btn type=button value="Copy" onClick="cpy(w,' + JA[1] + ',\'IMAGE\')" title="Copy contents and settings for pasting into another Input Area"></span>\n'

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Spacing'
	+ '</td><td class=bw>'
	+ '<input type=checkbox name=S_' + JA[1] + '_IMAGE_SPACE id=S_' + JA[1] + '_IMAGE_SPACE' + ((JA[6]) ? ' checked' : "") + '>\n'
	+ help("PictureSpace.htm")
	+ 'Check this box to add 10 pixels of blank space around picture<br>\n'
	+ ((JA[7]) ? '<input type=checkbox name=S_' + JA[1] + '_IMAGE_WIDE id=S_' + JA[1] + '_IMAGE_WIDE' + ((JA[7]) ? ' checked' : "") + '>\n' : '')
	+ ((JA[7]) ? help("WidePictures.htm") : '')
	+ ((JA[7]) ? 'Check this box for pictures wider than 544 pixels (obsolete)<br>\n' : '')
	+ '<input type=checkbox name=S_' + JA[1] + '_IMAGE_NEWLINE id=S_' + JA[1] + '_IMAGE_NEWLINE' + ((JA[8]) ? ' checked' : "") + '>\n'
	+ help("NewLinePictures.htm")
	+ 'Check this box to force this picture below one above\n'

	+ '<br><span class=nobr>'
	+ help("Blanklines.htm")
	+ 'Display <input type=text onChange="this.value=o.ino(this.value)" size=2 name=S_' + JA[1] + '_IMAGE_A id=S_' + JA[1] + '_IMAGE_A value="' + JA[21] + '"> blank lines Above this picture &nbsp; &nbsp;\n'
	+ '</span><span class=nobr>'
	+ help("Blanklines.htm")
	+ 'Display <input type=text onChange="this.value=o.ino(this.value)" size=2 name=S_' + JA[1] + '_IMAGE_B id=S_' + JA[1] + '_IMAGE_B value="' + JA[22] + '"> blank lines Below this picture\n'
	+ '</span>\n'

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Alignment'
	+ '</td><td class=bw>'
	+ help("PictureAlignment.htm")
	+ alignment(JA[1],"IMAGE",JA[3],"centered")
	+ '<span class=ips><br>Pictures given the same alignment will display next to each other if they fit.</span>\n'

	+ '</td></tr><tr><td rowspan=4 class=bwrwc valign=top>'
	+ '<img src=n.gif width=92 height=92 name=S_' + JA[1] + '_IMAGE><br><br>\n'
	+ makeleft(JA[1])

	+ '</td><td class=bw>'
	+ 'You may type or paste in a URL:<br>'
	+ '<input type=text class=w78pc maxLength=500 name=S_' + JA[1] + '_IMAGE_IMAGE id=S_' + JA[1] + '_IMAGE_IMAGE size=67 value="' + JA[2] + '" onChange="o.gtz(w,' + JA[1] + ',\'IMAGE\')">\n'
	+ '<br><font size="+1">Or,</font> point and click choose from your web hosting:\n'
	+ makechooselinks(JA[1],"IMAGE","IMAGE")

	+ '</td></tr><tr><td class=bw>'
	+ '(optional) '
	+ help("AdjustDisplay.htm")
	+ '<a href="javascript:o.adj(w,\'' + JA[1] + '\',\'IMAGE\')" title="Adjust the display size of this image (opens a new window)">Adjust display width and height</a>\n'
	+ '<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_IMAGE_IMAGEW id=S_' + JA[1] + '_IMAGE_IMAGEW size=4 value="' + JA[4] + '">Width&nbsp;'
	+ '<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_IMAGE_IMAGEH id=S_' + JA[1] + '_IMAGE_IMAGEH size=4 value="' + JA[5] + '">Height\n'
	+ '<a href="javascript:o.dgn(w,\'S_' + JA[1] + '_IMAGE_IMAGE\')">Diagnostics</a>\n'

	+ '</td></tr><tr><td class=bw>'
	+ help("BorderFrames.htm")
	+ 'Styled Border/Frame (optional)<br>'
	+ '<input class=btn type=button value="Border\nDesigner" onClick="o.btl(w,\'S_' + JA[1] + '_IMAGE\')" style="float:left; margin:3px;">\n'
	+ 'Width:\n'
	+ '<input type=text name=S_' + JA[1] + '_IMAGE_BW id=S_' + JA[1] + '_IMAGE_BW size=2 onChange="this.value=o.ino(this.value)" value="' + JA[10] + '">\n'
	+ 'Pixels - Width of border to surround picture\n'
	+ '<br>'
	+ '<div id=S_' + JA[1] + '_IMAGE_Cdiv style="width: 24px; height: 24px; background-color: ' + ((JA[11]) ? JA[11] : "#D0E8F8") + '; float:left; margin:0"></div>\n'
	+ 'Color:\n'
	+ '<input class=btn type=button onClick="o.chc(w,\'S_' + JA[1] + '_IMAGE\')" value=Choose>\n'
	+ 'or enter code: <input type=text onchange="typein(\'S_' + JA[1] + '_IMAGE_C\',this)" size=7 maxlength=50 value="' + JA[11] + '" name=S_' + JA[1] + '_IMAGE_CCODE id=S_' + JA[1] + '_IMAGE_CCODE>\n'
	+ '<br>'
	+ 'Style:\n'
	+ bstyles(JA[1],"IMAGE",JA[12])

	+ '</td></tr><tr><td class=bw>'
	+ help("PictureComment.htm")
	+ 'Comment (optional)<br>'
	+ '<input type=text onChange="this.value=o.rmqahtml(this.value)" class=w500px maxLength=500 name=S_' + JA[1] + '_IMAGE_COMMENT id=S_' + JA[1] + '_IMAGE_COMMENT size=67 value="' + JA[9] + '">'

	+ ((hasimagejoin) ? '</td></tr><tr><td class=bwrwc>'
		+ 'Join with Text'
		+ '</td><td class=bw>'
		+ '(optional) '
		+ help("Join.htm")
		+ ' <input type=checkbox name=S_' + JA[1] + '_IMAGE_JOIN id=S_' + JA[1] + '_IMAGE_JOIN'
		+ ((JA[23]) ? ' checked' : '') + '> Join this picture with Text Input Area below for side by side display'

		+ '<br>'
		+ '<div id=S_' + JA[1] + '_IMAGE_Ddiv style="width: 24px; height: 24px; background-color: ' + ((JA[25]) ? JA[25] : "#D0E8F8") + '; float:left; margin:0"></div>\n'
		+ ' &nbsp; Background Color:\n'
		+ '<input class=btn type=button onClick="o.chc(w,\'S_' + JA[1] + '_IMAGED\')" value=Choose>\n'
		+ 'or enter code: <input type=text onchange="typein(\'S_' + JA[1] + '_IMAGE_D\',this)" size=7 maxlength=50 value="' + JA[25] + '" name=S_' + JA[1] + '_IMAGE_DCODE id=S_' + JA[1] + '_IMAGE_DCODE>\n'
		+ 'Width: <input name=S_' + JA[1] + '_IMAGE_JW id=S_' + JA[1] + '_IMAGE_JW value="' + JA[26] + '" onchange="o.gwc(this)" size=3>% (1-100)\n'
		: '')
	
	+ ((hasimageclick) ? '</td></tr><tr><td class=bwrwc>'
		+ 'Click To Enlarge<br><br>'
		+ '<img src=n.gif width=92 height=92 name=S_' + JA[1] + '_IMAGE2>\n'
		+ '</td><td class=bw>'
		+ '(optional) '
		+ help("ClickEnlarge.htm")
		+ ' Cause your picture above when clicked to show this larger version...<br>'
		+ 'You may type or paste in a URL:<br>'
		+ '<input type=text class=w78pc maxLength=500 name=S_' + JA[1] + '_IMAGE_IMAGE2 id=S_' + JA[1] + '_IMAGE_IMAGE2 size=67 value="' + JA[15] + '" onChange="o.gtz(w,' + JA[1] + ',\'IMAGE2\')">\n'
		+ '<input type=hidden name=S_' + JA[1] + '_IMAGE_IMAGE2W id=S_' + JA[1] + '_IMAGE_IMAGE2W value="' + JA[16] + '">'
		+ '<input type=hidden name=S_' + JA[1] + '_IMAGE_IMAGE2H id=S_' + JA[1] + '_IMAGE_IMAGE2H value="' + JA[17] + '">'
		+ '<br><font size="+1">Or,</font> point and click choose from your web hosting:\n'
		+ makechooselinks(JA[1],"IMAGE","IMAGE2")
		+ '<br>'
		+ '<div id=S_' + JA[1] + '_IMAGE_C2div style="width: 24px; height: 24px; background-color: ' + ((JA[18]) ? JA[18] : '#D0E8F8') + '; float:left; margin:0"></div>\n'
		+ ' Background Color:\n'
		+ '<input class=btn type=button onClick="o.chc(w,\'S_' + JA[1] + '_IMAGE2\')" value=Choose>\n'
		+ 'or enter code: <input type=text onchange="typein(\'S_' + JA[1] + '_IMAGE_C2\',this)" size=7 maxlength=50 value="' + JA[18] + '" name=S_' + JA[1] + '_IMAGE_C2CODE id=S_' + JA[1] + '_IMAGE_C2CODE>\n'
		+ '<br><input type=checkbox name=S_' + JA[1] + '_IMAGE_JS id=S_' + JA[1] + '_IMAGE_JS' + ((JA[19]) ? ' checked' : "") + '>\n'
		+  help("ClickEnlarge.htm")
	 	+ ' Don\'t use javascript'
		: '')
	+ makeab(JA[1],'IMAGE',JA[20],JA[24])
	+ '</td></tr></tbody></table>';
}
function JVunescape(str) {
	str = str.replace(/µ/g,"'")
		.replace(/ð/g,"|")
		.replace(/ç/g,"\n")
		.replace(/þ/g,"<")
		.replace(/Þ/g,">");
	return str;
}
function maketext(BP) {
	var JA = BP.split("|");
	JA[11] = (JA[11]) ? JA[11] : "0";
	JA[12] = (JA[12]) ? JA[12] : "0";

	return '<a name=S_' + JA[1] + '_TEXT></a>\n'
	+ '<table bgcolor="#FFB040" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<table width="100%" cellpadding="0" cellspacing="0"><tr><td>'
	+ '<font size="+1">Text Input Area</font>\n'
	+ maketop(JA[1],'text','TEXT',JA[23],JA[24],1)
	+ '</td><td><div style="float:right;background-color:#FFEED8;text-align:center;padding:1px">'
	+ '<font color="red"><b>NEW</b></font> Other tools: <a href="http://www.robshelp.com/OtherTools/TableMaker/TableBuilder.htm" target="_blank" title="Create charts and lists for use in a FreeForm Text Input Area">Table Builder</a> &nbsp;'
	+ '<a href="http://www.robshelp.com/OtherTools/ZoneZoom/ZoneZoomTool.htm" target="_blank" title="Tool for creating a custom sized mouseover zoom for use in a FreeForm Code Input Area">ZoneZoom</a>'
	+ '<span style="font-size:65%"><br>(tools open in new windows and do not import directly)</span>'
	+ '</div></td></tr></table>'
	+ '</td></tr><tr><td class=itx style="border-bottom: 1px solid white">'
	+ 'In the space provided for entering text you may paste in your own HTML but be sure to put a check in the box labeled "Turn off FreeForm substitutions for blank spaces, quotes, and new lines".  It is safer, however, to use the WYSIWYG here for formatting. A Background Wallpaper option is available (enable using Preferences link).\n'
	+ '<a href="h2/Text.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Text Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table bgcolor="#FFB040" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tbody id=S_' + JA[1] + '_TEXT_I'
	+ ((JA[24] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Copy / Paste'
	+ '</td><td class=bw>'
	+ '<span class=sl>\n'
	+ help("InputCP.htm")
	+ '<input class=btn type=button value="Paste Settings" onClick="pst(w,' + JA[1] + ',\'TEXT\')" title="Paste settings-only from what you have copied from another input area">\n'
	+ '<input class=btn type=button value="Paste ALL" onClick="pst(w,' + JA[1] + ',\'TEXT\',\'1\')" title="Paste everything from what you have copied from another input area">'
	+ '</span>\n'
	+ '<span class=sr>\n'
	+ help("InputCP.htm")
	+ '<input class=btn type=button value="Copy" onClick="cpy(w,' + JA[1] + ',\'TEXT\')" title="Copy contents and settings for pasting into another Input Area">'
	+ '</span>\n'

	+ '</td></tr><tr><td class=bwrwc>'

	+ 'Spacing'
	+ '</td><td class=bw>'
	+ '<span class=nobr>'
	+ help("Blanklines.htm")
	+ 'Display <input type=text onChange="this.value=o.ino(this.value)" size=2 name=S_' + JA[1] + '_TEXT_A id=S_' + JA[1] + '_TEXT_A value="' + JA[11] + '"> blank lines Above the text entered here &nbsp; &nbsp;\n'
	+ '</span><span class=nobr>'
	+ help("Blanklines.htm")
	+ 'Display <input type=text onChange="this.value=o.ino(this.value)" size=2 name=S_' + JA[1] + '_TEXT_B id=S_' + JA[1] + '_TEXT_B value="' + JA[12] + '"> blank lines Below the text entered here\n'
	+ '</span>\n'

	+ '</td></tr><tr><td class=bwrwc>'

	+ 'Text Color'
	+ '</td><td class=bw>'
	+ tcolor(JA[1],'TEXT',JA[20],JA[3])

	+ '</td></tr><tr><td class=bwrwc>'
	
	+ 'Text Size'
	+ '</td><td class=bw>'
	+ help("TextSize.htm")
	+ sizebold(JA[1],'TEXT',JA[4],JA[5])

	+ '</td></tr><tr><td class=bwrwc>'

	+ 'Alignment'
	+ '</td><td class=bw>'
	+ help("TextAlignment.htm")
	+ alignment(JA[1],"TEXT",JA[6],"left")

	+ '</td></tr><tr><td class=bwrwc>'

	+ 'Border / Padding'
	+ '</td><td class=bw>'
	+ help("BorderPadding.htm")
	+ '[<input type=radio name=S_' + JA[1] + '_TEXT_PADDING id=S_' + JA[1] + '_TEXT_PADDING1 value="1"'
	+ ((JA[9]) ? ' checked' : '') + '>Padding '
	+ '<input type=radio name=S_' + JA[1] + '_TEXT_PADDING id=S_' + JA[1] + '_TEXT_PADDING0 value=""'
	+ ((!JA[9]) ? ' checked' : '') + '>No padding] &nbsp;'
	+ '[<input type=radio name=S_' + JA[1] + '_TEXT_BORDER id=S_' + JA[1] + '_TEXT_BORDER1 value="1"'
	+ ((JA[10]) ? ' checked' : '') + '>Border '
	+ '<input type=radio name=S_' + JA[1] + '_TEXT_BORDER id=S_' + JA[1] + '_TEXT_BORDER0 value=""'
	+ ((!JA[10]) ? ' checked' : '') + '>No border]\n'

	+ '</td></tr><tr><td class=bwrwc>'

	+ makeleft(JA[1])
	+ '</td><td class=bw>'
	+ help("TextText.htm")
	+ 'Enter text below\n'
	+ 'or click to use: <input id="TextEditor" type="button" onClick="texteditor(\'S_' + JA[1] + '\')" value="WYSIWYG Text Editor" CLASS=bt onMouseOver="this.className=\'bo\'" onMouseOut="this.className=\'bt\';" title="Launch the Editor">\n'
	+ '<span style="background-color:white">Internet Explorer or FireFox</span>\n'
	+ '<br>or Import: ' + help("EnhancedAlbum.htm")
	+ ' <input class=btn type=button value="EAPH Thumbnails" onClick="o.gpc(w,\'' + JA[1] + '\')" title="Choose folder">'
	+ 'or ' + help("EasyLinks.htm")
	+ '<input class=btn type=button value="EAPH EasyLinks" onClick="o.gel(w,\'' + JA[1] + '\')" title="Choose an EasyLinks Save">\n'
	+ '<br>' + help("NoTextAreaSubs.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_TEXT_NS id=S_' + JA[1] + '_TEXT_NS'
	+ ((JA[25]) ? ' checked' : '')
	+ '> Turn off FreeForm substitutions for blank spaces, quotes, and new lines\n'
	+ '<br><TEXTAREA class=w78pc cols=66 name="S_' + JA[1] + '_TEXT_TEXT" id="S_' + JA[1] + '_TEXT_TEXT" rows=10 wrap=VIRTUAL>' + JVunescape(JA[22]) + '</TEXTAREA>'

	+ '</td></tr><tr><td class=bwrwc>'

	+ 'Size (optional)'
	+ '</td><td class=bw>'
	+ help("Widthpercent.htm")
	+ 'Width as Percentage:\n'
	+ '<input type=text name=S_' + JA[1] + '_TEXT_GW id=S_' + JA[1] + '_TEXT_GW size=3 maxlength=3 onChange="o.gwc(this)" value="' + JA[13] + '">%&nbsp; &nbsp; \n'
	+ '<span class=nobr>'
	+ help("WidthHeightpixels.htm")
	+ 'Width in Pixels:\n'
	+ '<input type=text name=S_' + JA[1] + '_TEXT_W id=S_' + JA[1] + '_TEXT_W size=3 maxlength=3 onChange="this.value=o.ino(this.value)" value="' + JA[14] 	+ '">Pixels\n'
	+ 'x Height in Pixels:\n'
	+ '<input type=text name=S_' + JA[1] + '_TEXT_H id=S_' + JA[1] + '_TEXT_H size=3 maxlength=3 onChange="this.value=o.ino(this.value)" value="' + JA[15] + '">Pixels\n'
	+ '</span>'
	+ '<span class=itx><br>'
	+ 'Setting a percentage width less than 100% has the effect of adding margins to the left and right.'
	+ '</span>'

	+ '</td></tr><tr><td class=bwrwc>'

	+ 'Background Color (optional)'
	+ '</td><td class=bw>'
	+ bcolor(JA[1],'TEXT',JA[21],JA[8])

	+ ((hastextbackground) ? '</td></tr><tr><td class=bwrwc>'
		+ help("TextBackground.htm")
		+ 'Background<br>Wallpaper<br>(optional)'
		+ ((byid) ? '<div id=S_' + JA[1] + '_TEXT_BGIMAGESHOW style="margin:auto; margin-top:3px; width: 100px; height: 48px;"></div>\n' : '')
		+ '</td><td class=bw>'
		+ 'You may type or paste in a URL:<br>'
		+ '<input class=w78pc type=text maxLength=500 size=67 name=S_' + JA[1] + '_TEXT_BGIMAGE id=S_' + JA[1] + '_TEXT_BGIMAGE onChange="o.sbg(w,\'S_' + JA[1] + '_TEXT_BGIMAGE\')" value="' + JA[16] + '">\n'
		+ '<br><font size="+1">Or,</font> point and click choose from FreeForm\'s Libraries:\n'
		+ '<a href="javascript:pkb(\'eas\',\'S_' + JA[1] + '_TEXT_BGIMAGE\')" title="Choose from the Easter library">Easter</a>&nbsp;\n'
		+ '<a href="javascript:pkb(\'val\',\'S_' + JA[1] + '_TEXT_BGIMAGE\')" title="Choose from the Valentines Day library">Valentines</a>&nbsp;\n'
		+ '<a href="javascript:pkb(\'chms\',\'S_' + JA[1] + '_TEXT_BGIMAGE\')" title="Choose from the Christmas library">Christmas</a>&nbsp;\n'
		+ '<a href="javascript:pkb(\'spk\',\'S_' + JA[1] + '_TEXT_BGIMAGE\')" title="Choose from the Sparkles library">Sparkles</a>&nbsp;\n'
		+ '<a href="javascript:pkb(\'normal\',\'S_' + JA[1] + '_TEXT_BGIMAGE\')" title="Choose from the Year Round library">Year Round</a>\n'
		+ '<br><font size="+1">Or,</font> point and click choose from your own hosting:\n'
		+ makechooselinks(JA[1],'TEXT','BGIMAGE')
		+ '<br>'
		+ help("NoRepeatText.htm")
		+ '<input type=checkbox name=S_' + JA[1] + '_TEXT_NR id=S_' + JA[1] + '_TEXT_NR'
		+ ((JA[28]) ? ' checked' : '')
		+ '> Make this a non-repeating background wallpaper\n'
		: '')
	
	+ '</td></tr><tr><td class=bwrwc>'

	+ help("BorderFrames.htm")
	+ 'Styled Border<br>(optional)'
	+ '</td><td class=bw>'
	+ '<input class=btn type=button value="Border\nDesigner" onClick="o.btl(w,\'S_' + JA[1] + '_TEXT\')" style="float:left; margin:3px;">\n'
	+ 'Border Width:\n'
	+ '<input type=text name=S_' + JA[1] + '_TEXT_BW id=S_' + JA[1] + '_TEXT_BW size=2 onChange="this.value=o.ino(this.value)" value="' + JA[17] + '">\n'
	+ 'Pixels - Width of border to surround text box\n'
	+ '<br>'
	+ '<div id=S_' + JA[1] + '_TEXT_Cdiv style="width: 24px; height: 24px; background-color: ' + ((JA[18]) ? JA[18] : "#FFB040") + '; float:left; margin:0"></div>\n'
	+ 'Border Color:\n'
	+ '<input class=btn type=button onClick="o.chc(w,\'S_' + JA[1] + '_TEXT\')" value=Choose>\n'
	+ 'or enter code: <input type=text onchange="typein(\'S_' + JA[1] + '_TEXT_C\',this)" size=7 maxlength=50 value="' + JA[18] + '" name=S_' + JA[1] + '_TEXT_CCODE id=S_' + JA[1] + '_TEXT_CCODE>\n'
	+ '<br>'
	+ 'Border Style:\n'
	+ bstyles(JA[1],"TEXT",JA[19])
	+ makeab(JA[1],"TEXT",JA[26],JA[30])
	+ '</td></tr></tbody></table>';
}
function maketitle(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_TITLE></a>\n'
	+ '<table bgcolor="#CBD2B3" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Title Input Area</font>\n'
	+ maketop(JA[1],'title','TITLE',JA[15],JA[16])
	+ '</td></tr><tr><td class=itl style="border-bottom: 1px solid white">'
	+ 'You are not required to use a Title Input Area.  Nor is a title automatically filled into eBay\'s listing forms.  So, this type of input area is useful primarily as a storage place and a tool to experiment with a title that will fit within eBay\'s 55 character limit for titles. To <i>display</i> a title or section headings it is suggested you instead use Text Input Areas which provide more flexibility.\n'
	+ '<a href="h2/Title.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Title Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#CBD2B3" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_TITLE_I'
	+ ((JA[16] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Text Color'
	+ '</td><td class=bw>'
	+ tcolor(JA[1],'TITLE',JA[11],JA[3])

	+ '</td></tr><tr><td rowspan=4 class=bwrwc>'
	+ makeleft(JA[1])

	+ '</td><td class=bw>'
	+ help("TextSize.htm")
	+ 'Text Size: '
	+ sizebold(JA[1],'TITLE',JA[4],JA[5])

	+ '</td></tr><tr><td class=bw>'
	+ help("TextAlignment.htm")
	+ 'Alignment: '
	+ alignment(JA[1],"TITLE",JA[6],"left")

	+ '</td></tr><tr><td class=bw>'
	+ help("BorderPadding.htm")
	+ 'Border / Padding: '
	+ '[<input type=radio name=S_' + JA[1] + '_TITLE_PADDING id=S_' + JA[1] + '_TITLE_PADDING1 value="1"'
	+ ((JA[9]) ? ' checked' : '') + '>Padding '
	+ '<input type=radio name=S_' + JA[1] + '_TITLE_PADDING id=S_' + JA[1] + '_TITLE_PADDING0 value=""'
	+ ((!JA[9]) ? ' checked' : '') + '>No padding] &nbsp;'
	+ '[<input type=radio name=S_' + JA[1] + '_TITLE_BORDER id=S_' + JA[1] + '_TITLE_BORDER1 value="1"'
	+ ((JA[10]) ? ' checked' : '') + '>Border '
	+ '<input type=radio name=S_' + JA[1] + '_TITLE_BORDER id=S_' + JA[1] + '_TITLE_BORDER0 value=""'
	+ ((!JA[10]) ? ' checked' : '') + '>No border]\n'
	+ '</td></tr><tr><td class=bw>'
	+ help("TitleText.htm")
	+ 'Enter text here for Title\n'
	+ '<input name=S_' + JA[1] + '_TITLE_HIDE id=S_' + JA[1] + '_TITLE_HIDE' + JA[13] + ' type=checkbox>Do not show in description\n'
	+ '<br><input type="text" onChange="o.tchk(this)" name=S_' + JA[1] + '_TITLE_TEXT id=S_' + JA[1] + '_TITLE_TEXT size=55 maxLength=55 value="' + unescape(JA[14]) + '"><br>\n'
	+ '(55 character limit; no HTML, asterisks, or quotes - these are eBay\'s requirements)\n'

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Background Color <br>(optional)'
	+ '</td><td class=bw>'
	+ bcolor(JA[1],'TITLE',JA[12],JA[8])
	+ makeab(JA[1],'TITLE',JA[17],JA[18])
	+ '</td></tr></tbody></table>';
}
function makegallery(BP) {
	var JA = BP.split("|");

	return '<input type=hidden name=S_' + JA[1] + '_GXCODE_PHOLDR id=S_' + JA[1] + '_GXCODE_PHOLDR value="1">\n'
	+ '<a name=S_' + JA[1] + '_GXCODE></a>\n'
	+ '<table bgcolor="#FFBEBE" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Gallery Builder Input Area</font>\n'
	+ maketop(JA[1],'gallery','GXCODE',JA[3],JA[4])
	+ '</td></tr><tr><td class=i style="border-bottom: 1px solid white">'
	+ 'Gallery Input Areas are like a mini-FreeForm for creating photo galleries.  Also very handy for creating sets of links using buttons or text.\n'
	+ '<a href="h2/GalleryBuilder.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Gallery Input Areas (opens a new window)"><b>More Help</b></a>\n'
	+ '</td></tr></table>'

	+ '<table bgcolor="#FFBEBE" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tbody id=S_' + JA[1] + '_GXCODE_I'
	+ ((JA[4] && byid) ? ' style="display:none"' : '') + '>\n<tr><td width="17%" class=bwrwc>'
	+ makeleft(JA[1])
	+ '</td><td class=bw>'
	+ '<input id="S_' + JA[1] + '_GXCODE_ID" class=btn type=button onClick="o.gallerybuilder(w,\'S_' + JA[1] + '_GXCODE_GXCODE\')" title="Launch the Gallery Builder Tool"'
	+ ((JA[2]) ? ' value="Gallery Builder Tool Has Contents" style="background-color:palevioletred;">' : ' value="Gallery Builder Tool">')
	+ '<input type=hidden name="S_' + JA[1] + '_GXCODE_GXCODE" id="S_' + JA[1] + '_GXCODE_GXCODE" value="' + JA[2] + '">\n'
	+ '<input type=hidden name="S_' + JA[1] + '_GXCODE_TEMP" id="S_' + JA[1] + '_GXCODE_TEMP" value="">\n'
	+ makeab(JA[1],'GXCODE',JA[5],JA[6])
	+ '</td></tr></tbody></table>';
}
function maketerms(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_TERMS></a>\n'
	+ '<table bgcolor="#F3ADB3" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Terms and Conditions</font>\n'
	+ maketop(JA[1],'terms','TERMS',JA[12],JA[13])
	+ '</td></tr><tr><td class=itm style="border-bottom: 1px solid white">'
	+ 'Tip: Use a Text Input Area instead to gain more control over the display of terms and conditions.\n'
	+ '<a href="h2/Terms.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Terms Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#F3ADB3" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_TERMS_I'
	+ ((JA[13] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Text Color'
	+ '</td><td class=bw>'
	+ tcolor(JA[1],'TERMS',JA[9],JA[3])

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Text Size'
	+ '</td><td class=bw>'
	+ help("TextSize.htm")
	+ sizebold(JA[1],'TERMS',JA[4],JA[5])

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Alignment'
	+ '</td><td class=bw>'
	+ help("TextAlignment.htm")
	+ alignment(JA[1],"TERMS",JA[6],"left")

	+ '</td></tr><tr><td class=bwrwc>'
	+ makeleft(JA[1])
	+ '</td><td class=bw>'
	+ help("Terms.htm")
	+ 'Enter text here for Terms &amp; Condtions<br>\n'
	+ '<textarea class=w78pc cols=50 name=S_' + JA[1] + '_TERMS_TEXT id=S_' + JA[1] + '_TERMS_TEXT rows=10 wrap=virtual>' + unescape(JA[11]) + '</textarea>\n'

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Background Color <br>(optional)'
	+ '</td><td class=bw>'
	+ bcolor(JA[1],'TERMS',JA[10],JA[8])
	+ makeab(JA[1],'TERMS',JA[14],JA[15])
	+ '</td></tr></tbody></table>';
}
function makeemail(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_EMAIL></a>\n'
	+ '<table bgcolor="#EABBF0" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Email Link</font>\n'
	+ maketop(JA[1],'email','EMAIL',JA[12],JA[13])
	+ '</td></tr><tr><td class=ie style="border-bottom: 1px solid white">'
	+ 'You may use this to create an email link.  When visitors click on the link their email program will open with an email already addressed to you.\n'
	+ '<a href="h2/Email.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Email Link Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#EABBF0" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_EMAIL_I'
	+ ((JA[13] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Javascript'
	+ '</td><td class=bw>'
	+ help("EmailEnhanced.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_EMAIL_ENHANCED id=S_' + JA[1] + '_EMAIL_ENHANCED' + JA[9] + '>\n'
	+ 'JavaScript Enhanced Link (subject gets filled in with page title)\n'

	+ '</td></tr><tr><td class=bwrwc>'
	+ 'Alignment'
	+ '</td><td class=bw>'
	+ help("LinkAlignment.htm")
	+ alignment(JA[1],"EMAIL",JA[4],"centered")
	+ '<br>' + help("linkflow.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_EMAIL_FLOW id=S_' + JA[1] + '_EMAIL_FLOW' + JA[10] + '> Check this box to flow this link onto the same line with adjacent links\n'
	+ '<br>' + help("LinkLine.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_EMAIL_LL id=S_' + JA[1] + '_EMAIL_LL' + JA[15] + '> Do not add a blank line underneath the link\n'

	+ '</td></tr><tr><td rowspan=5 class=bwrwc>'
	+ makeleft(JA[1])
	+ '<br><img src=n.gif width=92 height=92 name=S_' + JA[1] + '_EMAIL>\n'

	+ '</td><td class=bw>'
	+ help("EmailAddress.htm")
	+ 'Enter your email address here<br>\n'
	+ '<input class=w500px onChange="this.value=o.rmqahtml(this.value,1)" maxLength=500 name=S_' + JA[1] + '_EMAIL_EMAIL id=S_' + JA[1] + '_EMAIL_EMAIL size=50 value="' + JA[5] + '">\n'

	+ '</td></tr><tr><td class=bw>'
	+ help("TextSize.htm")
	+ ' Link Text Size: '
	+ sizebold(JA[1],'EMAIL',JA[2],JA[3])

	+ '</td></tr><tr><td class=bw>'
	+ help("LinkText.htm")
	+ 'Enter text here for Email Link<br>\n'
	+ '<TEXTAREA class=w500px cols=50 name=S_' + JA[1] + '_EMAIL_TEXT id=S_' + JA[1] + '_EMAIL_TEXT rows=3 wrap=VIRTUAL>' + unescape(JA[11]) + '</TEXTAREA>\n'

	+ '</td></tr><tr><td class=bw>'
	+ 'To create an image link, you may type or paste in a URL:<br>'
	+ '<input class=w500px type=text maxLength=500 name=S_' + JA[1] + '_EMAIL_IMAGE id=S_' + JA[1] + '_EMAIL_IMAGE size=50 value="' + JA[6] + '" onChange="o.gtz(w,\'' + JA[1] + '\',\'EMAIL\')">\n'
	+ '<br><font size="+1">Or,</font> point and click choose from FreeForm\'s: '
	+ '<a href="javascript:o.pke(w,\'' + JA[1] + '\')">Library</a>'
	+ '<br><font size="+1">Or,</font> point and click choose from your own hosting:\n'
	+ makechooselinks(JA[1],'EMAIL','IMAGE')
	+ '</td></tr><tr><td class=bw>'
	+ '(optional) '
	+ help("AdjustDisplay.htm")
	+ '<a href="javascript:o.adj(w,\'' + JA[1] + '\',\'EMAIL\')" title="Adjust the display size of this image (opens a new window)">Adjust display width and height</a>\n'
	+ '<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_EMAIL_IMAGEW id=S_' + JA[1] + '_EMAIL_IMAGEW size=4 value="' + JA[7] + '">Width&nbsp;<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_EMAIL_IMAGEH id=S_' + JA[1] + '_EMAIL_IMAGEH size=4 value="' + JA[8] + '">Height\n'
	+ makeab(JA[1],'EMAIL',JA[14],JA[16])
	+ '</td></tr></tbody></table>';
}
function makeauctions(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_AUCTIONS></a>\n'
	+ '<table bgcolor="#68D098" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Auctions Link</font>\n'
	+ maketop(JA[1],'auctions','AUCTIONS',JA[11],JA[12])
	+ '</td></tr><tr><td class=ia style="border-bottom: 1px solid white">'
	+ 'Create a link to your other items on eBay by filling in your eBay ID below or type or paste in your own URL.\n'
	+ '<a href="h2/AuctionsLink.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Auctions Link Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#68D098" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_AUCTIONS_I'
	+ ((JA[12] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Destination'
	+ '</td><td class=bw>'
	+ help("LinkeBayURL.htm")
	+ 'Type or paste in the URL to your other auctions:<br>\n'
	+ '<input class=w500px type=text onChange="this.value=o.rmqahtml(this.value,1)" maxLength=500 name=S_' + JA[1] + '_AUCTIONS_AUCTION id=S_' + JA[1] + '_AUCTIONS_AUCTION size=50 value="' + JA[5] + '">\n'
	+ '<br><font size="+1">Or,</font> type in your eBay ID and FreeForm will create the URL\n'

	+ '</td></tr><tr><td rowspan=5 class=bwrwc>'
	+ makeleft(JA[1])
	+ '<br><img src=n.gif width=92 height=92 name=S_' + JA[1] + '_AUCTIONS id=S_' + JA[1] + '_AUCTIONS>\n'

	+ '</td><td class=bw>'
	+ help("LinkAlignment.htm")
	+ 'Alignment: '
	+ alignment(JA[1],"AUCTIONS",JA[4],"centered")
	+ '<br>' + help("linkflow.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_AUCTIONS_FLOW id=S_' + JA[1] + '_AUCTIONS_FLOW' + JA[9] + '> Check this box to flow this link onto the same line with adjacent links\n'
	+ '<br>' + help("LinkLine.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_AUCTIONS_LL id=S_' + JA[1] + '_AUCTIONS_LL' + JA[14] + '> Do not add a blank line underneath the link\n'


	+ '</td></tr><tr><td class=bw>'
	+ help("TextSize.htm")
	+ ' Link Text Size: '
	+ sizebold(JA[1],'AUCTIONS',JA[2],JA[3])

	+ '</td></tr><tr><td class=bw>'
	+ help("LinkText.htm")
	+ 'Enter text here for Link to Other Auctions<br>\n'
	+ '<TEXTAREA w500px cols=50 name=S_' + JA[1] + '_AUCTIONS_TEXT id=S_' + JA[1] + '_AUCTIONS_TEXT rows=3 wrap=VIRTUAL>' + unescape(JA[10]) + '</TEXTAREA>\n'

	+ '</td></tr><tr><td class=bw>'
	+ 'To create an image link, you may type or paste in a URL:<br>'
	+ '<input class=w500px maxLength=500 name=S_' + JA[1] + '_AUCTIONS_IMAGE id=S_' + JA[1] + '_AUCTIONS_IMAGE size=50 value="' + JA[6] + '" onChange="o.gtz(w,\'' + JA[1] + '\',\'AUCTIONS\')">\n'
	+ '<br><font size="+1">Or,</font> point and click choose from your web hosting:\n'
	+ makechooselinks(JA[1],'AUCTIONS','IMAGE')

	+ '</td></tr><tr><td class=bw>'
	+ '(optional) '
	+ help("AdjustDisplay.htm")
	+ '<a href="javascript:o.adj(w,\'' + JA[1] + '\',\'AUCTIONS\')" title="Adjust the display size of this image (opens a new window)">Adjust display width and height</a>\n'
	+ '<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_AUCTIONS_IMAGEW id=S_' + JA[1] + '_AUCTIONS_IMAGEW size=4 value="' + JA[7] + '">Width&nbsp;<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_AUCTIONS_IMAGEH id=S_' + JA[1] + '_AUCTIONS_IMAGEH size=4 value="' + JA[8] + '">Height\n'
	+ makeab(JA[1],'EMAIL',JA[13],JA[15])
	+ '</td></tr></tbody></table>';
}
function makethumbnail(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_THUMBNAIL></a>\n'
	+ '<table bgcolor="#A2C3DE" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Thumbnail Link</font>\n'
	+ maketop(JA[1],'thumbnail','THUMBNAIL',JA[10],JA[11])
	+ '</td></tr><tr><td class=ith style="border-bottom: 1px solid white">'
	+ 'Tips: If you do not need to show text as part of the link use Picture Input Areas instead which have a Click To Enlarge option.  For multiple thumbnails with link text use a Gallery Input Area.\n'
	+ '<a href="h2/ThumbnailLink.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Thumbnail Link Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#A2C3DE" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_THUMBNAIL_I'
	+ ((JA[11] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Destination'
	+ '</td><td class=bw>'
	+ help("ThumbnailTargetURL.htm")
	+ 'Type or paste in a URL for the picture or web page that is to be opened when the link is clicked (Destination):<br>'
	+ '<input class=w500px type=text onChange="this.value=o.fixurl(this.value,this.value)" maxLength=500 name=S_' + JA[1] + '_THUMBNAIL_TARGET id=S_' + JA[1] + '_THUMBNAIL_TARGET size=50 value="' + JA[5] + '">\n'
	+ '<br><font size="+1">Or,</font> point and click choose a page from your EAPH hosted web site:\n'
	+ '<a href="javascript:getEAPHpage(\'' + 'S_' + JA[1] + '_THUMBNAIL_TARGET\')">EAPH.com</a>\n'

	+ '</td></tr><tr><td rowspan=5 class=bwrwc>'
	+ makeleft(JA[1])
	+ '<br><img src=n.gif width=92 height=92 name=S_' + JA[1] + '_THUMBNAIL id=S_' + JA[1] + '_THUMBNAIL>\n'

	+ '</td><td class=bw>'
	+ help("LinkAlignment.htm")
	+ 'Link Alignment:\n'
	+ alignment(JA[1],"THUMBNAIL",JA[4],"centered")
	+ '<br><span class=iths>\n'
	+ 'Thumbnail Links given the same alignment will flow next to each other if they fit.</span>\n'

	+ '</td></tr><tr><td class=bw>'
	+ 'To create an image link, you may type or paste in a URL:<br>'
	+ '<input class=w500px type=text maxLength=500 name=S_' + JA[1] + '_THUMBNAIL_IMAGE id=S_' + JA[1] + '_THUMBNAIL_IMAGE size=50 value="' + JA[6] + '" onChange="o.gtz(w,\'' + JA[1] + '\',\'THUMBNAIL\')">\n'
	+ '<br><font size="+1">Or,</font> point and click choose from your web hosting:\n'
	+ makechooselinks(JA[1],'THUMBNAIL','IMAGE')

	+ '</td></tr><tr><td class=bw>'
	+ '(optional) '
	+ help("AdjustDisplay.htm")
	+ '<a href="javascript:o.adj(w,\'' + JA[1] + '\',\'THUMBNAIL\')" title="Adjust the display size of this image (opens a new window)">Adjust display width and height</a>\n'
	+ '<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_THUMBNAIL_IMAGEW id=S_' + JA[1] + '_THUMBNAIL_IMAGEW size=4 value="' + JA[7] + '">Width&nbsp;<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_THUMBNAIL_IMAGEH id=S_' + JA[1] + '_THUMBNAIL_IMAGEH size=4 value="' + JA[8] + '">Height\n'

	+ '</td></tr><tr><td class=bw>'
	+ help("TextSize.htm")
	+ ' Link Text Size: '
	+ sizebold(JA[1],'THUMBNAIL',JA[2],JA[3])

	+ '</td></tr><tr><td class=bw>'
	+ help("LinkText.htm")
	+ 'Enter Link text here to appear below the Thumbnail Image (optional)<br>\n'
	+ '<TEXTAREA class=w500px cols=50 name=S_' + JA[1] + '_THUMBNAIL_TEXT id=S_' + JA[1] + '_THUMBNAIL_TEXT rows=3 wrap=VIRTUAL>' + unescape(JA[9]) + '</TEXTAREA>\n'
	+ makeab(JA[1],'THUMBNAIL',JA[12],JA[13])
	+ '</td></tr></tbody></table>';
}
function makewebsite(BP) {
	var JA = BP.split("|");

	return '<a name=S_' + JA[1] + '_WEBSITE></a>\n'
	+ '<table bgcolor="#C6C7D2" width="100%" cellpadding=3 cellspacing=0 border=0>'
	+ '<tr><td width=25 class=bwrwc rowspan=2><font size="+1">' + JA[1] + '</font></td>'
	+ '<td class=bw>'
	+ '<font size="+1">Website Link</font>\n'
	+ maketop(JA[1],'website','WEBSITE',JA[12],JA[13])
	+ '</td></tr><tr><td class=iw style="border-bottom: 1px solid white">'
	+ 'Create a link to any web page or image, or enter your eBay ID to create a link to your eBay About Me page.\n'
	+ ' Tip: If you need to create a group of links use a Gallery Input Area instead. '
	+ '<a href="h2/WebsiteLink.htm" target="hlp" onclick="return hw(this.href,event);" title="General Help for Website Link Input Areas (opens a new window)">More Help</a>\n'
	+ '</td></tr></table>'

	+ '<table cellspacing=0 cellpadding=3 width="100%" bgcolor="#C6C7D2" border=0>\n'
	+ '<tbody id=S_' + JA[1] + '_WEBSITE_I'
	+ ((JA[13] && byid) ? ' style="display:none"' : '')
	+ '>\n<tr><td width="17%" class=bwrwc>'
	+ 'Destination'
	+ '</td><td class=bw>'
	+ help("WebsiteURLeBay.htm")
	+ 'Type or paste in a URL for the picture or web page destination:<br>'
	+ '<input class=w500px type=text onChange="this.value=o.rmqahtml(this.value,1)" maxLength=500 name=S_' + JA[1] + '_WEBSITE_WEBSITE id=S_' + JA[1] + '_WEBSITE_WEBSITE size=50 value="' + JA[5] + '">\n'
	+ '<br><font size="+1">Or,</font> Type in your eBay ID to create a link to your About Me page\n'
	+ '<br><font size="+1">Or,</font> point and click choose a page from your EAPH hosted web site:\n'
	+ '<a href="javascript:getEAPHpage(\'' + 'S_' + JA[1] + '_WEBSITE_WEBSITE\')">EAPH.com</a>\n'
	+ '<br><font size="+1">Or,</font> point and click choose a named section for a same page link:\n'
	+ '<a href="javascript:section(\'' + 'S_' + JA[1] + '_WEBSITE_WEBSITE\')">Input Area Names</a>\n'

	+ '</td></tr><tr><td rowspan=6 class=bwrwc>'
	+ makeleft(JA[1])
	+ '<br><img src=n.gif width=92 height=92 name=S_'+ JA[1] + '_WEBSITE>\n' 

	+ '</td><td class=bw>'
	+ help("LinkAlignment.htm")
	+ ' Alignment: '
	+ alignment(JA[1],"WEBSITE",JA[4],"centered")
	+ '<br>' + help("linkflow.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_WEBSITE_FLOW id=S_' + JA[1] + '_WEBSITE_FLOW' + JA[9] + '> Check this box to flow this link onto the same line with adjacent links\n'
	+ '<br>' + help("LinkLine.htm")
	+ '<input type=checkbox name=S_' + JA[1] + '_WEBSITE_LL id=S_' + JA[1] + '_WEBSITE_LL' + JA[15] + '> Do not add a blank line underneath the link\n'

	+ '</td></tr><tr><td class=bw>'
	+ '<input type=checkbox name=S_' + JA[1] + '_WEBSITE_NEWWIN id=S_' + JA[1] + '_WEBSITE_NEWWIN' + JA[10] + '>\n'
	+ help("OpensNewWindow.htm")
	+ 'Clicking on link opens new window\n'

	+ '</td></tr><tr><td class=bw>'
	+ help("LinkText.htm")
	+ 'Link Text Size:\n'
	+ sizebold(JA[1],'WEBSITE',JA[2],JA[3])

	+ '</td></tr><tr><td class=bw>'
	+ help("LinkText.htm")
	+ 'Enter text here for Link to Website<br>\n'
	+ '<TEXTAREA class=w500px cols=50 name=S_' + JA[1] + '_WEBSITE_TEXT id=S_' + JA[1] + '_WEBSITE_TEXT rows=3 wrap=VIRTUAL>' + unescape(JA[11]) + '</TEXTAREA>\n'

	+ '</td></tr><tr><td class=bw>'
	+ 'To create an image link, you may type or paste in a URL:<br>'
	+ '<input class=w500px type=text maxLength=500 name=S_' + JA[1] + '_WEBSITE_IMAGE id=S_' + JA[1] + '_WEBSITE_IMAGE size=50 value="' + JA[6] + '" onChange="o.gtz(w,\'' + JA[1] + '\',\'WEBSITE\')">\n'
	+ '<br><font size="+1">Or,</font> point and click choose from your web hosting:\n'
	+ makechooselinks(JA[1],'WEBSITE','IMAGE')

	+ '</td></tr><tr><td class=bw>'
	+ '(optional) '
	+ help("AdjustDisplay.htm")
	+ '<a href="javascript:o.adj(w,\'' + JA[1] + '\',\'WEBSITE\')" title="Adjust the display size of this image (opens a new window)">Adjust display width and height</a>\n'
	+ '<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_WEBSITE_IMAGEW id=S_' + JA[1] + '_WEBSITE_IMAGEW size=4 value="' + JA[7] + '">Width&nbsp;<input type=text onChange="this.value=o.ino(this.value,1)" maxLength=4 name=S_' + JA[1] + '_WEBSITE_IMAGEH id=S_' + JA[1] + '_WEBSITE_IMAGEH size=4 value="' + JA[8] + '">Height\n'
	+ makeab(JA[1],'WEBSITE',JA[14],JA[16])
	+ '</td></tr></tbody></table>';
}
window.onerror=null;
jsloaded=1;