<!--
function emailvalidate_form ( )
{
 		if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.xlist.email.value))
 		{
		return (true)

		}
		alert("Invalid E-mail Address! Please re-enter.")
		document.xlist.email.focus(); 
		 valid= false;
}

function val_hotel_form ( )
{
    valid = true;
    if ( document.xlist.hotel_name.value == "" )
    {
        alert ( "Please fill in Hotel Name." );
         document.xlist.hotel_name.focus(); 
        valid = false;
    }

    else if( document.xlist.star.value == "" )
    {
        alert ( "Please fill in Star." );
         document.xlist.star.focus(); 
        valid = false;
    }
        else if( document.xlist.city.value == "" )
    {
        alert ( "Please fill in City." );
         document.xlist.city.focus(); 
        valid = false;
    }
        else if( document.xlist.country.value == "" )
    {
        alert ( "Please fill in Country." );
         document.xlist.country.focus(); 
        valid = false;
    }
        
   return valid;

}

function val_carhire_form ( )
{
    valid = true;
    if ( document.xlist.company_name.value == "" )
    {
        alert ( "Please fill in Company Name." );
         document.xlist.company_name.focus(); 
        valid = false;
    }

    else if( document.xlist.city.value == "" )
    {
        alert ( "Please fill in City." );
         document.xlist.city.focus(); 
        valid = false;
    }
    
    else if( document.xlist.tel.value == "" )
    {
        alert ( "Please fill in Telephone." );
         document.xlist.tel.focus(); 
        valid = false;
    }

        else if( document.xlist.country.value == "" )
    {
        alert ( "Please fill in Country." );
         document.xlist.country.focus(); 
        valid = false;
    }
       
        
   return valid;

}


function val_event_form ( )
{
    valid = true;

    if ( document.xlist.event_name.value == "" )
    {
        alert ( "Please fill in Event Name." );
         document.xlist.event_name.focus(); 
        valid = false;
    }

    else if( document.xlist.category.value == "Select Category" )
    {
        alert ( "Please fill in Category." );
         document.xlist.category.focus(); 
        valid = false;
    }
  
        else if( document.xlist.description.value == "" )
    {
        alert ( "Please fill in Description." );
         document.xlist.description.focus(); 
        valid = false;
    }
        else if( document.xlist.dayfrom.value == "Day" )
    {
        alert ( "Please fill in Start Day." );
         document.xlist.dayfrom.focus(); 
        valid = false;
    }
         else if( document.xlist.monthfrom.value == "Month" )
    {
        alert ( "Please fill in Start Month." );
         document.xlist.monthfrom.focus(); 
        valid = false;
    }
        else if( document.xlist.yearfrom.value == "Year" )
    {
        alert ( "Please fill in Start Year." );
         document.xlist.yearfrom.focus(); 
        valid = false;
    }
    
    else if( document.xlist.dayto.value == "Day" )
    {
        alert ( "Please fill in End Day." );
         document.xlist.dayto.focus(); 
        valid = false;
    }
         else if( document.xlist.monthto.value == "Month" )
    {
        alert ( "Please fill in End Month." );
         document.xlist.monthto.focus(); 
        valid = false;
    }
        else if( document.xlist.yearto.value == "Year" )
    {
        alert ( "Please fill in End Year." );
         document.xlist.yearto.focus(); 
        valid = false;
    }

    
    
    else if( document.xlist.city.value == "" )
    {
        alert ( "Please fill in City." );
         document.xlist.city.focus(); 
        valid = false;
    }
         else if( document.xlist.country.value == "-- Select Country --" )
    {
        alert ( "Please fill in Country." );
         document.xlist.country.focus(); 
        valid = false;
    }
        else if( document.xlist.venue.value == "" )
    {
        alert ( "Please fill in venue." );
         document.xlist.venue.focus(); 
        valid = false;
    }

    
    
        else if( document.xlist.keywords.value == "" )
    {
        alert ( "Please fill in Keywords." );
         document.xlist.keywords.focus(); 
        valid = false;
    }
         else if( document.xlist.organiser_name.value == "" )
    {
        alert ( "Please fill in Organiser." );
         document.xlist.organiser_name.focus(); 
        valid = false;
    }
        else if( document.xlist.address.value == "" )
    {
        alert ( "Please fill in Address." );
         document.xlist.address.focus(); 
        valid = false;
    }

    
       else if( document.xlist.contact_person.value == "" )
    {
        alert ( "Please fill in Contact Person." );
         document.xlist.contact_person.focus(); 
        valid = false;
    }
         else if( document.xlist.designation.value == "" )
    {
        alert ( "Please fill in Designation." );
         document.xlist.designation.focus(); 
        valid = false;
    }
        else if( document.xlist.tel.value == "" )
    {
        alert ( "Please fill in Telephone #." );
         document.xlist.tel.focus(); 
        valid = false;
    }
  else if( document.xlist.profile.value == "" )
    {
        alert ( "Please fill in Organiser Profile." );
         document.xlist.profile.focus(); 
        valid = false;
    }

        
   emailvalidate_form ( );
   return valid;

}

function validate_form ( )
{
    valid = true;

    if ( document.keysearch.search.value == "") 
    {
        alert ( "Please Fill in Keyword to Search." );
        document.keysearch.search.focus(); 
        valid = false;
     } 
        else if ( document.keysearch.search.value == "Event Search") 
    {
        alert ( "Please Fill in Keyword to Search." );
        document.keysearch.search.focus(); 
        valid = false;
     }  
       else if ( document.keysearch.choice.value == "- Select Event Type -")
    {
        alert ( "Please Select Event Type." );
        document.keysearch.choice.focus(); 
        valid = false;
     }   
   
    return valid;
}

//-->