function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

$(document).ready(function() {

  	$('#postoption').hide();
	$('#emailoption').hide();

	$("input[name='youroption']").change(function(){
	 if ($("input[name='youroption']:checked").val() == 'by email')
			$('#emailoption').show('slow') && $('#postoption').hide('slow');
			
	if ($("input[name='youroption']:checked").val() == 'by post')
			$('#postoption').show('slow') && $('#emailoption').hide('slow');
	
	if ($("input[name='youroption']:checked").val() == ('none' || ''))
			$('#postoption').hide('slow') && $('#emailoption').hide('slow');
	});	 //end change
}); // end ready

//jquery open new window
var windowSizeArray = [ "width=200,height=200,scrollbars=yes","width=450,height=500,scrollbars=yes","width=300,height=400,scrollbars=yes", "width=500,height=400,scrollbars=yes"];
 
	$(document).ready(function(){
		$('.newWindow').click(function (event){
 
			var url = $(this).attr("href");
            var windowName = "popUp";//$(this).attr("name");
            var windowSize = windowSizeArray[ $(this).attr("rel") ];
 
            window.open(url, windowName, windowSize).focus();
 
            event.preventDefault();
	});
});
