//Following 2 functions are used to check newsletter registration form
function CheckMultiple1(frm, name) {
				for (var i=0; i < frm.length; i++)
				{
					fldObj = frm.elements[i];
					fldId = fldObj.id;
					if (fldId) {
						var fieldnamecheck=fldObj.id.indexOf(name);
						if (fieldnamecheck != -1) {
							if (fldObj.checked) {
								return true;
							}
						}
					}
				}
				return false;
			}
			
		function CheckForm1(f) 
		{
			var email_re = /[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i;
			if (!email_re.test(f.email.value)) 
			{
				alert("Please enter your email address.");
				f.email.focus();
				return false;
			}
		
						if (f.format.selectedIndex == -1) {
							alert("Please choose a format to receive your email campaigns in");
							f.format.focus();
							return false;
						}
					
				return true;
		}
		

//----------------------------------------------------------------------------------------------------		
//Function to check request a quote form
//----------------------------------------------------------------------------------------------------		
		function chk_quoteform()
				{
				
					var msg = "";
					var emailReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
					
					if (document.quoteform.firstname.value == "") { msg = msg + 'First Name \n'; document.quoteform.firstname.focus();}
					else if (document.quoteform.email.value == "") { msg = msg + 'Email Address \n'; document.quoteform.email.focus();}
					
					else  if (emailReegxp.test(document.quoteform.email.value) != true) { msg = msg + 'Invalid Email Address \n'; document.quoteform.email.focus();}
				
					else if (document.quoteform.service1.value == "" && document.quoteform.service2.value == "" && document.quoteform.service3.value == "" && document.quoteform.service4.value == "" && document.quoteform.service5.value == "" && document.quoteform.service6.value == "" && document.quoteform.service7.value == "" && document.quoteform.service8.value == "" && document.quoteform.service9.value == "") { msg = msg + 'Select at least one of the Services \n'; document.quoteform.service1.focus();}

					else if (document.quoteform.service_desc.value == "") { msg = msg + 'Description of Service \n'; document.quoteform.service_desc.focus();}

					else if (document.quoteform.budget.value == "") { msg = msg + 'Budget limitations \n'; document.quoteform.budget.focus();}
					else if (document.quoteform.date1xx.value == "") { msg = msg + 'Approximate Date \n'; document.quoteform.date1xx.focus();}
					
					
					
					
					if (msg != "")
					{
						alert('Please fill in following field \n\n'+msg);
						return false;
					}
					
					
					
					
					
				}
