<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script>
function _submit(teamid,selection) {
document.form.teamid.value=teamid;
document.form.selection.value=selection;
}
function validateForm(frm) {
alert(frm.teamid.value + "\n\n" + frm.selection.value);
return false;
}
</script>
</head>
<body>
<form name="form" action="" method="post" onsubmit="return validateForm(this);">
<input type="submit" value="Top10" onclick="_submit('team123','Top10');">
<input type="submit" value="Top20" onclick="_submit('team123','Top20');">
<input type="submit" value="Skip" onclick="_submit('team123','Skip');">
<input type="hidden" name="teamid" />
<input type="hidden" name="selection" />
</form>
</body>
</html>
|