function hideShowPassword()
{

	var name = $('#MC_notecaPassword').attr('name'); // grab name of original
	var value = $('#MC_notecaPassword').attr('value'); // grab value of original

	if ($('#hide_show').html() == 'Hide')
	{
		var html = '<input type="password" name="'+name+'" id="'+name+'"  value="'+value+'" />';
		$('#MC_notecaPassword').after(html).remove(); // add new, then remove original input
		$('#hide_show').html('Show');
	}
	else
	{
		var html = '<input type="text" name="'+name+'" id="'+name+'"  value="'+value+'" />';
		$('#MC_notecaPassword').after(html).remove(); // add new, then remove original input
		$('#hide_show').html('Hide');
		
	}
}

function ponDominio(campo){
	var dominio = $(campo).val();
	$('#yourDomain').html('http://' + dominio + '.noteca.com');
	
	$('#yourDomain').attr ('href', 'http://' + dominio + '.noteca.com');
}

// Build the composed 'custom' value for PayPal
function buildSpecialFields()
{
	$('#custom').val ( 'S-' + $('#item_number').val() + '-' + $('#MC_notecaFirstName').val() 
			+ '-' + $('#MC_notecaLastName').val() + '-' + $('#MC_notecaEmail').val() + '-' 
			+ $('#MC_notecaCompany').val() + '-' + $('#MC_notecaPassword').val() + '-' 
			+ $('#MC_notecaSubdomain').val() + '-' + $('#MC_notecaUsername').val());
	
	if ($('#MC_notecaBetaCode').val() != '') 
	{
		value = ($('#a3').val()) * 0.65;
		$('#signup_form').append('<input type"hidden" name="a2" value="' + value + '">');
		$('#signup_form').append('<input type"hidden" name="p2" value="1">');
		$('#signup_form').append('<input type"hidden" name="t2" value="M">');
		$('#custom').val ( $('#custom').val() + '-' + $('#MC_notecaBetaCode').val() );
	}
			
	$('#return').val ( 'http://' + $('#MC_notecaSubdomain').val() + '.noteca.com/login/index');
}
