<!--
/*
====
Copyright (c) 1999, World View Design. All rights reserved.
Protected by copyright and license restricting use. This software
is licensed, not sold, for use only under expressed written consent
from World View Design. This software is protected by United States
copyright laws and international treaties. Unauthorized reproductions or
distributions are subject to civil and criminal penalties and are strictly prohibited.
====
*/
function cke(e){ic = " /:,;";for(i=0; i<ic.length; i++){bc = ic.charAt(i);if(e.indexOf(bc,0) > -1){alert("INVALID EMAIL ADDRESS\n\nYour email address contains invalid characters.        \nInvalid characters for an email address are:\n\n(1) Blank Space\n(2) Slash /\n(3) Colon :\n(4) Comma ,\n(5) Semicolon ;\n\n\n     Copyright © 2004 World View Design.");return false;}}atPos = e.indexOf("@",1);if(atPos == -1){alert("INVALID EMAIL ADDRESS\n\nAn email address must have the @ sign         \nseparating your name from your ISP.\nA valid email address should look like:\n\nYourName@YourISP.com\n\n\nCopyright © 2004 World View Design.");return false;}if(e.indexOf("@",atPos+1) > -1){alert("INVALID EMAIL ADDRESS\n\nYour email address has two or more @ signs. An email address        \nrequires one @ sign separating your name from your ISP.\nA valid email address should look like:\n\nYourName@YourISP.com\n\n\n                 Copyright © 2004 World View Design.");return false;}p = e.indexOf(".",atPos);if(p == -1){alert("INVALID EMAIL ADDRESS\n\nAn email address requires a period following your ISP.        \nA valid email address should look like:\n\nYourName@YourISP.com\n\n\n          Copyright © 2004 World View Design.");return false;}if(p+3 > e.length){alert("INVALID EMAIL ADDRESS\n\nAn email address must have at least two\ncharacters after the period that follows your ISP.        \nA valid email address should look like:\n\nYourName@YourISP.com\n\n\n      Copyright © 2004 World View Design.");return false;}return true;}



function ijiliijljijli(me)
{

	//CHEQUEA EL COREO
	if(me.email.value != "")
	{
		if(!cke(me.email.value))
		{
			me.email.focus();
			me.email.select();
			return false;
		}
	}
	else
	{
		alert("Please enter your e-mail in the box labeled:      \n\n Your E-mail:  [                 ] \n\n Copyright © World View Design.");
		me.email.focus();
		return false;
	}


	//NOMBRE
	if(me.name.value == "")
	{
		alert("Please enter your name in the box labeled:      \n\n Name:  [                 ] \n\n Copyright © World View Design.");
		me.name.focus();
		return false;
	}
	else
	{
		//DIRECSION
		if(me.address.value == "")
		{
			alert("Please enter your address in the box labeled:      \n\n Address:  [                 ] \n\n Copyright © World View Design.");
			me.address.focus();
			return false;
		}
		else
		{
			//SIUDAD
			if(me.city.value == "")
			{
				alert("Please enter your city in the box labeled:      \n\n City:  [                 ] \n\n Copyright © World View Design.");
				me.city.focus();
				return false;
			}
			else
			{
				//ESTADO
				if(me.state.value == "")
				{
					alert("Please enter your state in the box labeled:      \n\n State:  [                 ] \n\n Copyright © World View Design.");
					me.state.focus();
					return false;
				}
				else
				{
					//ZNUMEROS
					if(me.zip.value == "")
					{
						alert("Please enter your zip code in the box labeled:      \n\n Zip:  [                 ] \n\n     Copyright © World View Design.");
						me.zip.focus();
						return false;
					}					
					else
					{
						//TELEFONO
						if(me.phone.value == "")
						{
							alert("Please provide a valid daytime or evening phone    \nnumber in the box labeled: \n\n Phone:  [                 ] \n\n       Copyright © World View Design.");
							me.phone.focus();
							return false;
						}
						else
						{
							//ESCUCHO
							if(me.hear.value == "")
							{
								alert("Please tell us how you heard about us in the box labeled:      \n\n How did you hear about us?  [                 ] \n\n               Copyright © World View Design.");
								me.hear.focus();
								return false;
							}
						}
					}
				}
			}
		}
	}
}




function consult(me)
{
if(me.email.value != "")
	{
	if(!cke(me.email.value))
		{
		me.email.focus();
		me.email.select();
		return false;
		}
	}

else
	{
	alert("Please enter your e-mail in the box labeled:      \n\n Your E-mail:  [                 ] \n\n   Copyright © World View Design.");
	me.email.focus();
	return false;
	}

if(me.name.value == "")
	{
	alert("Please enter your name in the box labeled:      \n\n Name:  [                 ] \n\n   Copyright © World View Design.");
	me.name.focus();
	return false;
	}
else
	{
	if(me.phone.value == "")
		{
		alert("Please enter your phone number in the box labeled:      \n\n Phone:  [                 ] \n\n           Copyright © World View Design.");
		me.phone.focus();
		return false;
		}
	else
		{

		if(me.dia.value == "")
			{
			alert("Please enter the first date in the box labeled:      \n\n Date:  [                 ] \n\n       Copyright © World View Design.");
			me.dia.focus();
			return false;
			}

		else
			{
			if(me.time.value == "")
				{
				alert("Please enter the time of day in the box labeled:      \n\n Time:  [                 ] \n\n         Copyright © World View Design.");
				me.time.focus();
				return false;
				}
			else
				{
				if(me.timez1.value == "")
					{
					alert("Please enter the time zone in the box labeled:      \n\n US Time Zone:  [                 ] \n\n         Copyright © World View Design.");
					me.timez1.focus();
					return false;
					}
				else
					{
					if(me.dia2.value == "")
						{
						alert("Please enter the second date in the box labeled:      \n\n Date:  [                 ] \n\n       Copyright © World View Design.");
						me.dia2.focus();
						return false;
						}
					else
						{
						if(me.time2.value == "")
							{
							alert("Please enter the time of day in the box labeled:      \n\n Time:  [                 ] \n\n         Copyright © World View Design.");
							me.time2.focus();
							return false;
							}
						else
							{
							if(me.timez2.value == "")
								{
								alert("Please enter the time zone in the box labeled:      \n\n US Time Zone:  [                 ] \n\n         Copyright © World View Design.");
								me.timez2.focus();
								return false;
								}
							else
								{
								val = -1;
								for (x=0; x<me.type.length; x++)
									{
									if(me.type[x].checked){val = x;}
									}
								if(val == -1)
									{
									alert("Please select your consultation type.       \n\n Copyright © World View Design.");
									return false;
									}
								}
							}
						}
					}
				}
			}
		}
	}
}




function nready()
{
alert("The eNewsletter sign up plug-in is currently being installed.");
return false;
}

//-->