function validateSendHomeMail(){
var name = document.mailing_list.name.value;
var city = document.mailing_list.last.value;
var email = document.mailing_list.temail.value;

if(name == "" || name == "Name"){
	alert('please insert your name');	
	document.mailing_list.name.focus();
	return false;
}
if(city == "" || city == "City"){
	alert('please insert your city');	
	document.mailing_list.last.focus();
	return false;
}
if(email == "" || email == "E-mail"){
	alert('Please insert your email address');
	document.mailing_list.temail.focus();
	return false;
}
}

function validateSearchEvents(){
var Search = document.searchEvents.search;
	if(Search.value==""){
		alert('Please insert your search phrase.');
		Search.focus();
		return false;
	}
}



function user_help(){
	alert(':. Add Event .: \n\n 1- You have to enter the details of the following: \n - Information about you\n - The event information\n - Organizer Contact information\n - The company organizer\n - Place of the event\n ');
	return false;
}

function validateAddAdminEvent(){
	//updaters
	var updaters = document.add_event.updaters[document.add_event.updaters.selectedIndex].value;
	var name = document.add_event.name.value;
	var company_name = document.add_event.company_name.value;
	var phone = document.add_event.phone.value;
	var email = document.add_event.email.value;
	
	/////////////////////////////////////////
	//event
	var city = document.add_event.city.value; 
	var countries = document.add_event.countries[document.add_event.countries.selectedIndex].value;
	var headline = document.add_event.headline.value; 
	
	var start_day = document.add_event.start_day.value; 
	var start_month = document.add_event.start_month.value; 
	var start_year =  document.add_event.start_month.value; 
	
	var end_day = document.add_event.end_day.value; 
	var end_month = document.add_event.end_month.value; 
	var end_year = document.add_event.end_year.value;  
	
	var start_hour = document.add_event.start_hour.value;  
	var start_minutes = document.add_event.start_minutes.value;  
	var start_ap = document.add_event.start_ap.value;  
	
	var end_hour = document.add_event.end_hour.value;  
	var end_minutes = document.add_event.end_minutes.value;  
	var end_ap = document.add_event.end_ap.value; 
	
	////////////////////////////////////////////////
	//organizer 
	var organizers = document.add_event.thaorganizers[document.add_event.thaorganizers.selectedIndex].value;
	var organizer_name = document.add_event.organizer_name.value; 
	var organizer_position = document.add_event.organizer_position.value; 
	var organizer_phone = document.add_event.organizer_phone.value; 
	var organizer_email = document.add_event.organizer_email.value; 
	
	///////////////////////////////////////////////
	//organizer company
	var companies = document.add_event.organizers[document.add_event.organizers.selectedIndex].value;
	var organizer_company_name = document.add_event.organizer_company_name.value; 
	var organizer_company_address = document.add_event.organizer_company_address.value; 
	var organizer_company_phone = document.add_event.organizer_company_phone.value; 

	
	//////////////////////////////////////////////////
	//places
	var places = document.add_event.places[document.add_event.places.selectedIndex].value;
	var place_name = document.add_event.place_name.value; 
	var place_address = document.add_event.place_address.value; 
	var place_phone = document.add_event.place_phone.value; 
	
	
	//updaters
	if (updaters == ''){
		if (name==''){
			alert('Please insert updater\'s name');
			document.add_event.name.focus();
			return false;
		}
		if (company_name==''){
			alert('Please insert updater\'s company name');
			document.add_event.company_name.focus();
			return false;
		}
		if (phone==''){
			alert('Please insert updater\'s phone');
			document.add_event.phone.focus();
			return false;
		}
		if (email==''){
			alert('Please insert updater\'s email');
			document.add_event.email.focus();
			return false;
		}
	}
	
	//event
	if (countries == ''){
		if (city ==''){
			document.add_event.city.focus();
			alert('Please insert city');			
			return false;
		}
	}
	
	if(headline ==''){
		document.add_event.headline.focus();
		alert('Please insert headline');		
		return false;
	}
	
	if(start_day =='' || start_month==''|| start_year==''){
		alert('Please insert complete start date');
		document.add_event.start_day.focus();
		return false;
	}
	
	if(end_day =='' || end_month==''|| end_year==''){
		alert('Please insert complete end date');
		document.add_event.end_day.focus();
		return false;
	}
	
	if(start_hour =='' || start_minutes==''|| start_ap==''){
		alert('Please insert complete end date');
		document.add_event.start_hour.focus();
		return false;
	}
	if(start_hour =='' || start_minutes==''|| start_ap==''){
		alert('Please insert complete start time');
		document.add_event.start_day.focus();
		return false;
	}
	if(end_hour =='' || end_minutes==''|| end_ap==''){
		alert('Please insert complete end time');
		document.add_event.end_day.focus();
		return false;
	}
	if (organizers == 'ena'){
		if (organizer_name==''){
			alert('Please insert organizer\'s name');
			document.add_event.organizer_name.focus();
			return false;
		}
		if (organizer_position==''){
			alert('Please insert organizer\'s position');
			document.add_event.organizer_position.focus();
			return false;
		}
		if (organizer_phone==''){
			alert('Please insert organizer\'s phone');
			document.add_event.organizer_phone.focus();
			return false;
		}
		if (organizer_email==''){
			alert('Please insert organizer\'s email');
			document.add_event.organizer_email.focus();
			return false;
		}
	}

	
	//organizer company
	if (companies == 'ena'){
		if (organizer_company_name==''){
			alert('Please insert company\'s name');
			document.add_event.organizer_company_name.focus();
			return false;
		}
		if (organizer_company_address==''){
			alert('Please insert organizer company address');
			document.add_event.organizer_company_address.focus();
			return false;
		}
		if (organizer_company_phone==''){
			alert('Please insert organizer company phone');
			document.add_event.organizer_company_phone.focus();
			return false;
		}
	}
	
	
	
	//////////////////////////////////////////////////
	//places
	
	if (places == 'ena'){
		if (place_name==''){
			alert('Please insert place\'s name');
			document.add_event.place_name.focus();
			return false;
		}
		if (place_address==''){
			alert('Please insert place address');
			document.add_event.place_address.focus();
			return false;
		}
		if (place_phone==''){
			alert('Please insert place phone');
			document.add_event.place_phone.focus();
			return false;
		}

	}


}


//organizer
function validateAddOrganizer(){	
	var organizer_name = document.add_organizer.organizer_name.value;
	var organizer_position = document.add_organizer.organizer_position.value;
	var organizer_phone = document.add_organizer.organizer_phone.value;
	
	var organizer_email = document.add_organizer.organizer_email.value;
	
	if (organizer_name ==''){
		alert('Please insert organizer name');
		document.add_organizer.organizer_name.focus();
		return false;
	}
	if (organizer_position ==''){
		alert('Please insert organizer position');
		document.add_organizer.organizer_position.focus();
		return false;
	}
	if (organizer_phone ==''){
		alert('Please insert organizer phone');
		document.add_organizer.organizer_phone.focus();
		return false;
	}
	
	if (organizer_email ==''){
		alert('Please insert organizer email');
		document.add_organizer.organizer_email.focus();
		return false;
	}
}

function validateUpdateOrganizer(){
	//    
	var name = document.update_organizer.name.value;
	var position = document.update_organizer.position.value;
	var phone = document.update_organizer.phone.value;
	var email = document.update_organizer.email.value;
	
	if (name ==''){
		alert('Please insert name');
		document.update_organizer.name.focus();
		return false;
	}
	if (position ==''){
		alert('Please insert position');
		document.update_organizer.position.focus();
		return false;
	}
	if (phone ==''){
		alert('Please insert phone');
		document.update_organizer.phone.focus();
		return false;
	}
	if (email ==''){
		alert('Please insert email');
		document.update_organizer.email.focus();
		return false;
	}
}

function validateUpdateCompanyOrganizer(){
	//update_company
	var company = document.update_company.company.value;	
	var address = document.update_company.address.value;	
	var company_phone = document.update_company.company_phone.value;	
	
	
	if (company == ''){
		alert('Please insert company name');
		document.update_company.company.focus();
		return false;
	}
	if (address == ''){
		alert('Please insert address');
		document.update_company.address.focus();
		return false;
	}
	if (company_phone ==''){
		alert('Please insert company phone');
		document.update_company.company_phone.focus();
		return false;
	}

}

//organizer company
function validateAddOrganizerCompany(){	
	var organizer_company_name = document.add_company.organizer_company_name.value;
	var organizer_company_address = document.add_company.organizer_company_address.value;
	var organizer_company_phone = document.add_company.organizer_company_phone.value;
	var organizer_website = document.add_company.organizer_website.value;
	
	if (organizer_company_name ==''){
		alert('Please insert organizer company name');
		document.add_company.organizer_company_name.focus();
		return false;
	}
	if (organizer_company_address ==''){
		alert('Please insert organizer company address');
		document.add_company.organizer_company_address.focus();
		return false;
	}
	if (organizer_company_phone ==''){
		alert('Please insert organizer company phone');
		document.add_company.organizer_company_phone.focus();
		return false;
	}
	
	if (organizer_website ==''){
		alert('Please insert organizer company website');
		document.add_company.organizer_website.focus();
		return false;
	}
}

//validate add updater
function validateAddUpdater(){
	//    
	var name = document.add_updater.name.value;
	var company_name = document.add_updater.company_name.value;
	var phone = document.add_updater.phone.value;
	var fax = document.add_updater.fax.value;
	var email = document.add_updater.email.value;
	
	if (name ==''){
		alert('Please insert updater name');
		document.add_updater.name.focus();
		return false;
	}
	if (company_name ==''){
		alert('Please insert updater company name');
		document.add_updater.company_name.focus();
		return false;
	}
	if (phone ==''){
		alert('Please insert updater phone');
		document.add_updater.phone.focus();
		return false;
	}
	if (email ==''){
		alert('Please insert updater email');
		document.add_updater.email.focus();
		return false;
	}
}

function validateUpdateupdater(){	    
	var name = document.update_updater.name.value;
	var company = document.update_updater.company.value;
	var phone = document.update_updater.phone.value;
	var email = document.update_updater.email.value;
	
	if (name ==''){
		alert('Please insert updater name');
		document.update_updater.name.focus();
		return false;
	}
	if (company ==''){
		alert('Please insert updater company');
		document.update_updater.company.focus();
		return false;
	}
	if (phone ==''){
		alert('Please insert updater phone');
		document.update_updater.phone.focus();
		return false;
	}
	if (email ==''){
		alert('Please insert updater email');
		document.update_updater.email.focus();
		return false;
	}
}


//place
function validateAddPlace(){
	//  
	var place_name = document.add_place.place_name.value;
	var place_address = document.add_place.place_address.value;
	var place_phone = document.add_place.place_phone.value;
	var place_website = document.add_place.place_website.value;
	
	if (place_name ==''){
		alert('Please insert place name');
		document.add_place.place_name.focus();
		return false;
	}
	if (place_address ==''){
		alert('Please insert place address');
		document.add_place.place_address.focus();
		return false;
	}
	if (place_phone ==''){
		alert('Please insert place phone');
		document.add_place.place_phone.focus();
		return false;
	}
	if (place_website ==''){
		alert('Please insert place website');
		document.add_place.place_website.focus();
		return false;
	}
}

//validate update place
function validateUpdatePlace(){
	//  
	var name = document.update_place.name.value;
	var address = document.update_place.address.value;
	var phone = document.update_place.phone.value;
	var website = document.update_place.website.value;
	
	if (name == ''){
		alert('Please insert place name');
		document.update_place.name.focus();
		return false;
	}
	if (address == ''){
		alert('Please insert place address');
		document.update_place.address.focus();
		return false;
	}
	if (phone == ''){
		alert('Please insert place phone');
		document.update_place.phone.focus();
		return false;
	}
	if (website == ''){
		alert('Please insert place website');
		document.update_place.website.focus();
		return false;
	}
}

//user interface add event
function validateAddYourEvent(){
	var name = document.add_event.name.value;
	var company_name = document.add_event.company_name.value;	
	var phone = document.add_event.phone.value;
	var fax = document.add_event.fax.value;
	var email = document.add_event.email.value;
	var city = document.add_event.city.value; 
	var city_id = document.add_event.countries.value; 
	var headline = document.add_event.headline.value; 
	var start_day = document.add_event.start_day.value; 
	var start_month = document.add_event.start_month.value; 
	var start_year =  document.add_event.start_year.value; 
	var end_day = document.add_event.end_day.value; 
	var end_month = document.add_event.end_month.value; 
	var end_year = document.add_event.end_year.value;  
	var start_hour = document.add_event.start_hour.value;  
	var start_minutes = document.add_event.start_minutes.value;  
	var start_ap = document.add_event.start_ap.value;  
	var end_hour = document.add_event.end_hour.value;  
	var end_minutes = document.add_event.end_minutes.value;  
	var end_ap = document.add_event.end_ap.value; 
	var note = document.add_event.note.value; 
	var invitation_requierment = document.add_event.invitation_requierment.value; 
	var organizer_name = document.add_event.organizer_name.value; 
	var organizer_position = document.add_event.organizer_position.value; 
	var organizer_phone = document.add_event.organizer_phone.value;  
	var organizer_email = document.add_event.organizer_email.value;  
	var organizer_company_name = document.add_event.organizer_company_name.value;  
	var organizer_company_address = document.add_event.organizer_company_address.value;  
	var organizer_company_phone = document.add_event.organizer_company_phone.value;  	
	var place_name = document.add_event.place_name.value;
	var place_address = document.add_event.place_address.value;
	var place_phone = document.add_event.place_phone.value;
	
	if (name ==''){
		alert('Please insert your name.');
		document.add_event.name.focus();
		return false;
	}
	
	if (company_name == ''){
		alert('Please insert your company name.');
		document.add_event.company_name.focus();
		return false;
	}
	
	if (email ==''){
		alert('Please insert your email.');
		document.add_event.email.focus();
		return false;
	}
	
	if (city =='' && city_id ==''){
		alert('Please select or insert city.');
		document.add_event.city.focus();
		return false;
	}
	
	if(headline ==''){
		alert('Please insert headline.');
		document.add_event.headline.focus();
		return false;
	}
	
	if(start_day =='' || start_month==''|| start_year==''){
		alert('Please insert complete start date.');
		document.add_event.start_day.focus();
		return false;
	}
	
	if(end_day =='' || end_month==''|| end_year==''){
		alert('Please insert complete end date.');
		document.add_event.end_day.focus();
		return false;
	}
		 if (end_year < start_year){
              	alert("end date must be greater than start date.");
              	document.add_event.end_day.focus();
				return false;	
				exit;
              }
               else if (end_year == start_year && end_month < start_month){
             		 alert("end date must be greater than start date.");
             		 document.add_event.end_day.focus();
					 return false;	
					 exit;
                }
              	 else if (end_year == start_year && end_month == start_month && end_day < start_day){
       				 alert("end date must be greater than start date.");
             		 document.add_event.end_day.focus();
					 return false;	
					 exit;
           }
	
	
	if(start_hour =='' || start_minutes==''|| start_ap==''){
		alert('Please insert complete end date.');
		document.add_event.start_hour.focus();
		return false;
	}
	if(start_hour =='' || start_minutes==''|| start_ap==''){
		alert('Please insert complete start time.');
		document.add_event.start_day.focus();
		return false;
	}
	if(end_hour =='' || end_minutes==''|| end_ap==''){
		alert('Please insert complete end time.');
		document.add_event.end_day.focus();
		return false;
	}
	if (note ==''){
		alert('Please insert note.');
		document.add_event.note.focus();
		return false;
	}
	
	if (invitation_requierment ==''){
		alert('Please insert invitation requirement.');
		document.add_event.invitation_requierment.focus();
		return false;
	}
	
	//organizer
	if (organizer_name ==''){
		alert('Please insert contact name.');
		document.add_event.organizer_name.focus();
		return false;
	}
	if (organizer_position ==''){
		alert('Please insert contact position.');
		document.add_event.organizer_position.focus();
		return false;
	}
	if (organizer_phone ==''){
		alert('Please insert contact phone.');
		document.add_event.organizer_phone.focus();
		return false;
	}
	
	if (organizer_email ==''){
		alert('Please insert contact email.');
		document.add_event.organizer_email.focus();
		return false;
	}
	
	if (organizer_company_name ==''){
		alert('Please insert organizer.');
		document.add_event.organizer_company_name.focus();
		return false;
	}	
	
	if (organizer_company_address ==''){
		alert('Please insert organizer address.');
		document.add_event.organizer_company_address.focus();
		return false;
	}
	if (organizer_company_phone ==''){
		alert('Please insert organizer phone.');
		document.add_event.organizer_company_phone.focus();
		return false;
	}
	
	
	
	
	//place
	
	if (place_name ==''){
		alert('Please insert place name');
		document.add_event.place_name.focus();
		return false;
	}
	if (place_address ==''){
		alert('Please insert place address');
		document.add_event.place_address.focus();
		return false;
	}
		
	if (place_phone ==''){
		alert('Please insert place phone');
		document.add_event.place_phone.focus();
		return false;
	}
}
	
	
function setFocus(){
	document.login.username.focus();
}




//reload page
function reloadpage(direct){
var country = document.choose.countries[document.choose.countries.selectedIndex].value;	
	if(country != ''){
		location.href= direct + '?id=' + country;
	}
	else{
		document.choose.countries.focus();
		alert('Please Choose country.');
		return false;
	}

}

//reload event page
function reloadEventPage(direct){
var image = document.add_event.categories[document.add_event.categories.selectedIndex].value;	
var country = document.add_event.countries[document.add_event.countries.selectedIndex].value;	
	if(country != ''){
		location.href= direct + '?categories=' + image + '&countries=' + country;
	}
		else{
		document.add_event.countries.focus();
		alert('Please Choose country.');
		return false;
	}

}



//country
function validateAddCountry(){
	var name = document.add_cat.name.value;
	
	if (name == ''){
		document.add_cat.name.focus();
		alert('Please enter country name');
		return false;
		
	}
}

function validateUpdateEvents(){

	var updater = document.update_event.updaters[document.update_event.updaters.selectedIndex].value;
	var organizer = document.update_event.organizers[document.update_event.organizers.selectedIndex].value;
	var companie = document.update_event.companies[document.update_event.companies.selectedIndex].value;
	var places = document.update_event.places[document.update_event.places.selectedIndex].value;
	var countrie = document.update_event.countries[document.update_event.countries.selectedIndex].value;
	var THacity = document.update_event.city.value;
	var headline = document.update_event.headline.value;
	var start_day = document.update_event.start_day.value; 
	var start_month = document.update_event.start_month.value; 
	var start_year =  document.update_event.start_year.value; 
	var end_day = document.update_event.end_day.value; 
	var end_month = document.update_event.end_month.value; 
	var end_year = document.update_event.end_year.value;
	if(updater == ""){
		alert("please select updater from the drop menu.");
		return false;
	}
	if(organizer == ""){
		alert("please select organizer from the drop menu.");
		return false;
	}
	if(companie == ""){
		alert("select company organizer from the drop menu.");
		return false;
	}
	if(places == ""){
		alert("select place from the drop menu.");
		return false;
	}
	if(countrie == ""){
		if(THacity == ""){
			alert("select a city from drop meny or insert a new one");
			document.update_event.city.focus();
			return false;
		}
	}
	if(headline == ""){
		alert("insert a headline");
		document.update_event.headline.focus();
		return false;
	}
	
	if(start_day =='' || start_month==''|| start_year==''){
		alert('Please insert complete start date.');
		document.update_event.start_day.focus();
		return false;
	}
	
	if(end_day =='' || end_month==''|| end_year==''){
		alert('Please insert complete end date.');
		document.update_event.end_day.focus();
		return false;
	}
		 if (end_year < start_year){
              	alert("end date must be greater than start date.");
              	document.update_event.end_day.focus();
				return false;	
				exit;
              }
               else if (end_year == start_year && end_month < start_month){
             		 alert("end date must be greater than start date.");
             		 document.update_event.end_day.focus();
					 return false;	
					 exit;
                }
              	 else if (end_year == start_year && end_month == start_month && end_day < start_day){
       				 alert("end date must be greater than start date.");
             		 document.update_event.end_day.focus();
					 return false;	
					 exit;
           		}
}




//validate add event
function validateAddEvent(){
	
	var eventHeadline = document.add_event.event_headline.value;		
	
	var start_month = document.add_event.start_month[document.add_event.start_month.selectedIndex].value;			
	var start_day = document.add_event.start_day[document.add_event.start_day.selectedIndex].value;		
	var start_year = document.add_event.start_year[document.add_event.start_year.selectedIndex].value;		
	
	var start_hour = document.add_event.start_hour[document.add_event.start_hour.selectedIndex].value;			
	var start_minutes = document.add_event.start_minutes[document.add_event.start_minutes.selectedIndex].value;				
	
	var end_month = document.add_event.end_month[document.add_event.end_month.selectedIndex].value;		
	var end_day = document.add_event.end_day[document.add_event.end_day.selectedIndex].value;		
	var end_year = document.add_event.end_year[document.add_event.end_year.selectedIndex].value;		
	var end_hour = document.add_event.end_hour[document.add_event.end_hour.selectedIndex].value;			
	var end_minutes = document.add_event.end_minutes[document.add_event.end_minutes.selectedIndex].value;				
	
	var organizer = document.add_event.organizer.value;
	
	var event = document.add_event.event.value;
	
	if (eventHeadline == ''){
		alert('Please insert event headline');
		document.add_event.event_headline.focus();
		return false;
	}
	
	if (isNaN(start_month) || isNaN(start_day) || isNaN(start_year)){
		alert('Please insert complete start date.');
		document.add_event.start_month.focus();
		return false;
	}
	
	if (isNaN(start_hour) || isNaN(start_minutes) ){
		alert('Please insert complete start time.');
		document.add_event.start_hour.focus();
		return false;
	}
	
	if (isNaN(end_month) || isNaN(end_day) || isNaN(end_year)){
		alert('Please insert complete end date.');
		document.add_event.end_month.focus();
		return false;
	}
	
	if (isNaN(end_hour) || isNaN(end_minutes) ){
		alert('Please insert complete end time.');
		document.add_event.end_month.focus();
		return false;
	}

	if (start_year > end_year){
		alert('Start date greater than end date. Please select a valid end date');
		document.add_event.end_year.focus();
		return false;
	}
	
	if (end_year == start_year && end_month < start_month){
		alert('Start date greater than end date. Please select a valid end date');
		document.add_event.start_year.focus();
		return false;
	}
	if (end_year == start_year && end_month == start_month && end_day < start_day){
		alert('Start date greater than end date. Please select a valid end date');
		document.add_event.start_year.focus();
		return false;
	}
			
	if (organizer.length > 4){
		alert('4 letters are allowed for organizer name.');
		document.add_event.organizer.focus();
		return false;
	}
	
	if (event == ''){
		alert('Please insert event notes.');
		document.add_event.event.focus();
		return false;
	}
	
}


function validateSendMessage(){
var name = document.send_message.name.value; 	
if (name ==''){
	alert('please insert your name.');
	document.send_message.name.focus();
	return false;
}
var email = document.send_message.email.value;
var message = document.send_message.message.value;

if(email == ''){
	alert('please insert email.');
	document.send_message.email.focus();
	return false;
}
if(message == ''){
	alert('please insert message.');
	document.send_message.message.focus();
	return false;
}		
}

function validatefriendEmail(){
var email = document.friendEmail.email.value;	
	if(email == ""){
		alert('Please insert your email address');
		document.friendEmail.email.focus();
		return false;
	}
	
}


//HELP JAVASCRIPT FOR ADMIN

//organizer
function help_organizer(){
	alert(':. Organizers Section .: \n\n 1- View the list of the added organizers.\n 2- Deleting an organizer will delete all events related to it.\n 3- To delete an organizer click on the X image\n 4- To update an organizer click  on the arrows image.\n');
	return false;
}

function help_add_organizer(){
	alert(':. Add Organizer .: \n\n 1- Insert organizer\'s name.\n 2- Insert the position\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert organizer\'s email\n 6- Click on "Add Organizer" to finish.');
	return false;
}


function help_update_organizer(){
	alert(':. Update Organizer .: \n\n 1- Insert organizer\'s name.\n 2- Insert the position\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert organizer\'s email\n 6- Click on the "Update" button to finish.');
	return false;
}

//organizer company

function help_co_organizer(){
	alert(':. Organizer Company Section .: \n\n 1- View the list of the added companies.\n 2- Deleting an organizer company will delete all events related to it.\n 3- To delete a company click on the X image\n 4- To update it click  on the arrows image.\n 5- To set as display on add event click on the stick image.\n');
	return false;
}

function help_add_co_organizer(){
	alert(':. Add Organizer Company .: \n\n 1- Insert company\'s name.\n 2- Insert the address\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert website\n 6- Click on the "Add" button to finish.');
	return false;
}


function help_update_co_organizer(){
	alert(':. Update Organizer Company .: \n \n 1- Insert company\'s name.\n 2- Insert the address\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert website\n 6- Click on the "Update" button to finish.');
	return false;
}

//event place

function help_event_place(){
	alert(':. Event Place Section .: \n\n 1- View the list of the added places.\n 2- Deleting an event place will delete all events related to it.\n 3- To delete a place click on the X image\n 4- To update it click  on the arrows image.\n 4- To set a place in add your event click on the stick image.\n');
	return false;
}

function help_add_event_place(){
	alert(':. Add Event Place .: \n\n 1- Insert place\'s name.\n 2- Insert the address\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert website\n 6- Click on the "Add" button to finish.');
	return false;
}


function help_update_event_place(){
	alert(':. Update Event Place .: \n \n 1- Insert place\'s name.\n 2- Insert the address\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert website\n 6- Click on the "Update" button to finish.');
	return false;
}


//updater

function help_updater(){
	alert(':. Updater Section .: \n\n 1- View the list of the added updaters.\n 2- To delete an updater click on the X image\n 3- To update it click  on the arrows image.\n');
	return false;
}

function help_add_updater(){
	alert(':. Add Updater .: \n\n 1- Insert updater\'s name.\n 2- Insert the updater\'s company\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert updater\'s email\n 6- Click on the "Add" button to finish.');
	return false;
}


function help_update_updater(){
	alert(':. Update Updater .: \n \n 1- Insert updater\'s name.\n 2- Insert the updater\'s company\n 3- Insert the phone number\n 4- Insert fax number (optional)\n 5- Insert  updater\'s email\n 6- Click on the "Update" button to finish.');
	return false;
}

//event
function help_event(){
	alert(':. Events Sections .: \n \n Events are divided into 6 categories.\n 1- Enabled events \n 2- Disabled events\n 3- grey events \n 4- black events \n 5- orange events \n 6- Archived events  \n\n To view one category click on the corresponding link. \n\n To update an event click on the arrows image.\n To delete an event click on the X image.\n To archive an event click on the desk image.\n\n To set an event as current click on the open folder image.\n To view the details of the event click on the more image.(>>) \n To change the event status from enabled to disabled and vice versa, click on the status image');
	return false;
}

function help_add_event_updater(){
	alert(':. Add Event Updater .: \n \n You can either select an event updater or add a new one.\n\n 1- Select an event updater if he/she exists\n 2- To add a new updater enter his/her details into the corresponding fields.\n 3- Note that all fields are required without the fax.');
	return false;
}

function help_add_event(){
	alert(':. Add Event .: \n \n 1- Insert a city if it does not already exists. \n 2- Insert event headline\n 3- Select the start date from the drop down menus\n 4- Select the end date from the drop down menus\n 5- Select start time\n 6- Select end time\n 7- Insert a note\n 8- Enter the invitation requirement\n 9- Browse for your brochure (optional)\n 10- Browse for the map of the event place.');
	return false;
}

function help_add_event_organizer(){
	alert(':. Add Event Organizer.: \n \n You can either select an event organizer or add a new one.\n\n 1- Select an event organizer if he/she exists\n 2- To add a new organizer enter his/her details into the corresponding fields.\n 3- Note that all fields are required without the fax. \n 4- If your don\'t find you Contact Details, Enter New Details Below.');
	return false;
}

function help_add_event_organizer_comp(){
	alert(':. Add Event Organizer.: \n \n You can either select an event organizer, or add a new one.\n\n 1- Select an already existing organizer.\n 2- To add a new organizer , enter details into the corresponding fields.\n 3- Note that all fields are required without the fax. \n 4- If you don\'t find your organizer Details, Enter New Details Below.');
	return false;
}

function help_add_event_place(){
	alert(':. Add Event Place.: \n \n You can either select an event place or add a new one.\n\n 1- Select an already existing Place.\n 2- To add a new Place , enter details into the corresponding fields. \n 3- Note that all fields are required without the fax. \n 4- If you don\'t find your location Details, Enter New Details Below. \n\n After inserting all required fields, click on "submit" button to finish');
	return false;
}
function help_update_event(){
	alert(':. Update Event .: \n \n 1- To choose a new updater, select from the drop down menu. \n 2- To choose a new organizer, select from the drop down menu. \n 3- To choose a new organizer company, select from the drop down menu.\n 4- To choose a new place, select from the drop down menu.\n 5- To choose a new place, select from the drop down menu, or insert a new city\n 6- Choose if the event has brochure or not 7- Update event headline\n 8- Update start and end dates from the drop down menus\n 9- Update start and end time from the drop down menu \n 10- Insert new note in note\'s textarea \n 11- Insert new invitation requirement in its textarea \n 12- To upload a new brochure or a new map click on "Browse" and select the files. 13- To preview the old brochure and map click on "Preview"\n 14- To finish your updater click on "update event" button.');
	return false;
}

//messages
function help_messages(){
	alert(':. Messages Section .: \n \n 1- Messages sent by users are displayed in this section. \n 2- You can delete any message by clicking on the X image');
	return false;
}


//messages
function help_email_messages(){
	alert(':. Email to a Friend .: \n \n 1- This section allows you to view users who have sent \n     an email to their friends about Hoxton Square.\n 2- To delete any item of this list click on the X image.');
	return false;
}

