var saylor = "<div class='clientsum'>" +
          "<p><b>Web Application and Database Development</b> - " +
          "PHP, MySQL, AJAX, WordPress - Complete summary pending</p>" +
          "<p><a href='http://www.saylor.org/' target='_blank'>www.saylor.org</a></p>" +
          "</div>";
var caltort = "<div class='clientsum'>" +
          "<p><b>Web Application and Database Development</b> - " +
          "PHP, MySQL, AJAX, WordPress - Complete summary pending</p>" +
          "<p><a href='http://www.californiatortilla.com/' target='_blank'>www.californiatortilla.com</a></p>" +
          "</div>";
var confi = "<div class='clientsum'>" +
          "<p><b>Web Application and Database Development</b> - " + 
          "PHP, MySQL, AJAX, WordPress, XML, CSV, .NET, more... - Complete summary pending</p>" +
          "<p>Wide Array of Projects</p>" +
          "</div>"; 
var pools = "<div class='clientsum'>" +
				  "<p><b>Web Application and Database Development</b> - " +
				  "PHP, MySQL, Zen Cart - Complete summary pending</p>" +
				  "<p><a href='http://www.perfectpoolsupplies.com/' target='_blank'>www.perfectpoolsupplies.com</a></p>" +
				  "</div>";
var mdhm = "<div class='clientsum'>" +
				  "<p><b>Web Application and Database Development</b> - " +
				  "PHP, MySQL, PayPal IPN, AJAX, WordPress - Complete summary pending</p>" +
				  "<p><a href='http://www.mdhalfmarathon.com/' target='_blank'>www.mdhalfmarathon.com</a></p>" +
				  "</div>";
var ctb = "<div class='clientsum'>" +
				  "<p><b>Web Application and Database Development</b> - " + 
				  "PHP, MySQL, CSV, AJAX, WordPress - Complete summary pending</p>" +
				  "<p><a href='http://www.contourbedcatalog.com/' target='_blank'>www.contourbedcatalog.com</a></p>" +
				  "</div>";				  
var connections = "<div class='clientsum'>" +
				  "<p><b>Web Application and Database Development</b> - " +
				  "Designed and developed web application for gathering, storing and editing user and event registration information.  Web application also includes administrative features and PayPal integration.</p>" +
				  "<p><a href='http://www.makemoreconnections.com' target='_blank'>www.makemoreconnections.com</a></p>" +
				  "</div>";
var mpvw = "<div class='clientsum'>" +
		   "<p><b>Web Application and Database Development</b> - " +
		   "Designed and developed discounting group and newsletter registration functionality for e-commerce site.</p>" +
		   "<p><a href='http://www.mpvw.com.au/' target='_blank'>www.mpvw.com.au</a></p>" +
		   "</div>";
var medifast = "<div class='clientsum'>" +
			   "<p><b>Web Application and Database Development, IT Consulting</b> - " +
			   "Designed and developed data encryption architecture for secure automated customer transaction processing.  Moved (i.e. migrated) all web applications from a small hosting provider to a robust hosting solution.</p>" +
			   "<p><a href='http://www.medifast1.com' target='_blank'>www.medifast1.com</a></p>" +
			   "</div>";
var joneshomes = "<div class='clientsum'>" +
				  "<p><b>Web Application and Database Development, IT Consulting</b> - " +
				  "Designed and developed web application for gathering, storing and editing customer information.  Web application also includes administrative features and an interactive photo management system.</p>" +
				  "<p><a href='http://www.joneshomesgroup.com' target='_blank'>www.joneshomesgroup.com</a></p>" +
				  "</div>";
var tracymorris = "<div class='clientsum'>" +
				  "<p><b>Web Application and Database Development</b> - " +
				  "Designed and developed web application for gathering, storing and editing customer information.  Web application also includes administrative features and an interactive photo management system.</p>" +
				  "<p><a href='http://www.tracyamorris.com/' target='_blank'>www.tracyamorris.com</a></p>" +
				  "</div>";
var budding = "<div class='clientsum'>" +
			  "<p><b>Web Application and Database Development</b> - " +
			  "Designed and developed web application for gathering, storing and editing RSVP event information.  Web application also includes administrative features.</p>" +
			  "<p><a href='http://www.buddingprofessionals.com' target='_blank'>www.buddingprofessionals.com</a></p>" +
			  "</div>";
var lindenmeyr = "<div class='clientsum'>" +
		    	 "<p><b>Web Application and Database Development</b> - " +
				 "Designed and developed web application for gathering, storing and editing RSVP event information.  Web application also includes administrative features.</p>" +
				 "</div>";
var mci = "<div class='clientsum'>" +
		  "<p><b>Web Application and Database Development</b> - " +
		  "Designed and developed web application for gathering, storing and editing customer information.  Web application also includes administrative features.</p>" +
		  "<p>Pre-Launch</p>" +
		  "</div>";


function email(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

function clientover(img,src) {
	img.src = src;
}
function clientout(img,src) {
	img.src = src;
}


function AJAXvalidate(input, elmtId) {
 $.get('common/AJAXValidate.php',
        {text: input.value,
         field: input.name,
         id: elmtId},
        function(data){
          var bool  = data.substring( 0, data.indexOf(',') ); 
          var id    = data.substring( data.indexOf(',') + 1, data.lastIndexOf(',') );
          var field = data.substring( data.lastIndexOf(',') + 1 ); 
				  if (bool == 'false') {
				    document.getElementById(field).style.background = '#FAAFBA';
				    document.getElementById(id).style.color = '#CC0000';
				    document.getElementById(id).innerHTML = 'Invalid';
				  } else {
				    document.getElementById(field).style.background = '#C3FDB8';
				    document.getElementById(id).style.color = '#347235';
				    document.getElementById(id).innerHTML = 'Valid';  
				  }                            
        }
  );
}
