function trim(Key) {
	while(''+Key.charAt(Key.length-1)==' ')
		{ Key=Key.substring(0,Key.length-1); }
	return Key;
}

function validateContact() {

	a = document.frmSend;
	a.realname.value = trim(a.realname.value);
	a.subject.value = trim(a.subject.value);
	a.email.value = trim(a.email.value);
	a.Service.value = trim(a.Service.value);
	
	if (a.realname.value == '') {
		alert('Please type your "Name" !');
		return false;
	}
	
	if (a.subject.value == '') {
		alert('Please select a "Subject" !');
		return false;
	}
	
	if (!a.email.value) {
		alert('Please type your "Email Address" !');
		return false;
	}
	
	if (!a.Service.value) {
		alert('Please select the "Type of Service Needed" !');
		return false;
	}
	return true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features+'status=yes');
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}