  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19932854-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

	function chkFormSubmit(frm){
			if (VerifyFields(frm)){
				return true;
			} else {
				return false;
			}
		
	}
	function createRequestObject() {
		var ro;
		var browser = navigator.appName;
		if(browser == "Microsoft Internet Explorer"){
			ro = new ActiveXObject("Microsoft.XMLHTTP");
		}else{
			ro = new XMLHttpRequest();
		}
		return ro;
		}
		
		var http = createRequestObject();
		
		function sendemail() {
			var first_name = document.mini_form.first_name.value;
			var last_name = document.mini_form.last_name.value;
			var email = document.mini_form.email.value;
			var phone = document.mini_form.phone.value;
			//document.mini_form.send.disabled=true; 
			//document.mini_form.send.value='Sending....';
		
			http.open('get', 'http://www.1chrisandrews.com/parkblvdmarketing/wp-content/themes/default/contact.php?Source='+source+'&First_Name='+first_name+'&Last_Name='+last_name+'&Email='+email+'&Primary_Phone='+phone+'&action=send');
			http.onreadystatechange = handleResponse;
			http.send(null);
		}
		
		function handleResponse() {
			if(http.readyState == 4){
				var response = http.responseText;
				var update = new Array();
		
				if(response.indexOf('|' != -1)) {
					update = response.split('|');
					document.getElementById(update[0]).innerHTML = update[1];
				 
				}
			}
		}

		function mini_form() {
			sendemail();
			var first_name = document.mini_form.first_name.value;
			var last_name = document.mini_form.last_name.value;
			var email = document.mini_form.email.value;
			var phone = document.mini_form.phone.value;		
			document.getElementById("first_name").value=first_name;
			document.getElementById("last_name").value=last_name;			
			document.getElementById("phone").value=phone;
			document.getElementById("email").value=email;
		}
