			function show_terms()
			{
				filename_string="/php/page.php?page=terms" ;
				contest_view = dhtmlwindow.open('Contest', 'iframe', filename_string , 'Terms of Service', 'width=800px,height=550px,left=400px,top=185px,resize=1,scrolling=1,center=1');
			}
			function validEmail(email)
			{
				var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
				if (email != "" && !filter.test(email))
				{
				return false;
				}
				return true;
			}
			function validate_form()
			{
			msg = document.getElementById("message");
			msg.innerHTML="";
			document.getElementById('your-full-name').style.backgroundColor = "white";
			document.getElementById('your-email').style.backgroundColor = "white";
			document.getElementById('choose-a-password').style.backgroundColor = "white";
			if(document.getElementById("your-full-name").value == '')
			{
				msg.innerHTML = "Please Enter Your Full Name";
				document.getElementById('your-full-name').style.backgroundColor = "red";
				document.getElementById('your-full-name').focus();
				return false;
			}
			else
			{
				document.getElementById('userfullname').value=document.getElementById("your-full-name").value;
			}
			if(!validEmail(document.getElementById("your-email").value))
			{
				msg.innerHTML = "Please enter the E-mail";
				document.getElementById('your-email').style.backgroundColor = "red";
				document.getElementById('your-email').focus();
				return false;
			}
			else
			{
				document.getElementById('username').value=document.getElementById("your-email").value;
			}
			if(document.getElementById("choose-a-password").value == '')
			{
				msg.innerHTML = "Please enter the Password";
				document.getElementById('choose-a-password').style.backgroundColor = "red";
				document.getElementById('choose-a-password').focus();
				return false;
			}
			else
			{
				document.getElementById('pass').value=document.getElementById("choose-a-password").value;
			}
			
			if(document.getElementById("chk_confirm").checked == false)
			{
				msg.innerHTML = "Please agree to the Terms of Service.";
				document.getElementById('chk_confirm').style.backgroundColor = "red";
				document.getElementById('chk_confirm').focus();
				return false;
			}
			document.getElementById("frm_signup").submit();
			/********************
			Aj = new Ajax.Request('/php/sign_up_post.php' ,
			{
			method:'post',
			parameters: "username="+username+"&pass="+pass+"&your-full-name="+userfullname,
			onSuccess: function(transport)
			{
				if(transport.responseText.substring(0,5) == 'Sorry' )
				{
					document.getElementById("login_message").innerHTML=transport.responseText;
				}
				else
				{
					document.getElementById("login_message").innerHTML="Logging you in...";
					window.location="/php/profile.php";
				}
			},
			onFailure: function()
			{
				msg.innerHTML = "Problem in finding the specified file";
			}
			});
			**************/
			}