All pastes #932756 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-07 22:36 UTC
rendered paste body
<script language="JavaScript">
	function showDocType()
	{
	if (document.getElementById('docTypeFile').checked == true)
		{ /*alert(document.getElementById('docTypeFile').checked);*/
			document.getElementById('docfile').visibility = 'visible';
		document.getElementById('docurl').visibility = 'hidden';}
	else if (document.getElementById('docTypeUrl').checked == true)
		{ /*alert(document.getElementById('docTypeFile').checked);*/
			document.getElementById('docfile').visibility = 'hidden';
		document.getElementById('docurl').visibility = 'visible';}
	}
</script>
	<tr>
		<td><strong>Document Type:</strong>
		<td>PRIMA File<input type="radio" name="docType" id="docTypeFile" value="file" checked onclick="return showDocType();">
			External URL<input type="radio" name="docType" id="docTypeUrl" value="url" onclick="return showDocType();">
		</td>
	</tr>
	<tr id="docfile">
		<td><strong>Document</strong></td>
		<td><input name="fileName" id="fileName" type="file" style="width: 300px;"> Current file: <a href="/DOD/documents/#getDocument.fileName#" target="_new">#getDocument.fileName#</a></td>
	</tr>
	<tr id="docurl" style="visibility: hidden;">
		<td><strong>Document URL</strong></td>
		<td><input name="documentURL" id="documentURL" value="#getDocument.documentURL#" maxlength="100" style="width: 500px;"></td>
	</tr>