function SetValueCheckBox(checkBoxElement)
{
	if (checkBoxElement.checked)	checkBoxElement.value = 'Yes';
	else checkBoxElement.value = 'No';
}


function VerifyCheckBox(checkBoxElement)
{
	if (checkBoxElement.checked)	checkBoxElement.value = 'true';
	else checkBoxElement.value = 'false';
}

function ValidateDataSmall(theForm)
{
	if ((theForm.Name.value == "") || (theForm.Name.value == 'Name'))
	{
		alert('Please, enter your full name.');
		theForm.Name.focus();
		return (false);
	}
	
	if ((theForm.Email.value == "") || (theForm.Email.value == 'Email'))
	{
		alert('Please, enter your email.');
		theForm.Email.focus();
		return (false);
	}
	else
	{
		if(!ValidateEmail(theForm.Email.value))
		{
			alert("Please check the emails address");
			theForm.Email.focus();
			return false;
		}
	}
		
	if ((theForm.Comment.value == "") || (theForm.Comment.value == 'Comments'))
	{
		alert('Please, enter your comments.');
		theForm.Comment.focus();
		return (false);
	}
}

function ValidateDataContact(theForm)
{
	if (theForm.contactDate.value != '')
		return false
		
	if (theForm.requiredfirstName.value == "")
	{
		alert('Please, enter your first name.');
		theForm.requiredfirstName.focus();
		return (false);
	}

	if (theForm.requiredlastName.value == "")
	{
		alert('Please, enter your last name.');
		theForm.requiredlastName.focus();
		return (false);
	}
	
	if (theForm.requiredemail.value == "")
	{
		alert('Please, enter your email.');
		theForm.requiredemail.focus();
		return (false);
	}
	else
	{
		if(!ValidateEmail(theForm.requiredemail.value))
		{
			alert("Please check the emails address");
			theForm.requiredemail.focus();
			return false;
		}
	}
}

function ValidateEmail(valor) 
{
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor))
        return true;
    else
        return false;
}
<!-- Begin
function checkrequired(which) {

if (which.contactDate.value != "")
{		
		return false;
}
	
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}
//  End -->


function nofollow(n){ document.location.href=n; } 


function makeArray(n) {
this.length = n
return this
}
monthNames = new makeArray(12)
monthNames[1] = "January"
monthNames[2] = "February"
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "August"
monthNames[9] = "September"
monthNames[10] = "October"
monthNames[11] = "November"
monthNames[12] = "December"
function dateString(oneDate) {
var theMonth = monthNames[oneDate.getMonth() + 1]
var theYear = oneDate.getFullYear()
return theMonth + " " + oneDate.getDate() + ", " + theYear
}
