+1  A: 

You problem here is that you are calling

document.getElementById('image_Size').value

Like Lizard stated, you have 3 inputs with the same ID. document.getElementById will return the first element with the ID, because and ID is supposed to be unique.

Here is a way to get the selected value, and since you have jQuery included I will write it in jQuery for you.

var image_Size = 0;
$('[name=image_Size]').each(function() {
   if ($(this).attr('checked')) image_Size = $(this).val();
});

And a little bit of googling finds this nifty time-saver!

var image_Size = $('[name=image_Size]:checked').val();

I hope this helps! And also, you might want to set nocache differently:

nocache = new Date().getTime();

This will give you the time in ms since the Unix epoch, so it will be different everytime the user requests the page.

If you need more help with the jQuery API, I suggest you start here.

I hope this helps!

-Stephen

Stephen Delano
Thanks both.Looking back I can't believe I made such a school boy error. Guess that is what happens whenthe rush is on.Thanks both.