	// sendtechemail.js
	// This script verifies that the user has selected a country for tech support before opening a new mail message
	// in the user's browser with the appropriate email address and product information.
	
	// Set a default global variable that will hold the value of the drop-down selection.
	var selectedEmail = "";
	
	function techmail(Product) {
	
		// If the global variable selectedEmail is not an empty string, perform the mailto: operation.
		if (selectedEmail != "") {	
			window.location = 'mailto:' + selectedEmail + ' - ' + Product + ' Support';		
		}
		
		// The global variable selectedEmail is set to its default value or the user selected an option from the drop-down
		// with no value, so alert the user to select a country first.
		else {
			alert('Please select a country first.');
		}
	
	}
	
	// This function is called when a country is selected from the drop-down box.
	// It sets the global var selectedEmail to the value of the current drop-down selection.
	function catchEmail(ce) {
	
	selectedEmail = ce;
	
	}	
	
