<!--

	function searchIt() {

		new_query = document.getElementById('query').value;

		new_URL = "http:\/\/www.theowenscompanies.com\/search.php?query=" + new_query + "&search=1";
		location.href=new_URL;

		}

	function photoGallery(galleryID) {

		canStart = 0;

		if (galleryID == 'Gene_Haynes_2009') {

			canStart = 1;
			galVars = 'width=500,height=600,scrollbars=auto,resizable=1,status=0,toolbar=0,location=0';
			galLoc = 'galleries/gallery.php?galID=5';

			}

		if (galleryID == 'FAMILIES_FIRST') {

			canStart = 1;
			galVars = 'width=500,height=600,scrollbars=auto,resizable=1,status=0,toolbar=0,location=0';
			galLoc = 'galleries/gallery.php?galID=1';

			}

		if (galleryID == 'Diamonds_2007') {

			canStart = 1;
			galVars = 'width=500,height=600,scrollbars=auto,resizable=1,status=0,toolbar=0,location=0';
			galLoc = 'galleries/gallery.php?galID=2';

			}			

		if (galleryID == 'Diamonds_2008') {

			canStart = 1;
			galVars = 'width=500,height=600,scrollbars=auto,resizable=1,status=0,toolbar=0,location=0';
			galLoc = 'galleries/gallery.php?galID=4';

			}			

		if (canStart) {

			window.open(galLoc,'galWindow',galVars);

			}

		}

	function startApp(Application) {

		canStart = 0;

		if (Application == 'staffingTest') {

			canStart = 1;
			appVars = 'width=900,height=600,scrollbars=yes,resizeable=no,status=1,toolbar=0,location=0';
			appLoc = 'https://www.theowenscompanies.com/staffing/1.php';

			}


		if (Application == 'onlineApplication') {

			canStart = 1;
			appVars = 'width=700,height=600,scrollbars=yes,resizeable=no,status=1,toolbar=0,location=0';
//			appLoc = 'https://www.theowenscompanies.com/app/application.php';
//			appLoc = 'https://www.theowenscompanies.com/application.php';
			appLoc = 'https://www.theowenscompanies.com/app/disclaimer.php';
//			appLoc = 'https://www.theowenscompanies.com/app/downtime.php';

			}

		if (Application == 'staffingRequest') {

			canStart = 1;
			appVars = 'width=650,scrollbars=yes,resizeable=yes';
			appLoc = 'https://www.theowenscompanies.com/staffing-request/';

			}

		if (canStart) {

			window.open(appLoc,'appWindow',appVars);

			}

		}

	function clearText() {

		document.form.q.value = ""

		}

	function getDiamondsSheet() {

		window.open('diamondreg.php','')

		}


function getCalendarDate() {

	   var months = new Array(13);
	   months[0]  = "January";
	   months[1]  = "February";
	   months[2]  = "March";
	   months[3]  = "April";
	   months[4]  = "May";
	   months[5]  = "June";
	   months[6]  = "July";
	   months[7]  = "August";
	   months[8]  = "September";
	   months[9]  = "October";
	   months[10] = "November";
	   months[11] = "December";
	   var now         = new Date();
	   var monthnumber = now.getMonth();
	   var monthname   = months[monthnumber];
	   var monthday    = now.getDate();
	   var year        = now.getYear();
	   if(year < 2000) { year = year + 1900; }
	   var dateString = monthname +
                ' ' +
                monthday +
                ', ' +
                year;
	   return dateString;

	} 


function getClockTime() {

   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                    ':' +
                    second +
                    " " +
                    ap;
   return timeString;

	}

// -->