
 
 
function isEmail(str)
	{
	// are regular expressions supported?
	var supported = 0;
	if (window.RegExp)
		{
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);
		if (tempReg.test(tempStr))
			{
			var supported = 1;
			}
		}
	if (supported == 1)
		{
		var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
		var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
		return (!r1.test(str) && r2.test(str));
		}
	else
		{
		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0) && (str.indexOf("@") < 2);
		}
	};
function AuthForm() {
	var alertText = "Please check following form field(s):";
	var e = 0;
	//Form Logic
		if (document.SidsForm.FirstName.value=="")		{alertText = alertText + "\nPlease enter First Name.";var e = 1;}
		if (document.SidsForm.LastName.value=="")		{alertText = alertText + "\nPlease enter Last Name.";var e = 1;}
		//if (document.SidsForm.Business.value=="")		{alertText = alertText + "\nPlease enter Group or Business.";var e = 1;}
		if (document.SidsForm.Address1.value=="")		{alertText = alertText + "\nPlease enter Address.";var e = 1;}
		if (document.SidsForm.City.value=="")			{alertText = alertText + "\nPlease enter City.";var e = 1;}
		if (document.SidsForm.State.value=="")			{alertText = alertText + "\nPlease enter State.";var e = 1;}
		if (document.SidsForm.Zip.value=="")				{alertText = alertText + "\nPlease enter Zip.";var e = 1;}
		if (!isEmail(document.SidsForm.Email.value))		{alertText = alertText + "\nEmail must be valid email address."; var e = 1;}
		if (document.SidsForm.Phone.value=="")			{alertText = alertText + "\nPlease enter Phone Number.";var e = 1;}
		if (document.SidsForm.Interest_Hunting[0].checked == true)
			{
			if (document.SidsForm.HuntingType.value=="")	{alertText = alertText + "\nPlease enter Type of Hunting.";var e = 1;}
			}
		if (document.SidsForm.NumberHunters.value=="")	{alertText = alertText + "\nPlease enter Number of Hunters / Guests.";var e = 1;}
		if (document.SidsForm.Dates.value=="")			{alertText = alertText + "\nPlease enter Dates.";var e = 1;}
			
			
		//Test to see if any errors were reported
		if (e!=0) {alert(alertText);return (false)}
        //No errors return true
		else {return (true);}
}

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
    function showInfo(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=525, height=450, status=no, toolbar=no, location=no, scrollbars=no, resizable=yes, statusbar=no");
	}

	function showInfowider(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=565, height=450, status=no, toolbar=no, location=no, scrollbars=no, resizable=no, statusbar=no");
	}
	function showInfo2(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=515, height=430, status=no, toolbar=no, location=no, scrollbars=no, resizable=no, statusbar=no");
	}

	function showInfo3(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=850, height=550, status=no, toolbar=no, location=no, scrollbars=yes, resizable=yes, statusbar=no");
	}

	function showInfo4(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=400, height=375, status=no, toolbar=no, location=no, scrollbars=no, resizable=no, statusbar=no");
	}





	function showInfo5(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=700, height=520, status=no, toolbar=no, location=no, scrollbars=no, resizable=yes, statusbar=no");
	}

	function showInfo6(item)
	{
		var file=item + "_info.html";
		var info_window=window.open(file, "info_window", "width=515, height=430, status=no, toolbar=no, location=no, scrollbars=no, resizable=no, statusbar=no");
	}

function showInfo7(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=635, height=636, status=no, toolbar=no, location=no, scrollbars=yes, resizable=no, statusbar=no");
	}


function showInfo8(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=700, height=650, status=no, toolbar=no, location=no, scrollbars=yes, resizable=no, statusbar=no");
	}


function showInfo9(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=650, height=750, status=no, toolbar=no, location=no, scrollbars=yes, resizable=no, statusbar=no");
	}

function showInfo10(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=450, height=375, status=no, toolbar=no, location=no, scrollbars=no, resizable=no, statusbar=no");
	}
 
function showInfo11(item)
	{
		var file=item + ".html";
		var info_window=window.open(file, "info_window", "width=600, height=450, status=no, toolbar=no, location=no, scrollbars=yes, resizable=no, statusbar=no");
	}




	function openNewWindow() {
  popupWin = window.open('http://www.mahorses.com',
    'open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')

}


function openNewWindow1() {
  popupWin = window.open('HTML/2004colts.html',
    'open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')

}
function openNewWindow1A() {
  popupWin = window.open('2004colts.html',
    'open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')

}





function openNewWindow2() {
  popupWin = window.open('http://www.fqhr.net','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow3() {
  popupWin = window.open('http://www.wilyrox.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow4() {
  popupWin = window.open('http://www.arnoldquarterhorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow5() {
  popupWin = window.open('http://www.goodmanquarterhorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow6() {
  popupWin = window.open('http://www.prorodeo.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow7() {
  popupWin = window.open('http://www.sdqha.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow8() {
  popupWin = window.open('http://www.wkghorse.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow9() {
  popupWin = window.open('http://www.willowcreekquarterhorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow10() {
  popupWin = window.open('http://www.lylesquarterhorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow11() {
  popupWin = window.open('http://www.sanddunecattleco.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow12() {
  popupWin = window.open('http://www.driftwoodhorses.net','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow13() {
  popupWin = window.open('http://www.trcperformancehorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow14() {
  popupWin = window.open('http://www.goodsperformancehorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow15() {
  popupWin = window.open('http://www.aqha.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}


function openNewWindow16() {
  popupWin = window.open('http://www.driftwoodhorses.net/stallions.htm','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}


function openNewWindow17() {
  popupWin = window.open('http://www.childers-ranch.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}



function openNewWindow18() {
  popupWin = window.open('http://www.smithquarterhorses.com','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}

function openNewWindow19() {
  popupWin = window.open('http://WWW.RODEOSTALLIONS.COM ','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}


function openNewWindow20() {
  popupWin = window.open('http://www.redunsaid.com/bio.cfm ','open_window',
    'menubar,toolbar,location,directories,status,scrollbars,resizable,dependent,width=800,height=550,left=0,top=0')
}
