/*
TO TEST 
	have it look like this
	//document.write('<input type="hidden" id="success" name="key" value="">');
	document.write('<input type="text" id="success" name="key" value="">');
	
	in the field  you should see a number similar to 605316599 (the number may be different it is the instance id in php.
	
TO GO LIVE
	have it look like this
	document.write('<input type="hidden" id="success" name="key" value="">');
	//document.write('<input type="text" id="success" name="key" value="">');
	
	
*/

if ( !($("#success2").length > 0) ){
	document.write('<input type="hidden" id="success" name="key" value="">');
	//document.write('<input type="text" id="success" name="key" value="">');
}

$.post("key_f.php", function(data) {
	$("#success").val(data);
	
	if ($("#success2").length > 0){
	  $("#success2").val(data);
	}
});

