<!--
//a comicgenesis webpage template creation script by c.w.
//cwcomics.comicgenesis.com

function checkgetforms()
{
quitrun = 0;

form = document.getElementById("bigform");

title = form.title.value;
if (title == 'Comic Title' || title == '') 
	{
	alert('Please Input a Title.');
	quitrun = 1;
	};

url = form.url.value;
if (url == 'Comicgenesis Username' || url == '') 
	{
	alert('Please Input a Username.');
	quitrun = 1;
	};

subtitle = form.subtitle.value;
if (subtitle == 'Subtitle or Tagline') 
	{
	subtitle = '';
	};

author = form.author.value;
if (author == 'Author') 
	{
	author = '';
	};

titledate = form.titledate.checked;

mainarchive = form.mainarchive.checked;
mainabout = form.mainabout.checked;
mainlinks = form.mainlinks.checked;
maincontact = form.maincontact.checked;

maincontactext = form.maincontactext.value;
if (maincontactext == 'Email (i.e. whatever@youremail.is)') 
	{
	maincontactext = '';
	};

mainsupport = form.mainsupport.checked;
mainshop = form.mainshop.checked;

mainshopext = form.mainshopext.value;
if (mainshopext == 'Shop Address (i.e. http://www.cafepress.com/)') 
	{
	mainshopext = '';
	};

maincast = form.maincast.checked;
mainforum = form.mainforum.checked;

mainforumext = form.mainforumext.value;
if (mainforumext == 'Forum Address (i.e. http://forums.comicgenesis.com/)') 
	{
	mainforumext = '';
	};

mainwiki = form.mainwiki.checked;

mainwikiext = form.mainwikiext.value;
if (mainwikiext == 'Wiki Address (i.e. http://cgwiki.comicgenesis.com/)') 
	{
	mainwikiext = '';
	};

mainfanart = form.mainfanart.checked;
mainnews = form.mainnews.checked;
mainblog = form.mainblog.checked;

mainblogext = form.mainblogext.value;
if (mainblogext == 'Blog Address (i.e. http://www.livejournal.com/)') 
	{
	mainblogext = '';
	};

maingallery = form.maingallery.checked;

maingalleryext = form.maingalleryext.value;
if (maingalleryext == 'Gallery Address (i.e. http://www.deviantart.com/)') 
	{
	maingalleryext = '';
	};

mainextras = form.mainextras.checked;

mainother0 = form.mainother0.value;
if (mainother0 == 'Other') 
	{
	mainother0 = '';
	};

mainother1 = form.mainother1.value;
if (mainother1 == 'Other') 
	{
	mainother1 = '';
	};

mainother2 = form.mainother2.value;
if (mainother2 == 'Other') 
	{
	mainother2 = '';
	};

above = form.above.checked;
below = form.below.checked;

if ((above == false) && (below == false))
	{
	alert('Please choose where to place navigation.');
	quitrun = 1;
	};

newsconfirm = 0;
iframe = form.iframe.checked;
if (iframe == true)
	{
	newsconfirm++
	};
indexupdate = form.indexupdate.checked;
if (indexupdate == true)
	{
	newsconfirm++
	};
blogupdate = form.blogupdate.value;
if (blogupdate == 'From external blog (i.e. http://www.livejournal.com/)') 
	{
	blogupdate = '';
	};
if (blogupdate != '')
	{
	newsconfirm++
	};
newsnotes = 0;
notes = form.notes.checked;
if (notes == true)
	{
	newsconfirm++
	};

if (newsconfirm > 1)
	{
	alert('Please only choose one news option');
	quitrun = 1;
	};

secarchive = form.secarchive.checked;
secabout = form.secabout.checked;
seclinks = form.seclinks.checked;
seccontact = form.seccontact.checked;

seccontactext = form.seccontactext.value;
if (seccontactext == 'Email (i.e. whatever@youremail.is)') 
	{
	seccontactext = '';
	};

secsupport = form.secsupport.checked;
secshop = form.secshop.checked;

secshopext = form.secshopext.value;
if (secshopext == 'Shop Address (i.e. http://www.cafepress.com/)') 
	{
	secshopext = '';
	};

seccast = form.seccast.checked;

secforum = form.secforum.checked;

secforumext = form.secforumext.value;
if (secforumext == 'Forum Address (i.e. http://forums.comicgenesis.com/)') 
	{
	secforumext = '';
	};

secwiki = form.secwiki.checked;

secwikiext = form.secwikiext.value;
if (secwikiext == 'Wiki Address (i.e. http://cgwiki.comicgenesis.com/)') 
	{
	secwikiext = '';
	};

secfanart = form.secfanart.checked;
secnews = form.secnews.checked;
secblog = form.secblog.checked;

secblogext = form.secblogext.value;
if (secblogext == 'Blog Address (i.e. http://www.livejournal.com/)') 
	{
	secblogext = '';
	};

secgallery = form.secgallery.checked;

secgalleryext = form.secgalleryext.value;
if (secgalleryext == 'Gallery Address (i.e. http://www.deviantart.com/)') 
	{
	secgalleryext = '';
	};

secextras = form.secextras.checked;

secother0 = form.secother0.value;
if (secother0 == 'Other') 
	{
	secother0 = '';
	};

secother1 = form.secother1.value;
if (secother1 == 'Other') 
	{
	secother1 = '';
	};

secother2 = form.secother2.value;
if (secother2 == 'Other') 
	{
	secother2 = '';
	};

titlesubimg = form.titlesubimg.checked;

};

function makehtml()
{

checkgetforms();

if (quitrun == 1)
	{
	index.value = 'ERROR\'D';
	return;
	};

archive = 0;
about = 0 ;
links = 0 ;
contact  = 0 ;
support = 0 ;
shop  = 0 ;
cast = 0 ;
forum  = 0 ;
wiki  = 0 ;
fanart = 0 ;
newscheck = 0 ;
blog  = 0 ;
gallery  = 0 ;
extras = 0 ;
mother0 = 0 ;
mother1 = 0 ;
mother2 = 0 ;
sother0 = 0 ;
sother1 = 0 ;
sother2 = 0 ;


// -------------------------------------------------------------------------------------- HTML BEGINNING AND ENDING CODE

htmlhead = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<meta name="Generator" content="ComicGenesis HTML Generator BETA-4.1">\n';

if (titledate == true)
	{
	htmlbegin = htmlhead + '<title>' + title + ' - ***' + 'todays_date***</title>\n<link rel="stylesheet" type="text/css" media="screen" href="/screen.css" >\n<link rel="stylesheet" type="text/css" media="handheld" href="/handheld.css" >\n<link rel="stylesheet" type="text/css" media="print" href="/print.css" >\n</head>\n\n<body>\n\n<div id="ad">\n***' + 'advertisement***\n</div>\n\n'
	}
	else
	{
	htmlbegin = htmlhead + '<title>' + title + '</title>\n<link rel="stylesheet" type="text/css" media="screen" href="/screen.css" >\n<link rel="stylesheet" type="text/css" media="handheld" href="/handheld.css" >\n<link rel="stylesheet" type="text/css" media="print" href="/print.css" >\n</head>\n\n<body>\n\n<div id="ad">\n***' + 'advertisement***\n</div>\n\n'
	};

htmlend ='</div>\n<div id="footer">\n<p>' + title + ' is hosted on <a href="http://www.comicgenesis.com/">Comic Genesis</a>, a free webhosting and site automation service for webcomics.<br><a href="http://cwcomics.comicgenesis.com/generator">Html assistance</a> by <a href="http://cwcomics.comicgenesis.com">c.w.</a><span class="csscredit"> - see css file for css author.</span></p>\n</div>\n</body>\n</html>'

// ---------------------------------------------------------------------------------------------------------- TITLE CODE

if (subtitle != '')
	{
	subtitle = '\t<h2 class="subtitle">' + subtitle + '</h2>\n';
	};

if (author !='')
	{
	author = '\t<h3 class="author">' + author + '</h3>\n';
	}
	
if (titlesubimg == true)
	{
	titlebanner = '\t<a href="http://' + url + '.comicgenesis.com">\n<img src="/images/banner.jpg" alt="' + title + '">\n</a>\n'
	}
	else
	{
	titlebanner = '\t<h1 class="title"><a href="http://' + url + '.comicgenesis.com">' + title + '</a></h1>\n' + subtitle + author
	};

// ---------------------------------------------------------------------------------------------------------- MAIN LINKS

if (mainarchive == true)
	{
	mainarchive = '\t<li id="marchive"><a href="/archive.html">Archive</a></li>\n';
	archive = 1;
	}
	else {mainarchive = '';};
if (mainabout == true)
	{
	mainabout = '\t<li id="mabout"><a href="/about.html">About</a></li>\n';
	about = 1;
	}
	else {mainabout = '';};
if (mainlinks == true)
	{
	mainlinks = '\t<li id="mlinks"><a href="/links.html">Links</a></li>\n';
	links = 1;
	}
	else {mainlinks = '';};

if (maincontact != true)
	{
	maincontact = '';
	};
if ((maincontact == true) && (maincontactext == ''))
	{
	maincontact = '\t<li id="mcontact"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nContact links default to going to /contact.html\nIf you desire it to simply open an email window, change the below to mailto:youremailaddress@whatever.com-->\n\n/contact.html\n\n">Contact</a></li>\n';
	contact = 1;
	};
if ((maincontact == true) && (maincontactext != ''))
	{
	maincontact = '\t<li id="mcontact"><a href="mailto:' + maincontactext + '">Contact</a></li>\n';
	};

if (mainshop != true)
	{
	mainshop = '';
	};
if (mainsupport == true)
	{
	mainsupport = '\t<li id="msupport"><a href="/support.html">Support</a></li>\n';
	support = 1;
	}
	else {mainsupport = '';};

if ((mainshop == true) && (mainshopext == ''))
	{
	mainshop = '\t<li id="mshop"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nShop links default to going to /shop.html\nIf you wish it to go to an external site (i.e. cafepress), change /shop.html to the address of your shop-->\n\n/shop.html\n\n">Shop</a></li>\n';
	shop = 1;
	}
if ((mainshop == true) && (mainshopext != ''))
	{
	mainshop = '\t<li id="mshop"><a href="' + mainshopext + '">Shop</a></li>\n';
	};

if (maincast == true)
	{
	maincast = '\t<li id="mcast"><a href="/cast.html">Cast</a></li>\n';
	cast = 1;
	}
	else {maincast = '';};

if (mainforum != true)
	{
	mainforum = '';
	};
if ((mainforum == true) && (mainforumext == ''))
	{
	mainforum = '\t<li id="mforum"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nForum links default to going to /forum.html\nIn virtually every case, you must change /forum.html to the address of your form-->\n\n/forum.html\n\n">Forum</a></li>\n';
	forum = 1;
	}
if ((mainforum == true) && (mainforumext != ''))
	{
	mainforum = '\t<li id="mforum"><a href="' + mainforumext + '">Forum</a></li>\n';
	};


if (mainwiki != true)
	{
	mainwiki = '';
	};
if ((mainwiki == true) && (mainwikiext == ''))
	{
	mainwiki = '\t<li id="mwiki"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nWiki links default to going to /wiki.html\nIn virtually every case, you must change /wiki.html to the address of your wikipage-->\n\n/wiki.html\n\n">Wiki</a></li>\n';
	wiki = 1;
	}
if ((mainwiki == true) && (mainwikiext != ''))
	{
	mainwiki = '\t<li id="mwiki"><a href="' + mainwikiext + '">Wiki</a></li>\n';
	};


if (mainfanart == true)
	{
	mainfanart = '\t<li id="mfanart"><a href="/fanart.html">Fan Art</a></li>\n';
	fanart = 1;
	}
	else {mainfanart = '';};
if (mainnews == true)
	{
	mainnews = '\t<li id="mnews"><a href="/news.html">News</a></li>\n';
	newscheck = 1;
	}
	else {mainnews = '';};

if (mainblog != true)
	{
	mainblog = '';
	};
if ((mainblog == true) && (mainblogext ==''))
	{
	mainblog = '\t<li id="mblog"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nBlog links default to going to /blog.html\nIf you wish it to go to an external site (i.e. livejournal), change /blog.html to the address of your blog-->\n\n/blog.html\n\n">Blog</a></li>\n';
	blog = 1;
	}
if ((mainblog == true) && (mainblogext != ''))
	{
	mainblog = '\t<li id="mblog"><a href="' + mainblogext + '">Blog</a></li>\n';
	};

if (maingallery != true)
	{
	maingallery = '';
	};
if ((maingallery == true) && (maingalleryext == ''))
	{
	maingallery = '\t<li id="mgallery"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nGallery links default to going to /gallery.html\nIf you wish it to go to an external site (i.e. deviantart), change /gallery.html to the address of your gallery-->\n\n/gallery.html\n\n">Gallery</a></li>\n';
	gallery = 1;
	}
if ((maingallery == true) && (maingalleryext != ''))
	{
	maingallery = '\t<li id="mgallery"><a href="' + maingalleryext + '">Gallery</a></li>\n';
	};

if (mainextras == true)
	{
	mainextras = '\t<li id="mextras"><a href="/Extras.html">Extras</a></li>\n';
	extras = 1;
	}
	else {mainextras = '';};
if (mainother0 != "")
	{
	mainother0 = '\t<li id="mother0"><a href="/mother0.html">' + mainother0 + '</a></li>\n';
	mother0 = 1;
	}
if (mainother1 != "")
	{
	mainother1 = '\t<li id="mother1"><a href="/mother1.html">' + mainother1 + '</a></li>\n';
	mother1 = 1;
	}
if (mainother2 != "")
	{
	mainother2 = '\t<li id="mother2"><a href="/mother2.html">' + mainother2 + '</a></li>\n';
	mother2 = 1;
	}

main = '';

if (mainarchive + mainabout + mainlinks + maincontact + mainsupport + mainshop + maincast + mainforum + mainwiki + mainfanart + mainnews + mainblog + maingallery + mainextras + mainother0 + mainother1 + mainother2 != '')
	{
	main = '\t<ul>\n' + mainarchive + mainabout + mainlinks + maincontact + mainsupport + mainshop + maincast + mainforum + mainwiki + mainfanart + mainnews + mainblog + maingallery + mainextras + mainother0 + mainother1 + mainother2 + '\t</ul>\n';
	};

// ----------------------------------------------------------------------------------------------------------- COMIC CODE

nav = '\t<li class="first">***' + 'first_day***</li>\n\t<li class="previous">***' + 'previous_day***</li>\n\t<li class="next">***' + 'next_day***</li>\n\t<li class="last">***' + 'last_day***</li>\n'

if (above == true)
	{
	above = '\t<div id="abovenav" class="nav">\n\t<ul>\n' + nav + '\t</ul>\n\t</div>\n';
	}
	else {above = '';};

if (below == true)
	{
	below = '\t<div id="belownav" class="nav">\n\t<ul>\n' + nav + '\t</ul>\n\t</div>\n';
	}
	else {below = '';};

comic = '<div class="main">\n' + above + '\n\t\t<div class="comic">\n\t\t***' + 'todays_comics***\n\t\t</div>\n\n' + below + '</div>\n\n';

// ----------------------------------------------------------------------------------------------------------- NEWS CODE

news = '';
makenewshtml = false;

if (iframe == true)
	{
	news = '<div class="news">\n<iframe src="/news.html"><a href="/news.html">Read the News</a></iframe>\n</div>\n\n'
	makenewshtml = true;
	};

if (indexupdate == true)
	{
	news = '<div class="news">\n<h1>News</h1>\n<h2>\n\n<!-- Subject of news post goes below here -->\n\n---Subject---\n\n<!-- Subject of news post goes above here -->\n</h2>\n<p>\n\n<!-- Body of news post goes below here -->\n\n---Body---\n\n<!-- Body of news post goes above here -->\n</p>\n</div>\n\n'
	};

if (blogupdate != '')
	{
	news = '<div class="news">\n<iframe src="' + blogupdate + '"><a href="' + blogupdate + '">Read the News</a></iframe>\n</div>\n\n'
	};

if (notes == true)
	{
	news = '<div class="news">\n<h1>News</h1>\n**' + '*todays_notes***\n</div>\n\n'
	newsnotes = 1
	};

// ---------------------------------------------------------------------------------------------------------- SEC LINKS

if (secarchive == true)
	{
	secarchive = '\t<li id="sarchive"><a href="/archive.html">Archive</a></li>\n';
	archive = 1;
	}
	else {secarchive = '';};
if (secabout == true)
	{
	secabout = '\t<li id="sabout"><a href="/about.html">About</a></li>\n';
	about = 1;
	}
	else {secabout = '';};
if (seclinks == true)
	{
	seclinks = '\t<li id="slinks"><a href="/links.html">Links</a></li>\n';
	links = 1;
	}
	else {seclinks = '';};

if (seccontact != true)
	{
	seccontact = '';
	};
if ((seccontact == true) && (seccontactext == ''))
	{
	seccontact = '\t<li id="scontact"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nContact links default to going to /contact.html\nIf you desire it to simply open an email window, change the below to mailto:youremailaddress@whatever.com-->\n\n/contact.html\n\n">Contact</a></li>\n';
	contact = 1;
	};
if ((seccontact == true) && (seccontactext != ''))
	{
	seccontact = '\t<li id="scontact"><a href="mailto:' + seccontactext + '">Contact</a></li>\n';
	};

if (secsupport == true)
	{
	secsupport = '\t<li id="ssupport"><a href="/support.html">Support</a></li>\n';
	support = 1;
	}
	else {secsupport = '';};

if (secshop != true)
	{
	secshop = '';
	};
if ((secshop == true) && (secshopext == ''))
	{
	secshop = '\t<li id="sshop"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nShop links default to going to /shop.html\nIf you wish it to go to an external site (i.e. cafepress), change /shop.html to the address of your shop-->\n\n/shop.html\n\n">Shop</a></li>\n';
	shop = 1;
	}
if ((secshop == true) && (secshopext != ''))
	{
	secshop = '\t<li id="sshop"><a href="' + secshopext + '">Shop</a></li>\n';
	};

if (seccast == true)
	{
	seccast = '\t<li id="scast"><a href="/cast.html">Cast</a></li>\n';
	cast = 1;
	}
	else {seccast = '';};

if (secforum != true)
	{
	secforum = '';
	};
if ((secforum == true) && (secforumext == ''))
	{
	secforum = '\t<li id="sforum"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nForum links default to going to /forum.html\nIn virtually every case, you must change /forum.html to the address of your form-->\n\n/forum.html\n\n">Forum</a></li>\n';
	forum = 1;
	}
if ((secforum == true) && (secforumext != ''))
	{
	secforum = '\t<li id="sforum"><a href="' + secforumext + '">Forum</a></li>\n';
	};

if (secwiki != true)
	{
	secwiki = '';
	};
if ((secwiki == true) && (secwikiext == ''))
	{
	secwiki = '\t<li id="swiki"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nWiki links default to going to /wiki.html\nIn virtually every case, you must change /wiki.html to the address of your wikipage-->\n\n/wiki.html\n\n">Wiki</a></li>\n';
	wiki = 1;
	}
if ((secwiki == true) && (secwikiext != ''))
	{
	secwiki = '\t<li id="swiki"><a href="' + secwikiext + '">Wiki</a></li>\n';
	};


if (secfanart == true)
	{
	secfanart = '\t<li id="sfanart"><a href="/fanart.html">Fan Art</a></li>\n';
	fanart = 1;
	}
	else {secfanart = '';};
if (secnews == true)
	{
	secnews = '\t<li id="snews"><a href="/news.html">News</a></li>\n';
	newscheck = 1;
	}
	else {secnews = '';};

if (secblog != true)
	{
	secblog = '';
	};
if ((secblog == true) && (secblogext ==''))
	{
	secblog = '\t<li id="sblog"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nBlog links default to going to /blog.html\nIf you wish it to go to an external site (i.e. livejournal), change /blog.html to the address of your blog-->\n\n/blog.html\n\n">Blog</a></li>\n';
	blog = 1;
	}
if ((secblog == true) && (secblogext != ''))
	{
	secblog = '\t<li id="sblog"><a href="' + secblogext + '">Blog</a></li>\n';
	};


if (secgallery != true)
	{
	secgallery = '';
	};
if ((secgallery == true) && (secgalleryext == ''))
	{
	secgallery = '\t<li id="sgallery"><a href="\n\n<!-- POSSIBLE MANUAL EDIT\nGallery links default to going to /gallery.html\nIf you wish it to go to an external site (i.e. deviantart), change /gallery.html to the address of your gallery-->\n\n/gallery.html\n\n">Gallery</a></li>\n';
	gallery = 1;
	}
if ((secgallery == true) && (secgalleryext != ''))
	{
	secgallery = '\t<li id="sgallery"><a href="' + secgalleryext + '">Gallery</a></li>\n';
	};


if (secextras == true)
	{
	secextras = '\t<li id="sextras"><a href="/Extras.html">Extras</a></li>\n';
	extras = 1;
	}
	else {secextras = '';};
if (secother0 != "")
	{
	secother0 = '\t<li id="sother0"><a href="/mother0.html">' + secother0 + '</a></li>\n';
	mother0 = 1;
	}
if (secother1 != "")
	{
	secother1 = '\t<li id="sother1"><a href="/mother1.html">' + secother1 + '</a></li>\n';
	mother1 = 1;
	}
if (secother2 != "")
	{
	secother2 = '\t<li id="sother2"><a href="/mother2.html">' + secother2 + '</a></li>\n';
	mother2 = 1;
	}

secondary = '';

if (secarchive + secabout + seclinks + seccontact + secsupport + secshop + seccast + secforum + secwiki + secfanart + secnews + secblog + secgallery + secextras + secother0 + secother1 + secother2 != '')
	{
	secondary = '<div class="secondarylinks">\n\t<ul>\n' + secarchive + secabout + seclinks + seccontact + secsupport + secshop + seccast + secforum + secwiki + secfanart + secnews + secblog + secgallery + secextras + secother0 + secother1 + secother2 + '\t</ul>\n</div>\n\n';
	};

// ---------------------------------------------------------------------------------------------------------- SEC PAGES

if (archive == 1) {archive = 'archive.html\n';} else {archive = ''}
if (about == 1) {about = 'about.html\n';} else {about = ''}
if (links == 1) {links = 'links.html\n';} else {links = ''}
if (contact == 1) {contact = 'contact.html\n';} else {contact = ''}
if (support == 1) {support = 'support.html\n';} else {support = ''}
if (shop == 1) {shop = 'shop.html\n';} else {shop = ''}
if (cast == 1) {cast = 'cast.html\n';} else {cast = ''}
if (forum == 1) {forum = 'forum.html\n';} else {forum = ''}
if (wiki == 1) {wiki = 'wiki.html\n';} else {wiki = ''}
if (fanart == 1) {fanart = 'fanart.html\n';} else {fanart = ''}
if (newscheck == 1) {newsckeck = 'news.html\n';} else {newscheck = ''}
if (blog == 1) {blog = 'blog.html\n';} else {blog = ''}
if (gallery == 1) {gallery = 'gallery.html\n';} else {gallery = ''}
if (extras == 1) {extras = 'extras.html\n';} else {extras = ''}
if (mother0 == 1) {mother0 = 'mother0.html\n';} else {mother0 = ''}
if (mother1 == 1) {mother1 = 'mother1.html\n';} else {mother1 = ''}
if (mother2 == 1) {mother2 = 'mother2.html\n';} else {mother2 = ''}
if (sother0 == 1) {sother0 = 'sother0.html\n';} else {sother0 = ''}
if (sother1 == 1) {sother1 = 'sother1.html\n';} else {sother1 = ''}
if (sother2 == 1) {sother2 = 'sother2.html\n';} else {sother2 = ''}
	
secbegin = '<div class="extrapage">\n<!-- MAKE THE FOLLOWING FILES.\n\n' + archive + about + links + contact  + support + shop  + cast + forum  + wiki  + fanart + blog  + gallery  + extras + mother0 + mother1 + mother2 + sother0 + sother1 + sother2 + '\n\nPlease save this file to somewhere safe, then edit it according to the following instructions to make the above files.  Below are chunks of code you may use to construct your extra pages.\n\nPLEASE NOTE THAT A VERY BASIC UNDERSTANDING OF HTML WOULD BE A VERY GOOD IDEA AT THIS POINT.-->\n\n<!-- YOU MAY INSERT MULTIPLE INSTANCES OF THE SAME CODE CHUNK BELOW THIS COMMENT.-->\n\n'

seclist = '<!-- Use this code for lists of items. (Archive, Links, Extras)-->\n\n<div class="list">\n<h2> Use h2 tag for the heading above the text </h2>\n\t<ul>\n\t<li> Put item here </li>\n\t<li> Put second item here </li>\n\t<li> Add more li tags for more items </li>\n\t<li> Always keep li tags betwen the ul tags </li>\n\t</ul>\n</div>\n\n'
secrant = '<!-- Use this code for large blocks of text. (About, Support, News, Blog, Extras) -->\n\n<div class="rant">\n<h2> Use h2 tag for the heading above the text </h2>\n<p> Use p tag for the block of text.  Multiple p and h2 tags are allowed.\nh2 tag is not required. Similar to the list code, keep h2 and p within div class=rant.</p>\n</div>\n\n'
secgal = '<!-- Use this code when you have an image accompanied by text (Fan Art, Gallery, Extras) -->\n\n<div class="gal">\n<img src="images/putthenameofthepicturehere.jpg" alt="put a description of the picture here.">\n<h2> The h2 tag again - same rules apply </h2>\n<p> The p tag again - same rules apply </p>\n</div>\n\n'

secend = '<!-- YOU MAY INSERT MULTIPLE INSTANCES OF THE SAME CODE CHUNK ABOVE THIS COMMENT.-->\n\n</div>\n'

secpage = secbegin + seclist + secrant + secgal + secend

htmlindex = htmlbegin + '<div class="container" id="index">\n\n<div class="header">\n' + titlebanner + main + '</div>\n\n' + comic + news + secondary + htmlend;
htmldaily = htmlbegin + '<div class="container" id="daily">\n\n<div class="header">\n' + titlebanner + main + '</div>\n\n' + comic + htmlend;
htmlsec = htmlbegin + '<div class="container" id="extrapage">\n\n<div class="header">\n' + titlebanner + main + '</div>\n\n' + secpage + htmlend;
htmlnews = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n<title>' + title + '</title>\n\t<link rel="stylesheet" type="text/css" media="screen" href="/screen.css" >\n</head>\n\n<body>\n\n<div class="container" id="news">\n\n' + secbegin + secrant + secend + '</div>\n\n</body>\n</html>';

if (newsnotes == 1)
{
htmldaily = htmlbegin + '<div class="header">\n' + titlebanner + main + '</div>\n\n' + comic + news + htmlend;
};

document.getElementById("index").value = htmlindex;
document.getElementById("daily").value = htmldaily;
document.getElementById("sec").value = htmlsec;
document.getElementById("newspage").value = htmlnews;

};

function select(thing)
{
document.getElementById(thing).focus();
document.getElementById(thing).select();
};

function begin()
{
sections = 
[
'section1',
'section2',
'section3',
'section4',
'section5',
'section6',
'section7',
];
for (i in sections)
{
document.getElementById(sections[i]).style.display = 'none';
};

document.getElementById('section1').style.display = 'block';
currentsection = 0;

hiddeninputs = 
[
'maincontactext',
'mainshopext',
'mainforumext',
'mainwikiext',
'mainblogext',
'maingalleryext',
'seccontactext',
'secshopext',
'secforumext',
'secwikiext',
'secblogext',
'secgalleryext',
];
for (i in hiddeninputs)
{
document.getElementById(hiddeninputs[i]).style.display = 'none';
};

};

function go(direction)
{
if ((currentsection <= 0) && (direction == 0))
	{
	return;
	};
if ((currentsection >= (sections.length - 1)) && (direction == 1))
	{
	window.location = "css.html"
	};


if (direction == 0)
	{
	document.getElementById(sections[currentsection]).style.display = 'none';
	currentsection--;
	document.getElementById(sections[currentsection]).style.display = 'block';
	return;
	};
if ((direction == 1) && (currentsection == 1))
	{
	stayhere = 0;
	form = document.getElementById("bigform");
	maincontact = form.maincontact.checked;
	mainshop = form.mainshop.checked;
	mainforum = form.mainforum.checked;
	mainwiki = form.mainwiki.checked;
	mainblog = form.mainblog.checked;
	maingallery = form.maingallery.checked;
	maingoahead = form.maingoahead.checked;
	maincontactext = form.maincontactext.value;
	mainshopext = form.mainshopext.value;
	mainforumext = form.mainforumext.value;
	mainwikiext = form.mainwikiext.value;
	mainblogext = form.mainblogext.value;
	maingalleryext = form.maingalleryext.value;
	if ((maincontact == true) && ((maincontactext == '') || (maincontactext == 'Email (i.e. whatever@youremail.is)')))
		{
		alert('Warning: You did not input your email address!');
		stayhere = 1;
		};
	if ((mainshop == true) && ((mainshopext == '') || (mainshopext == 'Shop Address (i.e. http://www.cafepress.com/)')))
		{
		alert('Warning: You did not input the address of your shop!');
		stayhere = 1;
		};
	if ((mainforum == true) && ((mainforumext == '') || (mainforumext == 'Forum Address (i.e. http://forums.comicgenesis.com/)')))
		{
		alert('Warning: You did not input the address of your forum!');
		stayhere = 1;
		};
	if ((mainwiki == true) && ((mainwikiext == '') || (mainwikiext == 'Wiki Address (i.e. http://cgwiki.comicgenesis.com/)')))
		{
		alert('Warning: You did not input the address of your wiki page!');
		stayhere = 1;
		};
	if ((mainblog == true) && ((mainblogext == '') || (mainblogext == 'Blog Address (i.e. http://www.livejournal.com/)')))
		{
		alert('Warning: You did not input the address of your blog!');
		stayhere = 1;
		};
	if ((maingallery == true) && ((maingalleryext == '') || (maingalleryext == 'Gallery Address (i.e. http://www.deviantart.com/)')))
		{
		alert('Warning: You did not input the address of your gallery!');
		stayhere = 1;
		};
	if (maingoahead == true) {stayhere = 0;};
	if (stayhere == 1) {return;};
	};

if ((direction == 1) && (currentsection == 2))
	{
	form = document.getElementById("bigform");
	above = form.above.checked;
	below = form.below.checked;
	if ((above == false) && (below == false))
		{
		alert('Please choose where to place navigation.');
		quitrun = 1;
		return;
		};
	};
if ((direction == 1) && (currentsection == 3))
	{
	form = document.getElementById("bigform");
	newsconfirm = 0;
	notes = form.notes.checked;
	if (notes == true)
		{
		newsconfirm++;
		};
	iframe = form.iframe.checked;
	if (iframe == true)
		{
		newsconfirm++;
		};
	indexupdate = form.indexupdate.checked;
	if (indexupdate == true)
		{
		newsconfirm++;
		};
	blogupdate = form.blogupdate.value;
	if (blogupdate == 'From external blog (i.e. http://www.livejournal.com/)') 
		{
		blogupdate = '';
		};
	if (blogupdate != '')
		{
		newsconfirm++;
		};
	if (newsconfirm > 1)
		{
		alert('Please only choose one news option');
		quitrun = 1;
		return;
		};
	};
if ((direction == 1) && (currentsection == 4))
	{
	stayhere = 0;
	form = document.getElementById("bigform");
	seccontact = form.seccontact.checked;
	secshop = form.secshop.checked;
	secforum = form.secforum.checked;
	secwiki = form.secwiki.checked;
	secblog = form.secblog.checked;
	secgallery = form.secgallery.checked;
	secgoahead = form.secgoahead.checked;
	seccontactext = form.seccontactext.value;
	secshopext = form.secshopext.value;
	secforumext = form.secforumext.value;
	secwikiext = form.secwikiext.value;
	secblogext = form.secblogext.value;
	secgalleryext = form.secgalleryext.value;
	if ((seccontact == true) && ((seccontactext == '') || (seccontactext == 'Email (i.e. whatever@youremail.is)')))
		{
		alert('Warning: You did not input your email address!');
		stayhere = 1;
		};
	if ((secshop == true) && ((secshopext == '') || (secshopext == 'Shop Address (i.e. http://www.cafepress.com/)')))
		{
		alert('Warning: You did not input the address of your shop!');
		stayhere = 1;
		};
	if ((secforum == true) && ((secforumext == '') || (secforumext == 'Forum Address (i.e. http://forums.comicgenesis.com/)')))
		{
		alert('Warning: You did not input the address of your forum!');
		stayhere = 1;
		};
	if ((secwiki == true) && ((secwikiext == '') || (secwikiext == 'Wiki Address (i.e. http://cgwiki.comicgenesis.com/)')))
		{
		alert('Warning: You did not input the address of your wiki page!');
		stayhere = 1;
		};
	if ((secblog == true) && ((secblogext == '') || (secblogext == 'Blog Address (i.e. http://www.livejournal.com/)')))
		{
		alert('Warning: You did not input the address of your blog!');
		stayhere = 1;
		};
	if ((secgallery == true) && ((secgalleryext == '') || (secgalleryext == 'Gallery Address (i.e. http://www.deviantart.com/)')))
		{
		alert('Warning: You did not input the address of your gallery!');
		stayhere = 1;
		};
	if (secgoahead == true) {stayhere = 0;};
	if (stayhere == 1) {return;};
	makehtml();
	};
if ((direction == 1) && (currentsection == 5))
	{
	form = document.getElementById("bigform");
	mainarchve = form.mainarchive.checked;
	mainabout = form.mainabout.checked;
	mainlinks = form.mainlinks.checked;
	mainsupport = form.mainsupport.checked;
	maincast = form.maincast.checked;
	mainfanart = form.mainfanart.checked;
	mainnews = form.mainnews.checked;
	mainextras = form.mainextras.checked;
	maingoahead = form.maingoahead.checked;
	mainother1 = form.mainother1.value;
	mainother2 = form.mainother2.value;
	mainother0 = form.mainother0.value;
	secarchve = form.secarchive.checked;
	secabout = form.secabout.checked;
	seclinks = form.seclinks.checked;
	secsupport = form.secsupport.checked;
	seccast = form.seccast.checked;
	secfanart = form.secfanart.checked;
	secnews = form.secnews.checked;
	secextras = form.secextras.checked;
	secgoahead = form.secgoahead.checked;
	secother1 = form.secother1.value;
	secother2 = form.secother2.value;
	secother0 = form.secother0.value;
	if (mainother1 == ('Other' || ''))
	{mainother1 = false};
	if (mainother2 == ('Other' || ''))
	{mainother2 = false};
	if (mainother1 == ('Other' || ''))
	{mainother2 = false};
	if (secother1 == ('Other' || ''))
	{secother1 = false};
	if (secother2 == ('Other' || ''))
	{secother2 = false};
	if (secother1 == ('Other' || ''))
	{secother2 = false};
	gonutboygo = 0;
	
	if ((mainarchve || mainabout || mainlinks || mainsupport || maincast || mainfanart || mainnews || mainextras || maingoahead || mainother1 || mainother2 || mainother0 || secarchve || secabout || seclinks || secsupport || seccast || secfanart || secnews || secextras || secgoahead || secother1 || secother2 || secother0) == true)
	{gonutboygo = 1};

	if (makenewshtml != true)
		{
		document.getElementById('newsgen').style.display = 'none';
		}
		else
		{
		document.getElementById('newsgen').style.display = 'block';
		};

	if (gonutboygo == 0) {window.location = "css.html"};
	};

if (direction == 1)
	{
	form = document.getElementById("bigform");
	title = form.title.value;
	if (title == 'Comic Title' || title == '') 
		{
		alert('Please input a title.');
		quitrun = 1;
		return;
		};
	url = form.url.value;
	if (url == 'Comicgenesis Username' || url == '') 
		{
		alert('Please input your Username.');
		quitrun = 1;
		return;
		};
	document.getElementById(sections[currentsection]).style.display = 'none';
	currentsection++;
	document.getElementById(sections[currentsection]).style.display = 'block';
	return;
	};

};


function toggle(ID)
{
	if (document.getElementById(ID).style.display == 'none')
	{
	document.getElementById(ID).style.display = 'block';
	}
	else
	{
	document.getElementById(ID).style.display = 'none';
	};
};


//-->