Originally Posted by
SnnY
Personally I'd have put the js in its own file, tho'
Most of it is: server side includes ftw
Code:
<script language="JavaScript">
<!--
<!--hide this script from non-javascript-enabled browsers
function SubmitForm(Action) {
TheForm = document.MainForm;
TheForm.Action.value = Action;
TheForm.submit();
}
function ButtonClick(Button) {
if (Button == "PS")
{ opennewwindow("...etc...") }
if (Button == "CM")
{ opennewwindow("...etc...") }
if (Button == "EN")
{ opennewwindow("...etc...") }
if (Button == "TC")
{ opennewwindow("...etc...") }
}
//-->
</script>
<!--#include file="JavaScript.inc" -->
</head>
Being self-taught though, I doubt that anything I'm doing is the best way to do stuff...
Bookmarks