compare the values in a select box
I have two select boxes and each one contains options with number and text values such as "xxxx DDR400 xxxx" in one select box and "xxx 800 Mhz xxx" in another one. After selecting one option from each box, I want to compare the numbers in selected options to give an alert. In another way, I want to compare the values "400" and "800". Is it possible?