// TRANSLATORS: Here are the phrases that need translation. You can comment
// out the English versions.

// Note: or_txt is defined in txt01.js.

var Paste_molURL_txt =
"Paste a molecule's URL into the slot";

var Example_txt =
"Example";

var Upload_your_own_PDB_txt =
"Upload your own PDB file";

var Upload_a_PDB_file_colon_txt =
"Upload a PDB file of your own:";

var Caution_uploading_disclosure_txt =
"Caution: uploading a PDB file could <b><font color='red'>disclose \
your data</font></b> to others.";

var View_in_FG_txt =
"View in FirstGlance";

var enter_URL_of_PDB_file_txt =
"enter the URL of a PDB file";

// Note: or_txt is defined in txt01.js.

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

function showURLSlot()
{
	// IE gets ElementById from name=; Gecko needs id=

	var ss = 
"<font face='sans-serif'> " + Paste_molURL_txt +

" (<a href='javascript: urlExample()'>" + Example_txt + "</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_txt +
"</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://molvis.sdsc.edu/pdb/1k28.mmol.gz";
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function showUploadSlot()
{

// N.B. CGI at Weizmann needs input name="file"!

	var uu = 
"<font face='sans-serif'> "
	+ Upload_a_PDB_file_colon_txt +
"<br><small> "
	+ Caution_uploading_disclosure_txt +
" "	+ makeNotesLink("More..", "uploads") +
"<\/small> \
<br><input type='file' name='file' id='file' size='50'> \
<input type='submit' value='"
	+ View_in_FG_txt +
"'><br><small> "
	+ or_txt +
" <a href='javascript: showURLSlot()'>"
	+ enter_URL_of_PDB_file_txt +
"</a>.</small></font> \
";

	document.getElementById("enterURL").innerHTML = uu;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

