<!-- hide from old browsers

var days = new Array();
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

var months = new Array();
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";

function changeImage(newImg) {
	document.ProdID.src = "products/" + newImg + ".jpg";
}

function openMeasure() {
	go = window.open("","measureguide","toolbar=no,width=480,height=465,directories=no,status=no,location=no,scrollbars,resizable=no,menubar=no");
	if(go!=null) {
			if(go.opener == null) {
					go.opener = self;
			}
			go.location.href = "tartanmeasure.asp";
				}
}

var url="http://www.borderart.com"
var title="Border Art - Scottish and Irish Genealogy Products"
function addfave() {
if (document.all)
window.external.AddFavorite(url,title)}

function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}


function form_validator(theForm)
{

 	if(theForm.SenderName.value == "" ) {
 		 alert("Please enter your Full Name.");
 		 theForm.SenderName.focus();
 		 return(false);
 	}

		if(theForm.SenderName.value == "your name" ) {
			 alert("Please enter your Full Name.");
			 theForm.SenderName.focus();
			 return(false);
		}

	if(!checkEmail(theForm.SenderEmail.value)) {
		 alert("Please enter a valid Email Address");
		theForm.SenderEmail.focus();
		 return false;
	}

	return (true);
}

// - end hiding -->
