function validateRequiredFields(){

			var emailRegExp = /^[^@]+@[^@]+\.[a-z]{2,}$/i;
			var phoneRegExp = /^\([1-9]\d{2}\)\s?\d{3}\-\d{4}$/;
			var validationStatus = 0;
			var allInputs = document.getElementsByTagName('input');
			var allSelects = document.getElementsByTagName('select');
			var allTextareas = document.getElementsByTagName('textarea');

			for(i=0;i!=allInputs.length;i++){

				if(document.getElementById(allInputs[i].id + '_required') && allInputs[i].id != 'phone'){
					if(allInputs[i].value == ""){
						allInputs[i].style.cssText = 'background-color:#f66;border:2px solid #600;';
                                                document.getElementById(allInputs[i].id + '_required').style.display = '';
						validationStatus = 1;
					} else {
						allInputs[i].style.cssText = '';
                                                document.getElementById(allInputs[i].id + '_required').style.cssText += 'display: none;';
					}
			    }
			}

			for(i=0;i!=allSelects.length;i++){   
				if(document.getElementById(allSelects[i].id + '_required')){             
					if(allSelects[i].value == '--Select--'){
						allSelects[i].style.cssText = 'width:275px; background-color:#f66; border:2px solid #600;';
                                                document.getElementById(allSelects[i].id + '_required').style.display = '';
						validationStatus = 1;
					} else {
						allSelects[i].style.cssText = 'width:275px;';
                                                document.getElementById(allSelects[i].id + '_required').style.cssText += 'display: none;';
					}
				}
			}

			for(i=0;i!=allTextareas.length;i++){
				if(document.getElementById(allTextareas[i].id + '_required')){               
					if(allTextareas[i].value == ''){
						allTextareas[i].style.cssText = 'background-color:#f66;border:2px solid #600;';
                                                document.getElementById(allTextareas[i].id + '_required').style.display = '';
						validationStatus = 1;
					} else {
						allTextareas[i].style.cssText = '';
                                                document.getElementById(allTextareas[i].id + '_required').style.cssText += 'display: none;';
					}
				}
			}
			
			if (document.getElementById('email').value.search(emailRegExp) == -1){
				document.getElementById("email_required").style.display = '';
                                document.getElementById("email").style.cssText = 'background-color:#f66;border:2px solid #600;'
				validationStatus = 1;
			} else {
				document.getElementById("email_required").style.cssText += 'display: none;';
                                document.getElementById("email").style.cssText = '';
			}
			
			 if (document.getElementById('phone').value.search(phoneRegExp) == -1  && document.getElementById('phone').value != ''){
				document.getElementById("phone_required").style.display = '';
                                document.getElementById("phone").style.cssText = 'background-color:#f66;border:2px solid #600;'
				validationStatus = 1;

			} else {
				document.getElementById("phone_required").style.cssText += 'display: none;';
                                document.getElementById("phone").style.cssText = '';
			} 
			
			if(validationStatus === 0){		
                                return true;
			} else {
                                document.getElementById("Required").style.cssText = 'color: red; font-weight: bold;';
	                        return false;
			}			
		}

