<!--
function hideunhide(divID) {
	//loop through all the divIDs.  Turn off if it's not supposed to be on and on it if is
	for (ctr=1;ctr<=6;ctr=ctr+1)
	{
		//get the id of the box to show or hide (add the 0 to numbers under 10.  example: 01)
		if (ctr < 10)
		{
			currentid = "pm"+ctr;
		} else {
			currentid = "pm"+ctr;
		}
		
		//get the item
		var item = document.getElementById(currentid);
		//check to see if this id is the one to hide/show
		if (item)
		{
			if (currentid == divID)
			{
				//if this is the id submitted, either hide or show (opposite of current status)
				item.className=(item.className=='hidden')?'unhidden':'hidden';
			} else {
				//if it is not the current id, hide
				item.className='hidden';
			}
		}
	}

}

function unhide(divID) {
  var item = document.getElementById(divID);
  if (item) {
    item.className=(item.className=='hidden')?'unhidden':'hidden';
  }
}

//list of banned words
var bannedWords = new Array ("http://", "https://");


function validate_form() 
{		
		valid = true;

			for ( var j = 0; j < bannedWords.length; ++j )
			{
			if 	(
				( document.contact.name.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.contact.phone.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.contact.email.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.contact.company.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.contact.comments.value.indexOf (bannedWords[j]) >= 0 )
				)
				{
				unhide('nohttp');
				valid = false;
				}
			}

        if ( document.contact.answer.value != "eleven" )
			{
				unhide('nospam');
				valid = false; 
			}
		if ( valid == true)
			{
				unhide('thankyou');	
			}
			
        return valid;
		
}


-->