<!-- hide JS code

function validInput(myform) {

    var subject=myform.subject; 
    var msg="Please select a team:";
    if (!validateSelect(subject,msg))
	{
            return false;
	}


    var t1=myform.Message;
    if (isBlank(t1.value)) {
        alert('Please enter your ideas/messages.');
        t1.focus(); 
        //noerror = 0;
                return false
     }
   
    return true;
}


function isBlank(testStr) // check if a field is blank
{
  
    if (testStr.length == 0)                     // nothing entered?
    return true
        for (var i = 0; i <= testStr.length-1; i++)  // all spaces?
            if (testStr.charAt(i) != " ")
      return false
  return true
  
          }


function validateSelect(item,msg) //check if a selection is valid, working properly
{
    if (item.selectedIndex==0) //check if only the first item on the list is selected which starts with "Select..."
        {
            alert(msg); 
            item.focus();
            return false; 
        }
    return true;   
}   




// end JS hide -->


