/* Code copyright Mountain Graphics Inc and Cindy Massolin.  Not to be used without prior written permission.  License for use of this code is for this one web site only
Light My Fire Document - copyright Mountain Graphics Inc
This code is the property of Mountain Graphics Inc and Cindy Massolin.
It is authorized for one site license for the site created by Mountain Graphics Inc.
It cannot be sold or used on ANY other site without obtaining a second site license and thru written permission of Cindy Massolin*/

// newsletter_form JavaScript file
<!--

function checkform(frm)
{
var msg = ""
	
for (var i=0; i<frm.length; i++) {
	//{   if (i==7) {
    //     i=i+3;
    //                  }
   
		if (frm.elements[i].type == "text") {
				if (frm.elements[i].value == null || frm.elements[i].value == "") {
					msg +=frm.elements[i].title + " is required\n "
		}
        
	}
	}
		if (frm.phone.value.length!=10)	
		{
		msg += "\n Your Phone Number must be 10 digits including area code, with no dashes, spaces, or special characters.";
	}
	
		if (isNaN(frm.phone.value)) 
		{
		msg += "\n Your Phone Number must be numbers only (1, 2, 3, etc.).";
	}
	
for (var i=0; i<frm.length; i++) 
	{
		if (frm.elements[i].value == null || frm.elements[i].value == "")
		{
		frm.elements[i].focus();
		break;
		}
	}
		
		if (msg == "") 
		{
		alert ("Thank you for your Order!") 
		frm.submit()
		}
		else
		{
		alert (msg)
	}
}

//help window 
function help()
			{
			window.open("help_form.html","Help","width=565,height=600,status=yes,screenX=0,left=0,screenY=0,top=0");
			}

//-->
