function checkvalidation()
			{
				
			 for (i=0;i<document.frmsignup.credit_card.length;i++)
			{
				  if (document.frmsignup.credit_card[i].checked)
				  {
						 card_val = document.frmsignup.credit_card[i].value;
				  }
			}
			document.frmsignup.card_type_new.value=card_val;

			 	 if (document.frmsignup.txtfirstname.value=="") 
				{
					alert("Please Enter First Name");
					document.frmsignup.txtfirstname.focus();
					return false;
				}
				if(document.frmsignup.txtfirstname.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?";
					for(i=0;i!=document.frmsignup.txtfirstname.value.length;i++)
					{
						ch1=document.frmsignup.txtfirstname.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)
						{
							alert("Please Enter valid First Name");
							document.frmsignup.txtfirstname.focus();
							return false;
							break;
						}
					}
				}
				
			 	 if (document.frmsignup.txtlastname.value=="") 
				{
					alert("Please Enter Last Name");
					document.frmsignup.txtlastname.focus();
					return false;
				}
			
				if(document.frmsignup.txtlastname.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?";
					for(i=0;i!=document.frmsignup.txtlastname.value.length;i++)
					{
						ch1=document.frmsignup.txtlastname.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)	
						{
							alert("Please Enter valid Last Name");
							document.frmsignup.txtlastname.focus();
							return false;
							break;
						}
					}
				}
				// For Email Address
			if(document.frmsignup.txtemail.value == ""){
				alert("Please Enter Email Address");
				document.frmsignup.txtemail.focus();
				return false;
			}else{
				var test = document.frmsignup.txtemail.value;
				var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
				if (!filter.test(document.frmsignup.txtemail.value)){
					alert("Enter Valid E-mail");
					document.frmsignup.txtemail.focus();
					return false;
				}
			}
				if (document.frmsignup.txtphone.value=="") 
				{
					alert("Please Enter Phone No");
					document.frmsignup.txtphone.focus();
					return false;
				}
			 	if (document.frmsignup.txtaddress.value=="") 
				{
					alert("Please Enter Address Name");
					document.frmsignup.txtaddress.focus();
					return false;
				}
			 	 if (document.frmsignup.txtcity.value=="") 
				{
					alert("Please Enter City Name");
					document.frmsignup.txtcity.focus();
					return false;
				}
				if(document.frmsignup.txtcity.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?";
					for(i=0;i!=document.frmsignup.txtcity.value.length;i++)
					{
						ch1=document.frmsignup.txtcity.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)	
						{
							alert("Please Enter valid City");
							document.frmsignup.txtcity.focus();
							return false;
							break;
						}
					}
				}

				if(document.frmsignup.state.value=="")
				{
					alert("Please select the state");
					document.frmsignup.state.focus();
					return false;
				}
				if (document.frmsignup.txtzipcode.value=="") 
				{
					alert("Please Enter Zip");
					document.frmsignup.txtzipcode.focus();
					return false;
				}	
				if(document.frmsignup.country.value=="")
				{
				alert("Please select the country");
				document.frmsignup.country.focus();
				return false;
				}	

				
				/*if(document.frmsignup.txtzipcode.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?/,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
					for(i=0;i!=document.frmsignup.txtzipcode.value.length;i++)
					{
						ch1=document.frmsignup.txtzipcode.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)
						{
							alert("Please Enter valid Zip");
							documecheckvalidationnt.frmsignup.txtzipcode.focus();
							return false;
							break;
						}
					}
				}
				if(parseInt(document.frmsignup.txtzipcode.value)==0)
				{
					alert("Enter Valid Zipcode");	
					document.frmsignup.zip.focus();
					return false;
				}*/
				
				if (document.frmsignup.txtcard_number.value=="") 
				{
					alert("Please Enter Card Number");
					document.frmsignup.txtcard_number.focus();
					return false;
				} 
				else if(!isValid(document.frmsignup.txtcard_number.value)){
					alert("Please Enter only digits for Card Number");
					document.frmsignup.txtcard_number.value="";
					document.frmsignup.txtcard_number.value.focus();
					return false;
				}	
				if (document.frmsignup.sltmonth.value=="") 
				{
					alert("Please Select Expiration Month");
					document.frmsignup.sltmonth.focus();
					return false;
				}
				if (document.frmsignup.sltyear.value=="") 
				{
					alert("Please Select Expiration Year");
					document.frmsignup.sltyear.focus();
					return false;
				}
				
				if (document.frmsignup.txtcard_cvv_number.value=="") 
				{
					alert("Please Enter Security Code");
					document.frmsignup.txtcard_cvv_number.focus();
					return false;
				} else if(!isValid(document.frmsignup.txtcard_cvv_number.value)){
					alert("Please Enter only digits for Security Code");
					document.frmsignup.txtcard_cvv_number.focus();
					return false;
				}	
				month = document.frmsignup.sltmonth.value;
				year = document.frmsignup.sltyear.value;
				expDate	= month + "/" + year;
				hdndate	= document.getElementById("expfulldate");
				hdndate.value = expDate;
				if(validCCForm(document.frmsignup.card_type_new, document.frmsignup.txtcard_number)){
					result	= isValidExpDate(hdndate, "Expiration Date", true);
					if(result == false)
						return false;
				}
				else
					return false;
					
					
					
				
			
				
			}
function checkvalidation_step2()
{
		
		if (document.frmstep2_username.uname.value=="") 
			{
				alert("Please Enter Username");
				document.frmstep2_username.uname.focus();
				return false;
			}
		
		if (document.frmstep2_username.uname.value.length < 4) 
			{
				alert("Please Enter Username Length atlest 4 character");
				document.frmstep2_username.uname.focus();
				return false;
			}
		
		if (document.frmstep2_username.password.value=="") 
			{
				alert("Please Enter Password");
				document.frmstep2_username.password.focus();
				return false;
			}
		if (document.frmstep2_username.password.value.length < 6) 
			{
				alert("Please Enter Password Length atlest 6 character");
				document.frmstep2_username.password.focus();
				return false;
			}	
}

function checkvalidation_paypal()
			{
			
		

			 	 if (document.frmsignup.txtfirstname.value=="") 
				{
					alert("Please Enter First Name");
					document.frmsignup.txtfirstname.focus();
					return false;
				}
				if(document.frmsignup.txtfirstname.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?";
					for(i=0;i!=document.frmsignup.txtfirstname.value.length;i++)
					{
						ch1=document.frmsignup.txtfirstname.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)
						{
							alert("Please Enter valid First Name");
							document.frmsignup.txtfirstname.focus();
							return false;
							break;
						}
					}
				}
				
			 	 if (document.frmsignup.txtlastname.value=="") 
				{
					alert("Please Enter Last Name");
					document.frmsignup.txtlastname.focus();
					return false;
				}
			
				if(document.frmsignup.txtlastname.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?";
					for(i=0;i!=document.frmsignup.txtlastname.value.length;i++)
					{
						ch1=document.frmsignup.txtlastname.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)	
						{
							alert("Please Enter valid Last Name");
							document.frmsignup.txtlastname.focus();
							return false;
							break;
						}
					}
				}
				// For Email Address
			if(document.frmsignup.txtemail.value == ""){
				alert("Please Enter Email Address");
				document.frmsignup.txtemail.focus();
				return false;
			}else{
				var test = document.frmsignup.txtemail.value;
				var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
				if (!filter.test(document.frmsignup.txtemail.value)){
					alert("Enter Valid E-mail");
					document.frmsignup.txtemail.focus();
					return false;
				}
			}
				if (document.frmsignup.txtphone.value=="") 
				{
					alert("Please Enter Phone No");
					document.frmsignup.txtphone.focus();
					return false;
				}
			 	if (document.frmsignup.txtaddress.value=="") 
				{
					alert("Please Enter Address Name");
					document.frmsignup.txtaddress.focus();
					return false;
				}
			 	 if (document.frmsignup.txtcity.value=="") 
				{
					alert("Please Enter City Name");
					document.frmsignup.txtcity.focus();
					return false;
				}
				if(document.frmsignup.txtcity.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?";
					for(i=0;i!=document.frmsignup.txtcity.value.length;i++)
					{
						ch1=document.frmsignup.txtcity.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)	
						{
							alert("Please Enter valid City");
							document.frmsignup.txtcity.focus();
							return false;
							break;
						}
					}
				}

				if(document.frmsignup.state.value=="")
				{
					alert("Please select the state");
					document.frmsignup.state.focus();
					return false;
				}

				if (document.frmsignup.txtzipcode.value=="") 
				{
					alert("Please Enter Zip");
					document.frmsignup.txtzipcode.focus();
					return false;
				}	
				if(document.frmsignup.country.value=="")
				{
				alert("Please select the country");
				document.frmsignup.country.focus();
				return false;
				}	

				/*if(document.frmsignup.txtzipcode.value.length >= 1 )
				{
					chk1="!@#$%^&*|\~`{}[]:<>?/,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
					for(i=0;i!=document.frmsignup.txtzipcode.value.length;i++)
					{
						ch1=document.frmsignup.txtzipcode.value.charAt(i);
						rtn1=chk1.indexOf(ch1);
						if(rtn1!=-1)
						{
							alert("Please Enter valid Zip");
							document.frmsignup.txtzipcode.focus();
							return false;
							break;
						}
					}
				}
				if(parseInt(document.frmsignup.txtzipcode.value)==0)
				{
					alert("Enter Valid Zipcode");	
					document.frmsignup.zip.focus();
					return false;
				}*/
				
				
					
					
				
			
				
}
function checkvalidation_step2()
{
		
		if (document.frmstep2_username.uname.value=="") 
			{
				alert("Please Enter Username");
				document.frmstep2_username.uname.focus();
				return false;
			}
		
		if (document.frmstep2_username.uname.value.length < 4) 
			{
				alert("Please Enter Username Length atlest 4 character");
				document.frmstep2_username.uname.focus();
				return false;
			}
		
		if (document.frmstep2_username.password.value=="") 
			{
				alert("Please Enter Password");
				document.frmstep2_username.password.focus();
				return false;
			}
		if (document.frmstep2_username.password.value.length < 6) 
			{
				alert("Please Enter Password Length atlest 6 character");
				document.frmstep2_username.password.focus();
				return false;
			}	
}


function isValid(parm) {
  var val = '0123456789';
  if (parm == "") return true;
  for (i=0; i<parm.length; i++) {
    if (val.indexOf(parm.charAt(i),0) == -1) return false;
  }
  return true;
}

function checkvalidation_login()
{
	if (document.frmsubscriber.txtusername.value=="") 
		{
			alert("Please Enter Username");
			document.frmsubscriber.txtusername.focus();
			return false;
		}

	if (document.frmsubscriber.txtpassword.value=="") 
		{
			alert("Please Enter Password");
			document.frmsubscriber.txtpassword.focus();
			return false;
		}
		
}
