// JavaScript Document

function blockersubject2()
{
	
var first = "mail";
var next = "to:";
var name = "fev";
var other = "@";
var sec = "fevphoto";
var thi = ".";
var fth = "com";

var final =   first + next + name + other + sec + thi + fth + thi;

window.location.href=final;
	
}

// this reset the forms on the clear buttons 
function FVClearForm(form)
	{
		form.reset();
	}


function FVOnClickCheck(form)	
{
var objRegExp = /^(\s*)$/;
var FVStr = form.name.value;
var FVStr2 = form.email.value;
	//check for all spaces
	// .test is a regexp method which returns true is the string contains a match for the regexp. Check both customer name and email for whitepsace only
		if (objRegExp.test(FVStr) || objRegExp.test(FVStr2))
		{
			FVStr = FVStr.replace(objRegExp, '');
			if (FVStr.length == 0)
				{
					alert ("Please enter your name");
					form.customername.focus();
					return false;
				}			
			else
			if (objRegExp.test(FVStr2))
				{
					FVStr2 = FVStr2.replace(objRegExp, '');
					if (FVStr2.length == 0)
					{
					alert ("Please enter your email address");
					form.email.focus();
					return false;
					}
				}	
		}
}


