// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

function showURLSlot()
{
	// IE gets ElementById from name=; Gecko needs id=

	var ss = 
"<font face='sans-serif'> \
Paste a molecule's URL into the slot \
(<a href='javascript: urlExample()'>Example</a>) \
<br><input type='text' size='50' name='url2get' id='url2get'> \
&nbsp; \
<input type='button' value='Submit' onClick='submitURL()'> \
<br><small> \
or <a href='javascript: showUploadSlot()'>Upload \
your own PDB file</a>.</small> \
</font> \
";

	document.getElementById("enterURL").innerHTML = ss;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function urlExample()
{

//	document.fgform2.url2get.value = works in IE, fails in Gecko

	document.getElementById("url2get").value =
		"http://pqs.ebi.ac.uk/pqs-doc/macmol/1k28.mmol";
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function showUploadSlot()
{

// N.B. CGI at Weizmann needs input name="file"!

	var uu = 
"<font face='sans-serif'> \
Upload a PDB file of your own:<br> \
<small>Caution: uploading a PDB file could <b>disclose your data</b> to \
others. "
	+ makeNotesLink("More..", "uploads") +
"<\/small> \
<br><input type='file' name='file' id='file' size='50'> \
<input type='submit' value='View in FirstGlance'> \
<br><small> \
or <a href='javascript: showURLSlot()'>enter \
the URL of a PDB file</a>.</small> \
</font> \
";

	document.getElementById("enterURL").innerHTML = uu;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


