// JavaScript Document
<!--<script language="JavaScript" type="text/javascript">
<!-- // Clear Initial Form Field - by dreamlettes.net 
function clearDefault(){ 
var dbg='#E8FFE8'; // Background color, #DBF2EF Default
var fbg='#FFFFFF'; // Background color, onFocus 
	var tI = document.getElementsByTagName('input'); var tT = document.getElementsByTagName('textarea');
	for (var i = 0; i < tI.length; i++) { 
		if (tI[i] && tI[i].getAttribute('type') != '' && tI[i].getAttribute('type').toLowerCase() == 'text' || tI[i].getAttribute('type').toLowerCase() == 'password') 
		{tI[i].style.backgroundColor = dbg; thisValue = tI[i].getAttribute("title");
			if (thisValue){	tI[i].value = thisValue;} 
			tI[i].onfocus = function(){this.style.backgroundColor = fbg; if (this.value != this.getAttribute("title") && this.value != '') {return;} 
			else {this.value = '';}};
			tI[i].onblur = function(){this.style.backgroundColor = dbg; if (this.value == ''){this.value = this.getAttribute("title");}};}} 
	for (var i = 0; i < tT.length; i++){if (tT[i]){tT[i].style.backgroundColor = dbg; thisValue = tT[i].getAttribute("title");if (thisValue){tT[i].value = thisValue;} 
			tT[i].onfocus = function(){this.style.backgroundColor = fbg; if (this.value != this.getAttribute("title") && this.value != ''){return;}
			else {this.value = '';}};
			tT[i].onblur = function(){this.style.backgroundColor = dbg;if (this.value == ''){this.value =  this.getAttribute("title");}};}} 
}
window.onload=clearDefault;

// CDS Form Validator  by Chris Dixon Studios copyright 2001-5 all rights reserved. ||
// Function Validate form fields                                                    ||
function CheckForm( theform )
{
	var bMissingFields = false;
	var strFields = "";
	if( theform.b_first.value == '*required' || theform.b_first.value == '' ){
		bMissingFields = true;
		strFields += " Please enter your First Name!\n";
	}
	if( theform.b_last.value == '*required' || theform.b_last.value == '' ){
		bMissingFields = true;
		strFields += " Please enter your Last Name!\n";
	}
	if( theform.b_email.value == '*required' || theform.b_email.value == '' ){
		bMissingFields = true;
		strFields += " Please enter your permanent e-Mail address\n";
	}
	if( theform.b_phone.value == '*required' || theform.b_phone.value == ''){
		bMissingFields = true;
		strFields += " Please enter your Contact Phone number\n";
	}
	if( theform.comment.value == '*required' || theform.comment.value == '*required' ){
		bMissingFields = true;
		strFields += " Please enter your Comments.\n";
	}
	if( bMissingFields ) {
		alert( "I'm sorry, but you must provide the following field(s) before continuing:\n" + strFields );
		return false;
	}
	return true;
}
//-->
<!--<script>
