function Validate(){
if (document.Sendmap.YourName.value == '' && document.Sendmap.YourEmail.value == '' && document.Sendmap.OtherName.value == '' && document.Sendmap.OtherEmail.value == ''){
	YourName = document.getElementById("YourNameF")
	YourName.className = 'td1Error'
	YourEmail = document.getElementById("YourEmailF")
	YourEmail.className = 'td2Error'	
	OtherName = document.getElementById("OtherNameF")
	OtherName.className = 'td3Error'
	OtherEmail = document.getElementById("OtherEmailF")
	OtherEmail.className = 'td4Error'
}

if (document.Sendmap.YourName.value == '') {
	YourName = document.getElementById("YourNameF")
	YourName.className = 'td1Error'
	return;
	}

if (document.Sendmap.YourEmail.value == '') {
	YourEmail = document.getElementById("YourEmailF")
	YourEmail.className = 'td2Error'
	return;
	}

if (document.Sendmap.OtherName.value == '') {
	OtherName = document.getElementById("OtherNameF")
	OtherName.className = 'td3Error'
	return;
	}

if (document.Sendmap.OtherEmail.value == '') {
	OtherEmail = document.getElementById("OtherEmailF")
	OtherEmail.className = 'td4Error'
	return;
	}

else {
	document.Sendmap.submit()
    
	}
}

function CheckValue(tgt){
if (tgt.name == 'YourName') {
if (tgt.value.length > 2){
YourName = document.getElementById("YourNameF")
YourName.className = 'td1'
	}
	}
if (tgt.name == 'YourEmail') {
if (tgt.value.length > 2){
YourEmail = document.getElementById("YourEmailF")
YourEmail.className = 'td2'
	}
	}
if (tgt.name == 'OtherName') {
if (tgt.value.length > 2){
OtherName = document.getElementById("OtherNameF")
OtherName.className = 'td3'
	}
	}
if (tgt.name == 'OtherEmail') {
if (tgt.value.length > 2){
OtherEmail = document.getElementById("OtherEmailF")
OtherEmail.className = 'td4'
	}
	}

}

