 /******************************************************************************
* lib_mainway.js                                                               *
*                                                                              *
* Mainway Sports JAVSCRIPT LIBRARY                                             *
*******************************************************************************/

	function VerifyEntry()
	{
	var email_ad=document.form2.email.value
		if (document.form2.fname.value == "")
		{
			alert ("Please enter your full name!");
			return false;
		}
		else if (document.form2.lname.value == "")
		{
			alert ("Please enter your full name!");
			return false;
		}
		else if (document.form2.phone.value == "")
		{
			alert ("You must enter a phone number at which we may contact you.");
			return false;
		}				
		else if (document.form2.street.value == "")
		{
			alert ("Please enter your full mailing address");
			return false;
		}
		else if (document.form2.city.value == "")
		{
			alert ("Please enter your full mailing address");
			return false;
		}
		else if (document.form2.province.value == "")
		{
			alert ("Please enter your full mailing address");
			return false;
		}
		else if (document.form2.postal.value == "")
		{
			alert ("Please enter your full mailing address");
			return false;
		}
		else if ((email_ad.indexOf("@")==-1) || (email_ad.indexOf(".")==-1))
		{
			alert ("Please enter a valid email address");
			return false;
		}
		else if (document.form2.terms.checked == false)
		{
			alert ("You must read the rules and regulations and check the checkbox corresponding to them");
			return false;
		}																				
		else		
			return true;
	}

function openCoupon()
{
open ("coupon.asp","Coupon", "height=275,width=400,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openRules()
{
open ("terms.asp","Rules", "height=275,width=400,scrollbars=yes,location=0,resizable=yes,status=no,border=no")
}

function openMap()
{
open ("map.asp","Map", "height=300,width=400,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openGardens1()
{
open ("gardens1.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openGardens2()
{
open ("gardens2.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openGardens3()
{
open ("gardens3.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openGardens4()
{
open ("gardens4.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openGardens5()
{
open ("gardens5.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}

function openForum1()
{
open ("forum1.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openForum2()
{
open ("forum2.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openForum3()
{
open ("forum3.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openForum4()
{
open ("forum4.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openForum5()
{
open ("forum5.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openVolley1()
{
open ("volley1.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openVolley2()
{
open ("volley2.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openVolley3()
{
open ("volley3.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openVolley4()
{
open ("volley4.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openMisc1()
{
open ("misc1.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openMisc2()
{
open ("misc2.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openMisc3()
{
open ("misc3.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openMisc4()
{
open ("misc4.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openMisc5()
{
open ("misc5.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}
function openMisc6()
{
open ("misc6.asp","Photos", "height=400,width=600,scrollbars=no,location=0,resizable=no,status=no,border=no")
}