function login(val)
		{
			if(val == "Yes") {
				return true;
			}	
			alert("For this option you must logged in as member.");
			return false;
		}

var submited=0;

function subCheck(theform)
            {
                           if(submited>0)
                             {
                              return false
                             }
                submited++


                if (document.all || document.getElementById) {
                        for (i = 0; i < theform.length; i++) {
							var tempobj = theform.elements[i];
							if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") {
								tempobj.disabled = true;
							}
						}
				}
				return true;
			}	


function validateForm(frm) {

        if (frm.username.value == '') {
                alert('Please enter a username!');
                frm.username.focus();
                return false;
        }
        if (frm.contactemail.value == '') {
                alert('Please enter an email address!');
                frm.contactemail.focus();
                return false;
        }
        if (frm.contactemail.value != frm.confirmemail.value) {
                alert('Your e-mail and confirmation e-mails do not match!');
                frm.confirmemail.focus();
                return false;
        }
        /*
        if (frm.contactemail.value.indexOf('@',0)==-1||
            frm.contactemail.value.indexOf('@',0)== 0 ||
            frm.contactemail.value.indexOf('.',0)==-1) {
                    alert('This e-mail address is not valid. You will need a valid e-mail address to activate your account as we will send you an activation e-mail to that address and your account will not activate without opening it.')
                frm.contactemail.focus();
                   return false;
            }*/
        if (frm.password.value == '') {
                alert('Please enter a password!');
                frm.password.focus();
                return false;
        }
        if (frm.password.value != frm.confirmpassword.value) {
                alert('Your password and confirmation password do not match!');
                frm.confirmpassword.focus();
                return false;
        }
        if (frm.firstname.value == '') {
                alert('Please enter your real name!');
                frm.firstname.focus();
                return false;
        }
        if (frm.lastname.value == '') {
                alert('Please enter your real name!');
                frm.last.focus();
                return false;
        }
        if (!frm.agree.checked) {
                alert('You can only register after reading and agreeing to our User Agreement and Site Guidelines. Please check them often as they are updated often.');
                frm.agree.focus();
                return false;
        }
        if (!frm.guardianagree.checked) {
                alert('You can only register after agreeing that you are 18+ years or older, or are acting under the supervision of a legal guardian.');
                frm.guardianagree.focus();
                return false;
        }
         return subCheck(frm);
        frm.submit();
		return true;
}



function helpup(URL) {

        day = new Date();
        id = day.getTime();

        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=350,left = 100,top = 100');");
}
