I have an apex 4.2 page (P110) that contains an item called P110_VESSEL_ID. It is a select list. It has a post element text of:
<a> id-"popVessels" href="#" style="color:blue">Select from ALL Vessels</a>
when I select the link Select from ALL Vessels a dynamic action is initiated call Show Vessel LIst
event: Click
selection type: jQuery Selector
jQuery Selector: #popVessels
true action: skillbuilders modal page 2
static URL: f?p&APP_ID.:114....
this all works beautifully.
A popup window (page 114) appears with a list of vessels (interative report region). This report has an item VESSEL_ID defined as  . It has a URL Link:
javascript:window.parent.$(window.parent.document).apex_model_page('close',#VESSEL_ID#);
when I click on the link for VESSEL_ID it closes the window and the value for P110_VESSEL_ID is populated with the value of #VESSEL_ID# from P114 exactly as intended.
the issue I have now, is that if P114 #VESSEL_ID# is equal to 99999 then I would like an alert to popup telling the user that selecting this vessel may violate federal rule.
any ideas? and if you could explain any javascript I would appreciate it as I am very new to it.
thanks, Karen