Your variable link would be:
<a id="colorLink" href="media/xxxxx-yyy.jpg">large pic</a>
Your toggling links would look like this:
<a href="#" onclick="designNumber='0001'; UpdateActionLink();">design1</a>
<a href="#" onclick="designNumber='0002'; UpdateActionLink();">design2</a>
<a href="#" onclick="colorNumber='001'; UpdateActionLink();">color1</a>
<a href="#" onclick="colorNumber='002'; UpdateActionLink();">color2</a>
Your javascript would look like this:
var designNumber = "";
var colorNumber = "";
function UpdateActionLink() {
$("#colorlink").attr("href", "media/" + designNumber + "-" + colorNumber + ".jpg");
}
You'll probably want to add some validation to the colorLink tags onclick event to check to make sure designNumber and colorNumber have valid values, and if not, cancel the event and give the human a messaging saying they need to choose a valid design and color. Better would probably be to make a Get Design button, have disabled to start, and in UpdateActionLink check to see if the values are valid and if so enable the Get Design button.