function chk_value()
	{
	
	 	if(document.fr_model.m_name.value=="")
		{
			alert("Please Enter Name !!!");
			document.fr_model.m_name.focus();
			return false;
		}
		//End of model name validation
		
		if(document.fr_model.contact_info_on_card.value=="")
		{
			alert("Please Enter Contact Information !!!");
			document.fr_model.contact_info_on_card.focus();
			return false;
		}
		//End of model contact validation
		
		if(document.fr_model.email.value=="")
		{
			alert("Please Enter email  !!!");
			document.fr_model.email.focus();
			return false;
		}
	var checkEmail = "@.";
        var checkStr = fr_model.email.value;
        var EmailValid = false;
        var EmailAt = false;
        var EmailPeriod = false;
        for (i = 0;  i < checkStr.length;  i++)
        {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkEmail.length;  j++)
        {
        if (ch == checkEmail.charAt(j) && ch == "@")
                EmailAt = true;
        if (ch == checkEmail.charAt(j) && ch == ".")
                EmailPeriod = true;
          if (EmailAt && EmailPeriod)
              break;
          if (j == checkEmail.length)
              break;
        }
        // if both the @ and . were in the string
        if (EmailAt && EmailPeriod)
        {
                EmailValid = true
                break;
        }
        }
        if (!EmailValid)
         {
                alert("The \"email\" field must contain an \"@\" and a \".\".");
                document.fr_model.email.focus();
                return (false);
         } 
		 //End Of eamil validation
		 
		 if(document.fr_model.m_phone.value=="")
		{
			alert("Please Enter Phone Number !!!");
			document.fr_model.m_phone.focus();
			return false;
		}
		//End of m_phone number validation
		 
		if (document.fr_model.m_height.value=="0")  
		{
			alert("Please Select Model Height  !!!");
			document.fr_model.m_height.focus();
			return false;
		} 
		//End of Model Height list box validation
		
	
		if(document.fr_model.gender.value=="Women")
		{
			if (document.fr_model.m_bust.value=="0")  
			{
				alert("Please Select Bust Size  !!!");
				document.fr_model.m_bust.focus();
				return false;
			} 
	 }
		//End of Model bust size list box validation
		
		if (document.fr_model.m_waist.value=="0")  
		{
			alert("Please Select Waist Size  !!!");
			document.fr_model.m_waist.focus();
			return false;
		} 
		//End of Model waist size list box validation
		
		if(document.fr_model.gender.value=="Women")
		{
			if (document.fr_model.m_hips.value=="0")  
			{
				alert("Please Select Hip Size  !!!");
				document.fr_model.m_hips.focus();
				return false;
			} 
		}
		//End of Model hip size list box validation
		
		if (document.fr_model.m_hair.value=="0")  
		{
			alert("Please Select Hair Color   !!!");
			document.fr_model.m_hair.focus();
			return false;
		} 
		//End of Model hair color list box validation
		
		if(document.fr_model.gender.value=="Women")
		{
			if (document.fr_model.m_dress_size.value=="0")  
			{
				alert("Please Select Model Dress Size  !!!");
				document.fr_model.m_dress_size.focus();
				return false;
			} 
		}
		//End of Model dress size list box validation
		
		if (document.fr_model.m_eyes.value=="0")  
		{
			alert("Please Select Model Eye Color  !!!");
			document.fr_model.m_eyes.focus();
			return false;
		} 
		//End of Model eye color list box validation
	
		if(document.fr_model.front_img.value=="")
		{
			alert("please choose front image !!!");
			document.fr_model.front_img.focus();
			return false;
		}
		//End of Front image validation
		
		var choose_front //initial value is null because we gave it no other value
		for (var i=0; i<document.fr_model.front_layout_id.length; i++)
		{ 
				if (document.fr_model.front_layout_id[i].checked)  
				{
					choose_front= document.fr_model.front_layout_id[i].value; //set choose_front equal to checked button's value
				} 
		}
		if(choose_front== null)
		{ //if choose_front is NOT equal to null, a button HAS been checked
				alert("Please Choose Front Design !!! ");
				return false;
		}
		//End of Choose Front radio button validation 
		
		var choose_back //initial value is null because we gave it no other value
		for (var i=0; i<document.fr_model.back_layout_id.length; i++)
		{ 
				if (document.fr_model.back_layout_id[i].checked)  
				{
					choose_back = document.fr_model.back_layout_id[i].value; //set choose_back equal to checked button's value
				} 
		}
		if(choose_back== null)
		{ //if choose_back is NOT equal to null, a button HAS been checked
				alert("Please Choose Back Design !!!");
				return false;
		}
		//End of Chose Back radio button validation 
		
		var choose_color //initial value is null because we gave it no other value
		for (var i=0; i<document.fr_model.col_id.length; i++)
		{ 
				if (document.fr_model.col_id[i].checked)  
				{
					choose_color = document.fr_model.col_id[i].value; //set choose_color equal to checked button's value
				} 
		}
		if(choose_color== null)
		{ //if choose_color is NOT equal to null, a button HAS been checked
				alert("Please Choose Color !!!");
				return false;
		}
		//End of Chose Color radio button validation 
		
		var choose_typestyle //initial value is null because we gave it no other value
		for (var i=0; i<document.fr_model.font_id.length; i++)
		{ 
				if (document.fr_model.font_id[i].checked)  
				{
					choose_typestyle= document.fr_model.font_id[i].value; //set choose_typestyle equal to checked button's value
				} 
		}
		
		
		if(choose_typestyle== null)
		{ //if choose_typestyle is NOT equal to null, a button HAS been checked
				alert("Please Choose TypeStyle !!!");
				return false;
		}
		//End of Chose TypeStyle radio button validation 

		
	}
