<!doctype html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
<?php echo $company." ".$txtsystemtitle ;?>  </title>

<?php



?>
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
		<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
		<link rel="stylesheet" href="assets/css/main.css" />
		<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
		<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->


<?php
// check apply validate
	if (isset($applycompetition)){
		?>
        <script>
		function validation() {
			var x = document.forms["applyform"]["CHOICE1"].value;
			var y = document.forms["applyform"]["CHOICE2"].value;
			var z = document.forms["applyform"]["CHOICE3"].value;
			if (( (x == y ) && (y != "" || x !="") ) || ( (y == z ) && (y != "" || z !="") ) )  {
				alert("<?=$txtcannothavesameitem?>");
				return false;
			}
			if ( x =="" && y == "" && z == "" ) {
				alert("<?=$txtselectnoitemerror?>");
				return false;
			}
		}
		</script>
        <?php
	}
// finish check apply validate
?>

</head>
<body >
		<!-- Wrapper -->
			<div id="wrapper">
				<!-- Main -->
					<div id="main">
						<div class="inner">
							<!-- Header -->
								<header id="header">
									<span class="image fit" style="text-align:right"><a href="sportday.php" class="logo"><img src="img/logo_700_109.jpg"></a>
                                    <?=$today?> <?=$txtuid?>： <?=$name?> |<a href="logout.php"><?=$txtlogout?></a> | <?php 
                                      if ($_SESSION['lang'] == "chi"){
                                          ?>
                                          <a href="?lang=en">English</a> |
                                          <?php
                                      } else {
                                          ?>
                                          <a href="?lang=chi">中文</a> |
                                          <?php 
                                     }
                                     ?>		
                                    </span>
								</header>
                                 <!-- BODY -->
                           
                                 <section>
              



