'<td><label for="first">&nbsp;First name: </label></td>'+
'<td><input type="text" tabindex=1 id="first"></td></tr>'+
'<tr><td><label for="coauthors">&nbsp;Coauthors: </label></td>'+
'<td><input type="text" tabindex=1 id="coauthors"></td>'+
'<td><label for="date">&nbsp;Publication date: </label></td>'+
'<td><input type="text" tabindex=1 id="date"></td></tr>'+
'<tr><td><label for="title">&nbsp;Title: </label></td>'+
'<td><input type="text" tabindex=1 id="title"></td>'+
'<td><label for="journal">&nbsp;Journal: </label></td>'+
'<td><input type="text" tabindex=1 id="journal"></td></tr>'+
'<tr><td><label for="publisher">&nbsp;Publisher: </label></td>'+
'<td><input type="text" tabindex=1 id="publisher"></td>'+
'<td><label for="location">&nbsp;Location: </label></td>'+
'<td><input type="text" tabindex=1 id="location"></td></tr>'+
'<tr><td><label for="volume">&nbsp;Volume: </label></td>'+
'<td><input type="text" tabindex=1 id="volume"></td>'+
'<td><label for="issue">&nbsp;Issue: </label></td>'+
'<td><input type="text" tabindex=1 id="issue"></td></tr>'+
'<tr><td><label for="pages">&nbsp;Pages: </label></td>'+
'<td><input type="text" tabindex=1 id="pages"></td>'+
'<td><label for="issn">&nbsp;ISSN: </label></td>'+
'<td><input type="text" tabindex=1 id="issn"></td></tr>'+
'<tr><td><label for="oclc">&nbsp;OCLC: </label></td>'+
'<td><input type="text" tabindex=1 id="oclc"></td>'+
'<td><label for="doi">&nbsp;DOI: </label></td>'+
'<td><input type="image" src="//upload.wikimedia.org/wikipedia/commons/6/62/Arrow_out_condensed.png" tabindex=1 alt="Fetch" title="Fetch citation data for a DOI from crossref.org and fill in the other fields." onClick="pullDOI; return false;"><span><input type="text" tabindex=1 id="doi"></span></td></tr>'+
'<tr><td><label for="pmid">&nbsp;PMID: </label></td>'+
'<td><input type="image" src="//upload.wikimedia.org/wikipedia/commons/6/62/Arrow_out_condensed.png" tabindex=1 alt="Fetch" title="Fetch citation data for a PMID" onClick="pullPMID; return false;"><span><input type="text" tabindex=1 id="pmid"></span></td>'+
'<td><label for="quote">&nbsp;Quote: </label></td>'+
'<td><input type="text" tabindex=1 id="quote"></td></tr>'+
'<tr><td><label for="url">&nbsp;URL: </label></td>'+
'<td><input type="text" tabindex=1 id="url"></td>'+
'<td><label for="accessdate">&nbsp;Access date: </label></td>'+
'<td><input type="text" tabindex=1 id="accessdate"></td></tr>'+
'<tr><td><label for="language">&nbsp;Language: </label></td>'+
'<td><input type="text" tabindex=1 id="language"></td>'+
'<td><label for="refname">&nbsp;Reference name: </label></td>'+
'<td><input type="text" tabindex=1 id="refname"><input type="button" value="<Last name" onClick="lastNameToRefname"></td></tr>'+
'</table>'+
'<input type="button" value="Add citation" onClick="addcites">'+
' <input type="button" value="Preview citation" onClick="previewCitationDefault"> \
<img id="progress" src="//upload.wikimedia.org/wikipedia/commons/5/59/RefToolbar_spinning_throbber.gif" />'+
'<input type="checkbox" tabindex=1 name="verbose" id="verbose" value="verbose"><label for="verbose">Vertical form</label>'+
'<span><a href="//en.wikipedia.org/wiki/Template:'+template.replace(/ /g, '_')+'" target="_blank">[Template documentation]</a></span>'+
'</fieldset><span id="previewSpan"></span></div>';
document.getElementById('refToolFormArea').innerHTML = form;
}  
function citeEncyclopedia {
oldFormHide;
var template = "cite encyclopedia";
numforms++;
var form = '<div id="citediv'+numforms+'">'+
'<fieldset><legend>Cite encyclopedia source</legend>'+
'<table cellspacing="5">'+
'<input type="hidden" value="'+template+'" id="template">'+
'<tr><td><label for="last">&nbsp;Last name: </label></td>'+
'<td><input type="text" tabindex=1 id="last"></td>'+
'<td><label for="first">&nbsp;First name: </label></td>'+
'<td><input type="text" tabindex=1 id="first"></td></tr>'+
'<tr><td><label for="coauthors">&nbsp;Coauthors: </label></td>'+
'<td><input type="text" tabindex=1 id="coauthors"></td>'+
'<td><label for="editors">&nbsp;Editors: </label></td>'+
'<td><input type="text" tabindex=1 id="editors"></td></tr>'+
'<tr><td><label for="title">&nbsp;Entry title: </label></td>'+
'<td><input type="text" tabindex=1 id="title"></td>'+
'<td><label for="encyclopedia">&nbsp;Encyclopedia: </label></td>'+
'<td><input type="text" tabindex=1 id="encyclopedia"></td></tr>'+
'<tr><td><label for="publisher">&nbsp;Publisher: </label></td>'+
'<td><input type="text" tabindex=1 id="publisher"></td>'+
'<td><label for="location">&nbsp;Location: </label></td>'+
'<td><input type="text" tabindex=1 id="location"></td></tr>'+
'<tr><td><label for="year">&nbsp;Year: </label></td>'+
'<td><input type="text" tabindex=1 id="year"></td>'+
'<td><label for="volume">&nbsp;Volume: </label></td>'+
'<td><input type="text" tabindex=1 id="volume"></td></tr>'+
'<tr><td><label for="pages">&nbsp;Pages: </label></td>'+
'<td><input type="text" tabindex=1 id="pages"></td>'+
'<td><label for="isbn">&nbsp;ISBN: </label></td>'+
'<td><input type="text" tabindex=1 id="isbn"></td></tr>'+
'<tr><td><label for="url">&nbsp;URL: </label></td>'+
'<td><input type="text" tabindex=1 id="url"></td>'+
'<td><label for="accessdate">&nbsp;Access date: </label></td>'+
'<td><input type="text" tabindex=1 id="accessdate"></td></tr>'+
'<tr><td><label for="language">&nbsp;Language: </label></td>'+
'<td><input type="text" tabindex=1 id="language"></td>'+
'<td><label for="refname">&nbsp;Reference name: </label></td>'+
'<td><input type="text" tabindex=1 id="refname"></td></tr>'+
'</table>'+
'<input type="button" value="Add citation" onClick="addcites">'+
' <input type="button" value="Preview citation" onClick="previewCitationDefault"> \
<img id="progress" src="//upload.wikimedia.org/wikipedia/commons/5/59/RefToolbar_spinning_throbber.gif" />'+
'<input type="checkbox" tabindex=1 name="verbose" id="verbose" value="verbose"><label for="verbose">Vertical form</label>'+
'<span><a href="//en.wikipedia.org/wiki/Template:'+template.replace(/ /g, '_')+'" target="_blank">[Template documentation]</a></span>'+
'</fieldset><span id="previewSpan"></span></div>';
document.getElementById('refToolFormArea').innerHTML = form;
}  
function citePressRelease {
oldFormHide;
var template = "cite press release";
numforms++;
var form = '<div id="citediv'+numforms+'">'+
'<fieldset><legend>Cite press release</legend>'+
'<table cellspacing="5">'+
'<input type="hidden" value="'+template+'" id="template">'+
'<tr><td><label for="title">&nbsp;Title: </label></td>'+
'<td><input type="text" tabindex=1 id="title"></td>'+
'<td><label for="publisher">&nbsp;Publisher: </label></td>'+
'<td><input type="text" tabindex=1 id="publisher"></td></tr>'+
'<tr><td><label for="date">&nbsp;Date: </label></td>'+
'<td><input type="text" tabindex=1 id="date"></td>'+
'<td><label for="language">&nbsp;Language: </label></td>'+
'<td><input type="text" tabindex=1 id="language"></td></tr>'+
'<tr><td><label for="url">&nbsp;URL: </label></td>'+
'<td><input type="text" tabindex=1 id="url"></td>'+
'<td><label for="accessdate">&nbsp;Access date: </label></td>'+
'<td><input type="text" tabindex=1 id="accessdate" value="'+ getTime +'"></td></tr>'+
'<tr><td><label for="refname">&nbsp;Reference name: </label></td>'+
'<td><input type="text" tabindex=1 id="refname"></td></tr>'+
'</table>'+
'<input type="button" value="Add citation" onClick="addcites">'+
' <input type="button" value="Preview citation" onClick="previewCitationDefault"> \
<img id="progress" src="//upload.wikimedia.org/wikipedia/commons/5/59/RefToolbar_spinning_throbber.gif" />'+
'<input type="checkbox" tabindex=1 name="verbose" id="verbose" value="verbose"><label for="verbose">Vertical form</label>'+
'<span><a href="//en.wikipedia.org/wiki/Template:'+template.replace(/ /g, '_')+'" target="_blank">[Template documentation]</a></span>'+
'</fieldset><span id="previewSpan"></span></div>';
document.getElementById('refToolFormArea').innerHTML = form;
}  
function citeMap {
oldFormHide;
var template = "cite map";