	getBottomTabGroup = function() 
	{ 
	if (this.element) 
	{ 
	var children = this.getElementChildren(this.element); 
	if (children.length) 
	return children[1]; 
	} 
	return null; 
	}; 

	var getBottomContentPanelGroup = function() 
	{ 
	if (this.element) 
	{ 
	var children = this.getElementChildren(this.element); 
	if (children.length > 1) 
	return children[0]; 
	} 
	return null; 
	}; 
	

function clearval(txt)

			{	

				document.getElementById(txt).value ='';

			}

			

			function noinput(txt)

			{

				if(document.getElementById(txt).value =='')

				{

					document.getElementById(txt).value = txt;

				}

			}
			


function validate_email(field,alerttxt)

{

with (field)

  {

  apos=value.indexOf("@");

  dotpos=value.lastIndexOf(".");

  if (apos<1||dotpos-apos<2)

    {alert(alerttxt);return false;}

  else {return true;}

  }

}

function validate_required(field,alerttxt,caption)

{

with (field)

  {

  if (value==null||value=="" || value==caption)

    {

    alert(alerttxt);return false;

    }

  else

    {

    return true;

    }

  }

}



function validate_form(thisform)

{

with (thisform)

  {

  if (validate_required(firstname,"Name must be filled out!","First Name")==false)

  {firstname.focus();return false;}
  
  if (validate_required(lastname,"Name must be filled out!","Last Name")==false)

  {lastname.focus();return false;}

if (validate_email(email,"Email must be filled out!")==false)

  {email.focus();return false;}

if (validate_required(phone,"Phone must be filled out!","Phone Number")==false)

  {phone.focus();return false;}


if (validate_required(interest,"Choose what type of service you are interested in.","Message")==false)

  {interest.focus();return false;}

  }

}			