function reviewProcess(url, vars){
			$.post(
				url, 
				vars,
				function(xmlResponse){
		    		var root = xmlResponse.getElementsByTagName('root');
					var err = xmlResponse.getElementsByTagName('error')[0].childNodes[0].nodeValue;
					var err_words = xmlResponse.getElementsByTagName('error_words')[0].childNodes[0].nodeValue;
					var msg = xmlResponse.getElementsByTagName('message')[0].childNodes[0].nodeValue;
					
					if(err == 'true'){
						alert('Error - Please try again later');
					}
					else if(err_words == 'true'){
						alert(msg);
					}
					else{
						$('#writereview_container').html(msg);
					}
					
					hideWait();
				}, 
				"xml"
			);
		}
	
		$(document).ready(function(){
			var example = 'Ex: Great Phone! Good for the traveling business person.';
			
			$('#summary').val(example);
			
			$('#summary').focus(function(){
				if($(this).val() == example){
					$(this).val('');
				}
			});
			
			$('#summary').blur(function(){
				if($(this).val().replace(/\s+/g,'').length == 0){
					$(this).val(example);
				}
			})
			
			$('#submit-review-container a').click(function(){
				
				if($('#rate_your_phone').val() == 'yes' && $('#your_phone').val().replace(/\s+/g,'').length == 0){
					alert('Please select your phone!');
					$('#your_phone').focus();
				}
				else if($('#summary').val().replace(/\s+/g,'').length == 0 || $('#summary').val() == example){
					alert('Please enter one line summary!');
					$('#summary').focus();
				}
				else if($('#comments').val().replace(/\s+/g,'').length == 0){
					alert('Please write your review!');
					$('#comments').focus();
				}
				else if($('#star_overall').val() == 0){
					alert('Please rate your phone (overall)!');
					$('#star1_overall').focus();
				}
				else if($('#star_battery').val() == 0){
					alert('Please rate your phone (battery life)!');
					$('#star1_battery').focus();
				}
				else if($('#star_use').val() == 0){
					alert('Please rate your phone (ease of use)!');
					$('#star1_use').focus();
				}
				else if($('#star_value').val() == 0){
					alert('Please rate your phone (value)!');
					$('#star1_value').focus();
				}
				else if($('#star_durability').val() == 0){
					alert('Please rate your phone (durability)!');
					$('#star1_durability').focus();
				}
				else if($('#star_display').val() == 0){
					alert('Please rate your phone (display)!');
					$('#star1_display').focus();
				}
				else if($('#buy').val() == 'y' && $('#buyStore').val().replace(/\s+/g,'').length == 0){
					alert('Please select store!');
					$('#buyStore').focus();
				}
				else if($('#buy').val() == 'y' && $('#star_store').val() == 0){
					alert('Please rate the store!');
				}
				else{
					var vars = '';
					var url = 'ajax/review.php';
					
					//top form vars
					var summary = encodeURIComponent($('#summary').val());
					var pros = encodeURIComponent($('#pros').val());
					var cons = encodeURIComponent($('#cons').val());
					var comments = encodeURIComponent($('#comments').val());
					var nickname = encodeURIComponent($('#nickname').val());
					
					//rating vars
					var r_overall = encodeURIComponent($('#star_overall').val());
					var r_battery = encodeURIComponent($('#star_battery').val());
					var r_use = encodeURIComponent($('#star_use').val());
					var r_value = encodeURIComponent($('#star_value').val());
					var r_durability = encodeURIComponent($('#star_durability').val());
					var r_display = encodeURIComponent($('#star_display').val());
					
					//bototm form vars
					var salutation = encodeURIComponent($('#salutation').val());
					var firstname = encodeURIComponent($('#firstname').val());
					var lastname = encodeURIComponent($('#lastname').val());
					var address = encodeURIComponent($('#address').val());
					var address2 = encodeURIComponent($('#address2').val());
					var city = encodeURIComponent($('#city').val());
					var state = encodeURIComponent($('#state-review').val());
					var zip = encodeURIComponent($('#zip-review').val());
					var country = encodeURIComponent($('#country').val());
					var phone = encodeURIComponent($('#phone').val());
					var email = encodeURIComponent($('#email').val());
					if($('#rate_your_phone').val() == 'yes'){
						var product = encodeURIComponent($('#your_phone').val());
						var hash = encodeURIComponent('$!%#^(7%)^)&#');
					}
					else{
						var product = encodeURIComponent($('#product').val());
						var hash = encodeURIComponent($('#hash').val());
					}
					
					//rate store
					var buy = $('#buy').val();
					var buyStore = $('#buyStore').val();
					var buyRate = $('#star_store').val();
					
					vars = addslashes('summary=' + summary + '&pros=' + pros + '&cons=' + cons + '&comments=' + comments + '&nickname=' + nickname + '&r_overall=' + r_overall + '&r_battery=' + r_battery + '&r_use=' + r_use + '&r_value=' + r_value + '&r_durability=' + r_durability + '&r_display=' + r_display + '&salutation=' + salutation + '&firstname=' + firstname + '&lastname=' + lastname + '&address=' + address + '&address2=' + address2 + '&city=' + city + '&zip=' + zip + '&state=' + state + '&country=' + country + '&phone=' + phone + '&email=' + email + '&product=' + product + '&hash=' + hash + '&buy=' + buy + '&buyStore=' + buyStore + '&buyRate=' + buyRate);
					
					showWait();
					setTimeout("reviewProcess('" + url + "', '" + vars + "')", 1000);
				}
				
				return false;
			});
		});