/*
Geocaching Mail Paranoia - v1.0 2005-08-23
(c) 2005, Prime Suspect Software

Greasemonkey user script: see http://greasemonkey.mozdev.org

Compatible with Greasemonkey 0.6.4.

Function:
 For those who want to make sure they never send their real
 email address, and/or those who don't want a copies of their
 mail sent to their geocaching account mailbox.

Usage:
 Script allows you to determine the default values for the two
 check boxes on the geocaching.com "Email A User", which determine
 if your real email address is sent, and if you're sent a copy of
 the email to your account's email box. Initially, the script is 
 set to uncheck both boxes. You can change the values of the two
 "switch_xxxxxx" fields to alter this behavior. Valid values are
 either 0 (unchecked) or 1 (checked).


Change Log:

 v1.0 - Initial release

*/

// ==UserScript==
// @name		GC Mail Paranoia
// @filename		gc_Mail_Paranoia.user.js
// @description		Changes GC Email Checkbox Values
// @namespace       	http://gmscripts.locusprime.net/
// @include         	http://www.geocaching.com/email/*
// ==/UserScript==

(function() {

	//  Set switch values. 0=Unchecked, 1=Checked
	switch_SendAddress = 0;		// Send MY Email Address
	switch_EmailCopy = 0;		// Send Me A Copy

	e_SendAddress = document.getElementById('SendMessagePanel1_chkSendAddress');
	if (e_SendAddress != null) {e_SendAddress.checked = switch_SendAddress}

	e_EmailCopy = document.getElementById('SendMessagePanel1_chkEmailCopy');
	if (e_EmailCopy != null) {e_EmailCopy.checked = switch_EmailCopy}
	
})();
