/* Fonction permettant de vider le champ input passé en paramètre */

var $test_focus;
var $focus_prev = new Array();
function focus_input(input_id){	
	$test_focus = "already" + input_id;
	if ($focus_prev[input_id] != $test_focus) {
		document.getElementById(input_id).value = '';
	}
	$focus_prev[input_id] = "already" + input_id;
}

function open_url(url){	
		window.location = url ; return false; 
}

function refreshReceivers(values) {
	var string = "";
	for (var i = 1; i < values.length ; i++) {
		string += values[i] + ';';
	}
	document.getElementById('ReceiversEmail').value = string;
}

var receiversArray = new Array() ;

function setReceivers(input_id, input_value) {
	var index = input_id.charAt(input_id.length - 1);
	receiversArray[index] = input_value;
	refreshReceivers(receiversArray);
}


$(document).ready(function(){	
	
	$(function() {
		// Use this example, or...
		$('a.lightbox').lightBox({fixedNavigation:true});
	});
	
});


