function CheckMainSignIn() {
	if (document.MainSignIn.MainEmailSI.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MainSignIn.MainEmailSI.focus(); 
		return false;
	}
	if (document.MainSignIn.MainPassword.value == ""){
		alert("Please Enter Your Password.");
		if (window.focus) 
			document.MainSignIn.MainPassword.focus(); 
		return false;
	}
}

function CheckMainForgotPassword() {
	if (document.MainForgotPassword.MainEmailFP.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MainForgotPassword.MainEmailFP.focus(); 
		return false;
	}
	if (document.MainForgotPassword.MainLastNameFP.value == ""){
		alert("Please Enter Your Last Name.");
		if (window.focus) 
			document.MainForgotPassword.MainLastNameFP.focus(); 
		return false;
	}
}

function CheckMainRegister() {
	var ValueLength, PW1, PW2;
	if (document.MainRegister.MainEmailFT.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MainRegister.MainEmailFT.focus(); 
		return false;
	}
	if (document.MainRegister.MainPassword1.value == ""){
		alert("Please Enter Your Password.");
		if (window.focus) 
			document.MainRegister.MainPassword1.focus(); 
		return false;
	}
	ValueLength =document.MainRegister.MainPassword1.value;
	if (ValueLength.length < 6){
		alert("Please Enter a Password with at least 6 Characters.");
		if (window.focus)
			document.MainRegister.MainPassword1.focus();
		return false;
	}
	if (document.MainRegister.MainPassword2.value == ""){
		alert("Please Enter Your Confirmation Password.");
		if (window.focus) 
			document.MainRegister.MainPassword2.focus(); 
		return false;
	}
	PW1 = document.MainRegister.MainPassword1.value;
	PW2 = document.MainRegister.MainPassword2.value;
	if (PW2 != PW1){
		alert("Please Make Sure that Confirm Password is the same with Your First Password.");
		if (window.focus)
			document.MainRegister.MainPassword2.focus();
		return false;
	}
}

function CheckMyInfo() {
	var StValue, PW1, PW2;
	if (document.MyInfo.B_FirstName.value == ""){
		alert("Please Enter Your First Name.");
		if (window.focus) 
			document.MyInfo.B_FirstName.focus(); 
		return false;
	}
	if (document.MyInfo.B_LastName.value == ""){
		alert("Please Enter Your Last Name.");
		if (window.focus) 
			document.MyInfo.B_LastName.focus(); 
		return false;
	}
	if (document.MyInfo.B_Address1.value == ""){
		alert("Please Enter Your Address.");
		if (window.focus) 
			document.MyInfo.B_Address1.focus(); 
		return false;
	}
	if (document.MyInfo.B_City.value == ""){
		alert("Please Enter Your City.");
		if (window.focus) 
			document.MyInfo.B_City.focus(); 
		return false;
	}
	if (document.MyInfo.B_State.value == ""){
		alert("Please Enter Your State.");
		if (window.focus) 
			document.MyInfo.B_State.focus(); 
		return false;
	}
	if (document.MyInfo.B_PostalCode.value == ""){
		alert("Please Enter Your Zip Code.");
		if (window.focus) 
			document.MyInfo.B_PostalCode.focus(); 
		return false;
	}		
	if (document.MyInfo.B_Country.value == ""){
		alert("Please Select a Country.");
		if (window.focus) 
			document.MyInfo.B_Country.focus(); 
		return false;
	}
	if (document.MyInfo.B_HomePhone.value == ""){
		alert("Please Enter the Phone Number on Credit Card File.");
		if (window.focus) 
			document.MyInfo.B_HomePhone.focus(); 
		return false;
	}
	if (document.MyInfo.Email.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MyInfo.Email.focus(); 
		return false;
	}
	if (document.MyInfo.Password1.value == ""){
		alert("Please Enter Your Password.");
		if (window.focus) 
			document.MyInfo.Password1.focus(); 
		return false;
	}
	if (document.MyInfo.Password2.value == ""){
		alert("Please Enter Your Confirm Password.");
		if (window.focus) 
			document.MyInfo.Password2.focus(); 
		return false;
	}
	PW1 = document.MyInfo.Password1.value;
	PW2 = document.MyInfo.Password2.value;
	if (PW2 != PW1){
		alert("Please Make Sure that Confirm Password is the same with Your First Password.");
		if (window.focus)
			document.MyInfo.Password2.focus();
		return false;
	}
	if (document.MyInfo.S_FirstName.value == ""){
		alert("Please Enter Your Shipping First Name.");
		if (window.focus) 
			document.MyInfo.S_FirstName.focus(); 
		return false;
	}
	if (document.MyInfo.S_Address1.value == ""){
		alert("Please Enter Your Shipping Address.");
		if (window.focus) 
			document.MyInfo.S_Address1.focus(); 
		return false;
	}
	if (document.MyInfo.S_City.value == ""){
		alert("Please Enter Your Shipping City.");
		if (window.focus) 
			document.MyInfo.S_City.focus(); 
		return false;
	}
	if (document.MyInfo.S_State.value == ""){
		alert("Please Select Your Shipping State.");
		if (window.focus) 
			document.MyInfo.S_State.focus(); 
		return false;
	}
	if (document.MyInfo.S_PostalCode.value == ""){
		alert("Please Enter Your Shipping Zip Code.");
		if (window.focus) 
			document.MyInfo.S_PostalCode.focus(); 
		return false;
	}		
	if (document.MyInfo.S_Country.value == ""){
		alert("Please Select a Shipping Country.");
		if (window.focus) 
			document.MyInfo.S_Country.focus(); 
		return false;
	}
		 	
	var cardNumber = document.MyInfo.CardNum.value;
	var cardType = document.MyInfo.CardType.value;
	var cardMonth = document.MyInfo.ExpMonth.value;
	var cardYear = document.MyInfo.ExpYear.value;

    if (cardType == ""){
		alert("Please Select Your Credit Card Type.");
		if (window.focus) 
			document.MyInfo.CardType.focus(); 
		return false;
	}
	    
    	var length = cardNumber.length;			

        	switch( cardType ) {
        		case '48':
						if(cardNumber == "") {
   						alert("Please Enter Your Credit Card Number.");
   						if (window.focus) 
							document.MyInfo.CardNum.focus(); 
   						return false;
   						}
   			
						if(cardMonth == "") {
   							alert("Please Enter the Expiry Month on Card.");
   							if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
   						}
						if(cardYear == "") {
   							alert("Please Enter the Expiry Year on Card.");
   							if (window.focus) 
								document.MyInfo.ExpYear.focus(); 
   							return false;
   						}	
	
						for( var i = 0; i < cardNumber.length; ++i ) {
							var c = cardNumber.charAt(i);

								if( c < '0' || c > '9' ) {
									alert("Please Enter a Valid Credit Card Number. Use only Digits. Do Not Use Spaces or Hyphens.");
									if (window.focus) 
										document.MyInfo.CardNum.focus(); 
   									return false;
							}
						}
            			if( !mod10( cardNumber ) ) { 
        					alert("Sorry! Your Credit Card Number Is INVALID.");
        					if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
        				}
        				if( expired( cardMonth, cardYear ) ) {							
        					alert("Sorry! The Credit Card Expiry is out of Date.");
        					if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
        				}
        				if( length != 15 ) {
            				alert("Please Enter a Valid American Express Card Number.");
            				if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
            			}
            			var prefix = parseInt( cardNumber.substring(0,2));

                			if( prefix != 34 && prefix != 37 ) {
                				alert("Please Enter a Valid American Express Card Number.");
                				if (window.focus) 
									document.MyInfo.CardNum.focus(); 
   								return false;
                			}
                			break;
                		
                case '50':
						if(cardNumber == "") {
   						alert("Please Enter Your Credit Card Number.");
   						if (window.focus) 
							document.MyInfo.CardNum.focus(); 
   						return false;
   						}
   			
						if(cardMonth == "") {
   							alert("Please Enter the Expiry Month on Card.");
   							if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
   						}
						if(cardYear == "") {
   							alert("Please Enter the Expiry Year on Card.");
   							if (window.focus) 
								document.MyInfo.ExpYear.focus(); 
   							return false;
   						}	
	
						for( var i = 0; i < cardNumber.length; ++i ) {
							var c = cardNumber.charAt(i);

								if( c < '0' || c > '9' ) {
									alert("Please Enter a Valid Credit Card Number. Use only Digits. Do Not Use Spaces or Hyphens.");
									if (window.focus) 
										document.MyInfo.CardNum.focus(); 
   									return false;
							}
						}
						if( !mod10( cardNumber ) ) { 
        					alert("Sorry! Your Credit Card Number Is INVALID.");
        					if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
        				}
        				if( expired( cardMonth, cardYear ) ) {							
        					alert("Sorry! The Credit Card Expiry is out of Date.");
        					if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
        				}
                		if( length != 16 ) {
                			alert("Please Enter a Valid MasterCard Card Number.");
                			if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
                		}
                		var prefix = parseInt( cardNumber.substring(0,2));

                			if( prefix < 51 || prefix > 55) {
                				alert("Please Enter a Valid MasterCard Card Number.");
                				if (window.focus) 
									document.MyInfo.CardNum.focus(); 
   								return false;
                			}
                			break;
                		
                case '49':
						if(cardNumber == "") {
   						alert("Please Enter Your Credit Card Number.");
   						if (window.focus) 
							document.MyInfo.CardNum.focus(); 
   						return false;
   						}
   			
						if(cardMonth == "") {
   							alert("Please Enter the Expiry Month on Card.");
   							if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
   						}
						if(cardYear == "") {
   							alert("Please Enter the Expiry Year on Card.");
   							if (window.focus) 
								document.MyInfo.ExpYear.focus(); 
   							return false;
   						}	
	
						for( var i = 0; i < cardNumber.length; ++i ) {
							var c = cardNumber.charAt(i);

								if( c < '0' || c > '9' ) {
									alert("Please Enter a Valid Credit Card Number. Use only Digits. Do Not Use Spaces or Hyphens.");
									if (window.focus) 
										document.MyInfo.CardNum.focus(); 
   									return false;
							}
						}
						if( !mod10( cardNumber ) ) { 
        					alert("Sorry! Your Credit Card Number Is INVALID.");
        					if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
        				}
        				if( expired( cardMonth, cardYear ) ) {							
        					alert("Sorry! The Credit Card Expiry is out of Date.");
        					if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
        				}
                		if( length != 16 && length != 13 ) {
                			alert("Please Enter a Valid Visa Card Number.");
                			if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
                		}
                		var prefix = parseInt( cardNumber.substring(0,1));

                			if( prefix != 4 ) {
                				alert("Please Enter a Valid Visa Card Number.");
                				if (window.focus) 
									document.MyInfo.CardNum.focus(); 
   								return false;
                			}
                			break;
                case '143':
						if (document.MyInfo.PONumber.value == ""){
							alert("Please Enter Your PO Number.");
							if (window.focus) 
								document.MyInfo.PONumber.focus(); 
							return false;
						}
                			break;
               }
        	
}

function CheckCCInfo() {
	var StValue, PW1, PW2;
	if (document.MyInfo.B_FirstName.value == ""){
		alert("Please Enter Your First Name.");
		if (window.focus) 
			document.MyInfo.B_FirstName.focus(); 
		return false;
	}
	if (document.MyInfo.B_LastName.value == ""){
		alert("Please Enter Your Last Name.");
		if (window.focus) 
			document.MyInfo.B_LastName.focus(); 
		return false;
	}
	if (document.MyInfo.B_Address1.value == ""){
		alert("Please Enter Your Address.");
		if (window.focus) 
			document.MyInfo.B_Address1.focus(); 
		return false;
	}
	if (document.MyInfo.B_City.value == ""){
		alert("Please Enter Your City.");
		if (window.focus) 
			document.MyInfo.B_City.focus(); 
		return false;
	}
	if (document.MyInfo.B_State.value == ""){
		alert("Please Enter Your State.");
		if (window.focus) 
			document.MyInfo.B_State.focus(); 
		return false;
	}
	if (document.MyInfo.B_PostalCode.value == ""){
		alert("Please Enter Your Zip Code.");
		if (window.focus) 
			document.MyInfo.B_PostalCode.focus(); 
		return false;
	}		
	if (document.MyInfo.B_Country.value == ""){
		alert("Please Select a Country.");
		if (window.focus) 
			document.MyInfo.B_Country.focus(); 
		return false;
	}
	if (document.MyInfo.B_HomePhone.value == ""){
		alert("Please Enter the Phone Number on Credit Card File.");
		if (window.focus) 
			document.MyInfo.B_HomePhone.focus(); 
		return false;
	}
	if (document.MyInfo.Email.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MyInfo.Email.focus(); 
		return false;
	}
	if (document.MyInfo.Password1.value == ""){
		alert("Please Enter Your Password.");
		if (window.focus) 
			document.MyInfo.Password1.focus(); 
		return false;
	}
	if (document.MyInfo.Password2.value == ""){
		alert("Please Enter Your Confirm Password.");
		if (window.focus) 
			document.MyInfo.Password2.focus(); 
		return false;
	}
	PW1 = document.MyInfo.Password1.value;
	PW2 = document.MyInfo.Password2.value;
	if (PW2 != PW1){
		alert("Please Make Sure that Confirm Password is the same with Your First Password.");
		if (window.focus)
			document.MyInfo.Password2.focus();
		return false;
	}
	
	var cardNumber = document.MyInfo.CardNum.value;
	var cardType = document.MyInfo.CardType.value;
	var cardMonth = document.MyInfo.ExpMonth.value;
	var cardYear = document.MyInfo.ExpYear.value;

    if (cardType == ""){
		alert("Please Select Your Credit Card Type.");
		if (window.focus) 
			document.MyInfo.CardType.focus(); 
		return false;
	}
	    
    	var length = cardNumber.length;			

        	switch( cardType ) {
        		case '48':
						if(cardNumber == "") {
   						alert("Please Enter Your Credit Card Number.");
   						if (window.focus) 
							document.MyInfo.CardNum.focus(); 
   						return false;
   						}
   			
						if(cardMonth == "") {
   							alert("Please Enter the Expiry Month on Card.");
   							if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
   						}
						if(cardYear == "") {
   							alert("Please Enter the Expiry Year on Card.");
   							if (window.focus) 
								document.MyInfo.ExpYear.focus(); 
   							return false;
   						}	
	
						for( var i = 0; i < cardNumber.length; ++i ) {
							var c = cardNumber.charAt(i);

								if( c < '0' || c > '9' ) {
									alert("Please Enter a Valid Credit Card Number. Use only Digits. Do Not Use Spaces or Hyphens.");
									if (window.focus) 
										document.MyInfo.CardNum.focus(); 
   									return false;
							}
						}
            			if( !mod10( cardNumber ) ) { 
        					alert("Sorry! Your Credit Card Number Is INVALID.");
        					if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
        				}
        				if( expired( cardMonth, cardYear ) ) {							
        					alert("Sorry! The Credit Card Expiry is out of Date.");
        					if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
        				}
        				if( length != 15 ) {
            				alert("Please Enter a Valid American Express Card Number.");
            				if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
            			}
            			var prefix = parseInt( cardNumber.substring(0,2));

                			if( prefix != 34 && prefix != 37 ) {
                				alert("Please Enter a Valid American Express Card Number.");
                				if (window.focus) 
									document.MyInfo.CardNum.focus(); 
   								return false;
                			}
                			break;
                		
                case '50':
						if(cardNumber == "") {
   						alert("Please Enter Your Credit Card Number.");
   						if (window.focus) 
							document.MyInfo.CardNum.focus(); 
   						return false;
   						}
   			
						if(cardMonth == "") {
   							alert("Please Enter the Expiry Month on Card.");
   							if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
   						}
						if(cardYear == "") {
   							alert("Please Enter the Expiry Year on Card.");
   							if (window.focus) 
								document.MyInfo.ExpYear.focus(); 
   							return false;
   						}	
	
						for( var i = 0; i < cardNumber.length; ++i ) {
							var c = cardNumber.charAt(i);

								if( c < '0' || c > '9' ) {
									alert("Please Enter a Valid Credit Card Number. Use only Digits. Do Not Use Spaces or Hyphens.");
									if (window.focus) 
										document.MyInfo.CardNum.focus(); 
   									return false;
							}
						}
						if( !mod10( cardNumber ) ) { 
        					alert("Sorry! Your Credit Card Number Is INVALID.");
        					if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
        				}
        				if( expired( cardMonth, cardYear ) ) {							
        					alert("Sorry! The Credit Card Expiry is out of Date.");
        					if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
        				}
                		if( length != 16 ) {
                			alert("Please Enter a Valid MasterCard Card Number.");
                			if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
                		}
                		var prefix = parseInt( cardNumber.substring(0,2));

                			if( prefix < 51 || prefix > 55) {
                				alert("Please Enter a Valid MasterCard Card Number.");
                				if (window.focus) 
									document.MyInfo.CardNum.focus(); 
   								return false;
                			}
                			break;
                		
                case '49':
						if(cardNumber == "") {
   						alert("Please Enter Your Credit Card Number.");
   						if (window.focus) 
							document.MyInfo.CardNum.focus(); 
   						return false;
   						}
   			
						if(cardMonth == "") {
   							alert("Please Enter the Expiry Month on Card.");
   							if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
   						}
						if(cardYear == "") {
   							alert("Please Enter the Expiry Year on Card.");
   							if (window.focus) 
								document.MyInfo.ExpYear.focus(); 
   							return false;
   						}	
	
						for( var i = 0; i < cardNumber.length; ++i ) {
							var c = cardNumber.charAt(i);

								if( c < '0' || c > '9' ) {
									alert("Please Enter a Valid Credit Card Number. Use only Digits. Do Not Use Spaces or Hyphens.");
									if (window.focus) 
										document.MyInfo.CardNum.focus(); 
   									return false;
							}
						}
						if( !mod10( cardNumber ) ) { 
        					alert("Sorry! Your Credit Card Number Is INVALID.");
        					if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
        				}
        				if( expired( cardMonth, cardYear ) ) {							
        					alert("Sorry! The Credit Card Expiry is out of Date.");
        					if (window.focus) 
								document.MyInfo.ExpMonth.focus(); 
   							return false;
        				}
                		if( length != 16 && length != 13 ) {
                			alert("Please Enter a Valid Visa Card Number.");
                			if (window.focus) 
								document.MyInfo.CardNum.focus(); 
   							return false;
                		}
                		var prefix = parseInt( cardNumber.substring(0,1));

                			if( prefix != 4 ) {
                				alert("Please Enter a Valid Visa Card Number.");
                				if (window.focus) 
									document.MyInfo.CardNum.focus(); 
   								return false;
                			}
                			break;
                case '143':
						if (document.MyInfo.PONumber.value == ""){
							alert("Please Enter Your PO Number.");
							if (window.focus) 
								document.MyInfo.PONumber.focus(); 
							return false;
						}
                			break;
               }
        	
}

function CheckMyInfo2() {
	var StValue, PW1, PW2;
	if (document.MyInfo.B_FirstName.value == ""){
		alert("Please Enter Your First Name.");
		if (window.focus) 
			document.MyInfo.B_FirstName.focus(); 
		return false;
	}
	if (document.MyInfo.B_LastName.value == ""){
		alert("Please Enter Your Last Name.");
		if (window.focus) 
			document.MyInfo.B_LastName.focus(); 
		return false;
	}
	if (document.MyInfo.B_Address1.value == ""){
		alert("Please Enter Your Address.");
		if (window.focus) 
			document.MyInfo.B_Address1.focus(); 
		return false;
	}
	if (document.MyInfo.B_City.value == ""){
		alert("Please Enter Your City.");
		if (window.focus) 
			document.MyInfo.B_City.focus(); 
		return false;
	}
	if (document.MyInfo.B_State.value == ""){
		alert("Please Enter Your State.");
		if (window.focus) 
			document.MyInfo.B_State.focus(); 
		return false;
	}
	if (document.MyInfo.B_PostalCode.value == ""){
		alert("Please Enter Your Zip Code.");
		if (window.focus) 
			document.MyInfo.B_PostalCode.focus(); 
		return false;
	}		
	if (document.MyInfo.B_Country.value == ""){
		alert("Please Select a Country.");
		if (window.focus) 
			document.MyInfo.B_Country.focus(); 
		return false;
	}
	if (document.MyInfo.B_HomePhone.value == ""){
		alert("Please Enter the Phone Number on Credit Card File.");
		if (window.focus) 
			document.MyInfo.B_HomePhone.focus(); 
		return false;
	}
	if (document.MyInfo.Email.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MyInfo.Email.focus(); 
		return false;
	}
	if (document.MyInfo.Password1.value == ""){
		alert("Please Enter Your Password.");
		if (window.focus) 
			document.MyInfo.Password1.focus(); 
		return false;
	}
	if (document.MyInfo.Password2.value == ""){
		alert("Please Enter Your Confirm Password.");
		if (window.focus) 
			document.MyInfo.Password2.focus(); 
		return false;
	}
	PW1 = document.MyInfo.Password1.value;
	PW2 = document.MyInfo.Password2.value;
	if (PW2 != PW1){
		alert("Please Make Sure that Confirm Password is the same with Your First Password.");
		if (window.focus)
			document.MyInfo.Password2.focus();
		return false;
	}
	if (document.MyInfo.S_FirstName.value == ""){
		alert("Please Enter Your Shipping First Name.");
		if (window.focus) 
			document.MyInfo.S_FirstName.focus(); 
		return false;
	}
	if (document.MyInfo.S_Address1.value == ""){
		alert("Please Enter Your Shipping Address.");
		if (window.focus) 
			document.MyInfo.S_Address1.focus(); 
		return false;
	}
	if (document.MyInfo.S_City.value == ""){
		alert("Please Enter Your Shipping City.");
		if (window.focus) 
			document.MyInfo.S_City.focus(); 
		return false;
	}
	if (document.MyInfo.S_State.value == ""){
		alert("Please Select Your Shipping State.");
		if (window.focus) 
			document.MyInfo.S_State.focus(); 
		return false;
	}
	if (document.MyInfo.S_PostalCode.value == ""){
		alert("Please Enter Your Shipping Zip Code.");
		if (window.focus) 
			document.MyInfo.S_PostalCode.focus(); 
		return false;
	}		
	if (document.MyInfo.S_Country.value == ""){
		alert("Please Select a Shipping Country.");
		if (window.focus) 
			document.MyInfo.S_Country.focus(); 
		return false;
	}
}

function CheckMyInfo3() {
	var StValue, PW1, PW2;
	if (document.MyInfo.B_FirstName.value == ""){
		alert("Please Enter Your First Name.");
		if (window.focus) 
			document.MyInfo.B_FirstName.focus(); 
		return false;
	}
	if (document.MyInfo.B_LastName.value == ""){
		alert("Please Enter Your Last Name.");
		if (window.focus) 
			document.MyInfo.B_LastName.focus(); 
		return false;
	}
	if (document.MyInfo.B_Address1.value == ""){
		alert("Please Enter Your Address.");
		if (window.focus) 
			document.MyInfo.B_Address1.focus(); 
		return false;
	}
	if (document.MyInfo.B_City.value == ""){
		alert("Please Enter Your City.");
		if (window.focus) 
			document.MyInfo.B_City.focus(); 
		return false;
	}
	if (document.MyInfo.B_State.value == ""){
		alert("Please Enter Your State.");
		if (window.focus) 
			document.MyInfo.B_State.focus(); 
		return false;
	}
	if (document.MyInfo.B_PostalCode.value == ""){
		alert("Please Enter Your Zip Code.");
		if (window.focus) 
			document.MyInfo.B_PostalCode.focus(); 
		return false;
	}		
	if (document.MyInfo.B_Country.value == ""){
		alert("Please Select a Country.");
		if (window.focus) 
			document.MyInfo.B_Country.focus(); 
		return false;
	}
	if (document.MyInfo.B_HomePhone.value == ""){
		alert("Please Enter the Phone Number on Credit Card File.");
		if (window.focus) 
			document.MyInfo.B_HomePhone.focus(); 
		return false;
	}
	if (document.MyInfo.Email.value == ""){
		alert("Please Enter Your Email Address.");
		if (window.focus) 
			document.MyInfo.Email.focus(); 
		return false;
	}
	if (document.MyInfo.Password1.value == ""){
		alert("Please Enter Your Password.");
		if (window.focus) 
			document.MyInfo.Password1.focus(); 
		return false;
	}
	if (document.MyInfo.Password2.value == ""){
		alert("Please Enter Your Confirm Password.");
		if (window.focus) 
			document.MyInfo.Password2.focus(); 
		return false;
	}
	PW1 = document.MyInfo.Password1.value;
	PW2 = document.MyInfo.Password2.value;
	if (PW2 != PW1){
		alert("Please Make Sure that Confirm Password is the same with Your First Password.");
		if (window.focus)
			document.MyInfo.Password2.focus();
		return false;
	}
}

function mod10( cardNumber ) { // LUHN Formula for validation of credit card numbers.
	var ar = new Array( cardNumber.length );
	var i = 0,sum = 0;


	for( i = 0; i < cardNumber.length; ++i ) {
		ar[i] = parseInt(cardNumber.charAt(i));
	}
	for( i = ar.length -2; i >= 0; i-=2 ) { // you have to start from the right, and work back.
		ar[i] *= 2;							 // every second digit starting with the right most (check digit)
		if( ar[i] > 9 ) ar[i]-=9;			 // will be doubled, and summed with the skipped digits.
	}										 // if the double digit is > 9, ADD those individual digits together 


    	for( i = 0; i < ar.length; ++i ) {
    		sum += ar[i];						 // if the sum is divisible by 10 mod10 succeeds
    	}
    	return (((sum%10)==0)?true:false);	 	
}

function expired( month, year ) {
	var now = new Date();							
	var expiresIn = new Date(year,month,0,0,0);		
	expiresIn.setMonth(expiresIn.getMonth()+0);		
	if( now.getTime() < expiresIn.getTime() ) return false;
	return true;									
}