function verify() {
			comment='';
			pattern=/^[a-z0-9\-_\.]+?@[a-z0-9\-_\.]+?\.[a-z]{2,5}$/;
			
			var sEmail = document.getElementById('cemail').value;
			
			if(document.getElementById('fname').value=='') {
				comment+='Your First Name is a required field.\n';
			}
			
			if(document.getElementById('lname').value=='') {
				comment+='Your Last Name is a required field.\n';
			}
			
			if(document.getElementById('phone').value == '') {
				comment+='Phone number is a required field.\n';
			}
			
			if(document.getElementById('address').value == '') {
				comment+='Address is a required field.\n';
			}
			
			if(document.getElementById('city').value == '') {
				comment+='City is a required field.\n';
			}
			
			if(document.getElementById('country').value == '') {
				comment+='Country is a required field.\n';
			}
			
			if(document.getElementById('zip').value == '') {
				comment+='Zip is a required field.\n';
			}
			
			if(pattern.test(sEmail) == false || sEmail == '') {
				comment+='Incorrect email address format.\n';
			}
			
			if(comment != '') {
				alert('Please correct the following:\n'+comment);
			} else {
				document.f2.submit();
			}
		}	
		
		function verify_finishing() {
			comment='';
			
			if(document.getElementById('address').value == '') {
				comment+='Address is a required field.\n';
			}
			
			if(document.getElementById('city').value == '') {
				comment+='City is a required field.\n';
			}
			
			if(document.getElementById('country').value == '') {
				comment+='Country is a required field.\n';
			}
			
			if(document.getElementById('zip').value == '') {
				comment+='Zip is a required field.\n';
			}
			
			if(comment != '') {
				alert('Please correct the following:\n'+comment);
			} else {
				document.f2.submit();
			}
		}			
		
		function verify_furnishing() {
			comment='';
			
			if(document.getElementById('address').value == '') {
				comment+='Address is a required field.\n';
			}
			
			if(document.getElementById('city').value == '') {
				comment+='City is a required field.\n';
			}
			
			if(document.getElementById('country').value == '') {
				comment+='Country is a required field.\n';
			}
			
			if(document.getElementById('zip').value == '') {
				comment+='Zip is a required field.\n';
			}
			
			if(comment != '') {
				alert('Please correct the following:\n'+comment);
			} else {
				document.f2.submit();
			}
		}			
		
		function verify_mortages() {
			comment='';
			
			if(comment != '') {
				alert('Please correct the following:\n'+comment);
			} else {
				document.f2.submit();
			}
		}	
		
		function RecommendSite($propertyName) {
			x = (screen.width-300)/2;
			y = (screen.height-500)/2;
			window.name = "main_window";
			window.open("http://www.investpolska.com/index.php?event=showRecommendSiteWindow&propertyName=" + $propertyName + "", "open_popup", "scrollbars=no,resizable=no,location=no,directories=no,status=NO,width=430,height=260,left=" + x + ",top=" + y + "");
		}		
