Topic: how to get embeded tag element in the text area

Hi ,
Am saving video embeded code into db my using textarea.
Am copying video code into text area.before submitting from am doing validations.Here how to get the embeded tag width and height

mycode is

<textarea cols="40" rows="4" id="embeded_video_code" name="deal[embeded_video_code]">
<object width="408" height="476">
<param value="http://www.youtube.com/v/q0xjbHwz2hw&hl=en_US&fs=1&" name="movie"/>
<param value="true" name="allowFullScreen"/>
<param value="always" name="allowscriptaccess"/>
<embed width="408" height="476" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" src="http://www.youtube.com/v/q0xjbHwz2hw&hl=en_US&fs=1&"/>
</object></textarea>