
// Freecycle Message Maker v1.5
// (c) 7th January 2007
// Ben Weaver (www.benweaver.info)
// J Carmichael (www.take1creative.co.uk)
// Em (www.WebDesign-Newcastle.co.uk)
// This version Freecycle Message Maker v1.7.003
// adapted by Richard Steele (richard@squeaky.demon.co.uk)
// You can use this script in your own pages and modify it for your own needs, but
// this original header must remain in place.

// Freecycle group moderators can download the most recent version from
// http://groups.yahoo.com/group/UKmodsquad/files/
//================================================================
var versionnumber = "1.7.003"	 // do not edit this version number
//================================================================



// Right! You need to change some bits of this code. Start making your changes here...



var groupNames = ["FULL CIRCLES - OTTAWA"];
var groupEmails = ["FullCirclesOttawa@yahoogroups.ca"];
var messageTypes = ["OFFER", "TAKEN", "WANTED", "RECEIVED", "AT THE CURB"];

GROUP_NAME_IN_TITLE = 1;//The title on the form is set to "Message Maker". You can optionally add 
						//your own group's name. Either taken from the FIRST of groupNames that
						// you filled in above or you can change this... (see string20 below). 
						

// AS REQUESTED - A MEANS OF ADDING THE FAIR OFFER POLICY INTO POSTS
// IT HAS TWO VARIABLES
// ONE TO MAKE THE CHECK BOX VISIBLE ON THE FORM
// THE SECOND GIVES THE OPTIONAL CHOICE OF ADDING TEXT TO THE SUBJECT LINE 

var FOP_LINE = new Array();  // Leave this line intact! 

SHOW_FOP = 1;			// 1 means "show" FOP check box in the form - it will still need to be 
		   				// checked by the member to show the FOP text in their message 
						
SHOW_FOP_SUBJECT = 0;	// 1 means also add " FOP" onto the end of the subject line  

FOP_LINE[0] = "";
FOP_LINE[1] = "";
FOP_LINE[2] = "Fair Offer Policy: I agree to take a period of time to see what responses I get before deciding who to give item(s) to. This gives members on Daily Digest, or those who don't have continual access to the Internet a fair chance to reply.";
						



// This script will advise the user about poor text entry. Set your preferences here:
FORCE_ITEM_PRESENT = 1;                   // 1 means user HAS to give an item name, 0 means it's optional.
WARN_FOR_ITEM_PRESENT = 1;                // 1 means user will be warned if item name is missing, 0 means no warning.
WARN_FOR_ITEM_LENGTH = 1;                 // 1 means will check for extra long item name, 0 means won't check.
WARN_FOR_ITEM_CAPITALS = 1;               // 1 means will check for lots of capitals in item name, 0 means won't check.
MAXIMUM_ITEM_LENGTH = 70;                 // Warning if item name is greater than 70 characters (if check is enabled)
MAXIMUM_ITEM_CAPS_PERCENTAGE = 80;        // Warning if item name is more than 80% capital letters (if check is enabled)

FORCE_LOCATION_PRESENT = 1;               // 1 means user HAS to provide a location, 0 means it's optional.
WARN_FOR_LOCATION_PRESENT = 1;            // 1 means user will be warned if location is missing, 0 means no warning.
WARN_FOR_LOCATION_LENGTH = 1;             // 1 means will check for extra long location, 0 means won't check.
WARN_FOR_LOCATION_CAPITALS = 1;           // 1 means will check for lots of capitals in location, 0 means won't check.
MAXIMUM_LOCATION_LENGTH = 35;             // Warning if location is greater than 35 characters (if check is enabled)
MAXIMUM_LOCATION_CAPS_PERCENTAGE = 80;    // Warning if location is more than 80% capital letters (if check is enabled)

FORCE_DESCRIPTION_PRESENT = 1;            // 1 means user HAS to provide a description. 0 means it's optional.
WARN_FOR_DESCRIPTION_PRESENT = 1;         // 1 means user will be warned if description is missing, 0 means no warning.
WARN_FOR_DESCRIPTION_LENGTH = 0;          // 1 means will check for extra long description, 0 means won't check.
WARN_FOR_DESCRIPTION_CAPITALS = 1;        // 1 means will check for lots of capitals in description, 0 means won't check.
MAXIMUM_DESCRIPTION_LENGTH = 1000;        // Warning if description is greater than 1000 characters (if check is enabled)
MAXIMUM_DESCRIPTION_CAPS_PERCENTAGE = 80; // Warning if description is more than 80% capital letters (if check is enabled)

	

var FOOTER_LINE = new Array();            // Leave this line intact!   

INCLUDE_CUSTOM_FOOTER = 1;                // 1 means a custom footer will be added. 0 means no footer will be added.
FOOTER_LINE[0] = "This post was generated using our Message Maker";
FOOTER_LINE[1] = "http://snurl.com/mm_ofn";



// IN ORDER TO REDUCE THE POSSIBILITY OF DOUBLE EMAILS - THIS IS A TRIAL OF THE GRAPHIC 
// ALERT/CONFIRM WINDOW. NOT ONLY DOES IT REMIND POSTERS THAT THEIR EMAIL HAS BEEN SENT
// I'VE DELIBERATELY SITED IT OVER THE TOP OF BOTH SEND BUTTONS ;-)	 
//
// This should always be left on.  i.e. as = 1
var CHECK_DOUBLE_POSTS = 1;	   //1 means show an alert to tell the member that their post has been 
					   		   //sent to their email software. (It allows "close window" 
							   //or return to the form ready for another post).
							   //it ALSO disables the "send mail" buttons.
							   




							   
// If you change any of the following text, remember that:
//  \n means a new line.
//  \' means a normal apostrophe (').
//  You should have ' at the start and ' again at the end of the message.
//  And of course sentences should begin with a capital letter and end in a full stop, question mark, or exclamation mark!

// Warning messages used during checks.
string00 = 'You didn\'t type in an item name. Please type in an item name so that people will know what the message is about.';
string01 = 'You didn\'t type in an item name. It\'s normally best to include a item name so that people will know what the message is about. \nDo you want to leave it blank?\n\nClick OK to keep it blank or click Cancel to go back and change it.';
string02 = 'Your item name is rather long. Please consider shortening the item name - you can always put extra details in the description section.\nDo you want to keep the long item name?\n\nClick OK to keep it or click Cancel to go back and change it.';
string03 = 'There are rather a lot of capital letters in your item name. It\'s normally best to use lowercase (small) letters to make the message more readable.\nDo you want to keep the capital letters?\n\nClick OK to keep them or click Cancel to go back and change them.';
string04 = 'You didn\'t type in your location. Please type in your location so that people can work out how far away they are from you.';
string05 = 'Your location is blank. It\'s normally best to include a location so people can work out how far away they are from you.\nDo you want to leave it blank?\n\nClick OK to keep it blank or click Cancel to go back and change it.';
string06 = 'Your location is rather long. Please consider shortening your location - you can always put extra details in the description section.\nDo you want to keep the long location?\n\nClick OK to keep it or click Cancel to go back and change it.';
string07 = 'There are rather a lot of capital letters in your location. It\'s normally best to use lowercase (small) letters to make the message more readable.\nDo you want to keep the capital letters?\n\nClick OK to keep them or click Cancel to go back and change them.';
string08 = 'You didn\'t type in a description of your item.\n\nIt is helpful to write some details such as make and model, or colour, or size etc. An indication of its condition or if it isn\'t working also helps.';
string09 = 'Your description is blank. It\'s normally best to include a description of your item so people get a better idea of what you\'re talking about.\nDo you want to leave this area empty?\n\nClick OK to keep it empty or click Cancel to go back and change it.';
string0A = 'Your description is very long. Please consider making it smaller, as long descriptions can slow down delivery of emails.';
string0B = 'There are rather a lot of capital letters in your description. It\'s normally best to use lowercase (small) letters to make the message more readable.\nDo you want to keep the capital letters?\n\nClick OK to keep them or click Cancel to go back and change them.';
string0C = 'Your message has been sent to your email program.\n\nIf your Message Maker form opened in a new window and you have finished sending messages then click on OK to close the window.\n\nOtherwise just click on Cancel.'
string0D = 'Click on OK if you\'d like to clear the form to send another message, or click on Cancel to leave your text in place. (Remember that your previous message has been sent).'



// Text used in the Message Maker form.

// The form simply has "Message Maker" as a title in the top left.
// If you'd like to put your group's name in front of it so it reads:-
// My_Group Message Maker - then add your group's name here. Ipswich Freecycle  MY_GROUP
// maximum of about 30 characters (depends on how many capitals etc)
// you can have Mytown Freecyle here instead of Mytown_Freecycle.
string20 = 'FULLCIRCLES - OTTAWA';

string21 = 'Please select your nearest Freecycle group';
string22 = 'Is your item';
string23 = 'or';
string24 = '(Start with an OFFER/WANTED, then follow up with a corresponding TAKEN/RECEIVED)';
string25 = 'What is your item?';
string26 = '(Please use one or two words, or a short phrase)';
string27 = 'Where are you based?';
string28 = '(The area of your town or city)';
string29 = 'Please describe your item:';
string2A = '(Give a few details if possible, e.g. colour, condition, size, etc.)';
string2B = 'Would you like to...';
string2C = 'Send message using email';
string2D = '(Clicking this button will start your computer\'s email program.)';
string2E = 'or...';
string2F = 'Send message by webmail';
string30 = '(Clicking this button will take you to Yahoo! Groups where you may be asked to sign in.)';
// EXTRA STRINGS FOR THE FAIR OFFER POLICY
// these *MUST* be short
string31 = ' I agree to using the';
string32 = ' Fair Offer Policy.';



// That's it! 	 All done!    YAY!   :-)


