function ClientValidate50(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 50){
		arguments.IsValid = false;
	}
}
function ClientValidate100(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 100){
		arguments.IsValid = false;
	}
}
function ClientValidate150(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 150){
		arguments.IsValid = false;
	}
}
function ClientValidate250(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 250){
		arguments.IsValid = false;
	}
}
function ClientValidate500(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 500){
		arguments.IsValid = false;
	}
}
function ClientValidate1000(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 1000){
		arguments.IsValid = false;
	}
}
function ClientValidate2000(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 2000){
		arguments.IsValid = false;
	}
}
function ClientValidate5000(source, arguments){
	var value
	value = new String(arguments.Value)

	if (value.length > 5000){
		arguments.IsValid = false;
	}
}
function ClientValidateEmail(source, arguments){
	var checkThisEmail
	checkThisEmail = new String(arguments.Value)

	var myEMailIsValid = true;
	var myAtSymbolAt = checkThisEmail.indexOf('@');
	var myLastDotAt = checkThisEmail.lastIndexOf('.');
	var mySpaceAt = checkThisEmail.indexOf(' ');
	var myLength = checkThisEmail.length;
	
	myEMailIsValid = true

	if (myAtSymbolAt < 1 ) 
	{myEMailIsValid = false}

	if (myLastDotAt < myAtSymbolAt) 
	{myEMailIsValid = false}

	if (myLength - myLastDotAt <= 2) 
	{myEMailIsValid = false}

	if (mySpaceAt != -1) 
	{myEMailIsValid = false}

	if (myEMailIsValid == false)
	{
		arguments.IsValid = false;
	}
}

function PopWindow(ImageFileName){
	win=window.open("","PopWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=0,left=0,width=520,height=392");
	win.document.open();
	win.document.write("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table width=100% height=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><tr height=100%><td width=100% align=center valign=middle><img SRC=photos/" + ImageFileName + "></td></tr></table></body>");
}

function PopWindowNewsLetter(ImageFileName){
	win=window.open("","PopWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=0,left=0,width=520,height=392");
	win.document.open();
	win.document.write("<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table width=100% height=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><tr height=100%><td width=100% align=center valign=middle><img SRC='" + ImageFileName + "'></td></tr></table></body>");
}

function PopLinkWindow(Link){
	window.open(Link);
}