Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loud Beep When I Press The ENTER Key

Status
Not open for further replies.

SnapJack

Programmer
Aug 6, 2001
25
SG
Hi,

I have a page with three submit options.When I enter data and press enter to submit the page the validation(done in javascript) for the first button gets triggered.If the validation is ok then the page submits with a loud continous beep going for 3-4 seconds and if the validation fails then an alert appears.When I press ok the loud beep starts..
This does not happen when I click the submit button with my mouse.

HOW DO I SOLVE THIS PROBLEM!!!!!!!!URGENT..PLEASE HELP

LOOKING FOR A SOLUTION TO DISABLE THE BEEP IN JAVASCRIPT..

Thanx
Snap Jack

 
<!--METADATA TYPE=&quot;ASP_DEBUG_INFO&quot;
55918,212,49948
-->
<html xmlns:fo=&quot; xmlns:msxsl=&quot;urn:schemas-microsoft-com:xslt&quot; xmlns:cv=&quot;Covansys-namespace&quot;>
<head>
<META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;>
<title>WRTS - Source</title>
<META http-equiv=&quot;PRAGMA&quot; content=&quot;NO-CACHE&quot;><!--GILS META TAG SYSTEM-->
<link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;WRTS.css&quot;>
<link type=&quot;text/css&quot; rel=&quot;stylesheet&quot; href=&quot;trs-choose.css&quot;><script language=&quot;JavaScript&quot; src=&quot;scripts/historymanager.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/makeNewWindow.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/submitForm.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/cursor.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/Masks.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/rollover.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/submitbuttons.js&quot;></script><script language=&quot;JavaScript&quot; src=&quot;scripts/submitselect.js&quot;></script><script language=&quot;JavaScript&quot;>
var firstFocus = &quot;&quot;; // where to place first focus. default
// is first focusable field
var bWaiting = false; // in wait mode
var currentCursor = 'auto'; // current cursor to be displayed

aTabs = new Array(); // array to hold current tabs

function okd()
{
switch (event.keyCode)
{
case 120: // f9
{
document.main.reset();
break;
}
default:
}
}

window.document.attachEvent(&quot;onkeydown&quot;, okd)
</script><script language=&quot;JavaScript&quot; src=&quot;scripts/noTabFunctions.js&quot;></script><script language=&quot;JavaScript&quot;>

function EnableDisable(submitform,btnType)
{
if (btnType==&quot;surface&quot; || btnType==&quot;surface1&quot;)
{
submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/res_source_nm&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).disabled=true;
submitform(&quot;/xml/row/xsourcetype&quot;).value=&quot;surface&quot;;
var test = window.opener.document.forms[0];
test (&quot;/xml/wrdocument/row/sourcetypesel&quot;).value=&quot;surface&quot;;
}
else if (btnType==&quot;ground&quot;)
{
submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).disabled=false;
submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).disabled=false;
submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).disabled=false;

submitform(&quot;/xml/row/res_source_nm&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).value=&quot;&quot;;
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value=&quot;&quot;;
submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).disabled=true;

submitform(&quot;/xml/row/surf_source_nm&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/tributary_source_nm&quot;).value=&quot;&quot;

submitform(&quot;/xml/row/xsourcetype&quot;).value=&quot;ground&quot;;
var test = window.opener.document.forms[0];
test (&quot;/xml/wrdocument/row/sourcetypesel&quot;).value=&quot;ground&quot;;

}

else if (btnType==&quot;reservoir&quot;)
{

submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).disabled=false;
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).disabled=false;
submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).value=&quot;&quot;;
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value=&quot;&quot;;

submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).disabled=true;
submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).disabled=true;


submitform(&quot;/xml/row/surf_source_nm&quot;).value=&quot;&quot;
submitform(&quot;/xml/row/tributary_source_nm&quot;).value=&quot;&quot;

submitform(&quot;/xml/row/xsourcetype&quot;).value=&quot;reservoir&quot;;
var test = window.opener.document.forms[0];
test (&quot;/xml/wrdocument/row/sourcetypesel&quot;).value=&quot;reservoir&quot;;


}

if (btnType == &quot;surface1&quot;)
{
return true;
}
else
{
return false;
}

}

function trim(strInputString)
{
var strCharVal = strInputString.substring(0, 1);
while (strCharVal == &quot; &quot;)
{
strInputString = strInputString.substring(1, strInputString.length);
strCharVal = strInputString.substring(0, 1);
}
strCharVal = strInputString.substring(strInputString.length-1, strInputString.length);
while (strCharVal == &quot; &quot;) {
strInputString = strInputString.substring(0, strInputString.length-1);
strCharVal = strInputString.substring(strInputString.length-1, strInputString.length);
}
return strInputString;
}

function validate(submitform,mode)
{
var wria;
var county;
var sourcetypenm;
var twp;
var rge;
var intTwp;
var intrge;
var strrge1;
var strrge2;
var strTwp1;
var strTwp2;
var sec;
var ne=&quot;NE&quot;
var ne1=&quot;ne&quot;;
var nw=&quot;NW&quot;;
var nw1=&quot;nw&quot;
var sd =&quot;SE&quot;;
var sd1=&quot;se&quot;
var sw =&quot;SW&quot;;
var sw1=&quot;sw&quot;
var lat =&quot;&quot;;
var long =&quot;&quot;;
var gndtype=&quot;&quot;;
var WEST_CAP=&quot;W&quot;;
var WEST_SM=&quot;w&quot;;
var EAST_CAP=&quot;E&quot;;
var EAST_SM=&quot;e&quot;;
var strLastChar;
var intDecimalValue;

wria= submitform(&quot;/xml/row/wr_doc_source_wria_id&quot;)[submitform(&quot;/xml/row/wr_doc_source_wria_id&quot;).selectedIndex].text;
submitform(&quot;/xml/row/wria_cd&quot;).value=wria;

county = submitform(&quot;/xml/row/wr_doc_source_county_id&quot;)[submitform(&quot;/xml/row/wr_doc_source_county_id&quot;).selectedIndex].text;
submitform(&quot;/xml/row/county_nm&quot;).value=county;

if (submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).disabled == false )
{
gndtype= submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;)[submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).selectedIndex].text;
submitform(&quot;/xml/row/groundtypenm&quot;).value=gndtype;
}


try
{
if ( trim(submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).value) == &quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).value) == &quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).value) == &quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_wria_id&quot;).value) == &quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_county_id&quot;).value) == &quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_other_survey_ds&quot;).value) == &quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_county_id&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_wria_id&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_township_nr&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_section_nr&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_lat_lon_source_type_id&quot;).value) ==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_lat_lon_datum_id&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_dd_latitude_qt&quot;).value) ==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_dd_longitude_qt&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_parcel_nr&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_plat_ds&quot;).value) ==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_other_survey_ds&quot;).value )==&quot;&quot; &&
trim(submitform(&quot;/xml/row/surf_source_nm&quot;).value) ==&quot;&quot; &&
trim(submitform(&quot;/xml/row/tributary_source_nm&quot;).value)==&quot;&quot; &&
trim(submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).value)==&quot;&quot; )
{
alert(&quot;No Data Entered.Use Back control to return to the At A Glance Tab.&quot;);
return false;
}
}
catch(obl)
{

}
if ( (trim(submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).value) == &quot;&quot; &&
submitform(&quot;/xml/row/wr_doc_source_type_id_ground&quot;).disabled == false )||
trim(submitform(&quot;/xml/row/wr_doc_source_wria_id&quot;).value) == &quot;&quot; ||
trim(submitform(&quot;/xml/row/wr_doc_source_county_id&quot;).value) == &quot;&quot; )
{
alert(&quot;Data for a Required Field(s) is Missing. Please enter values for the same.&quot;);
return false;
}



if (
(trim(submitform(&quot;/xml/row/wr_doc_source_trs_township_nr&quot;).value) == &quot;&quot; ) ||
(trim(submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value) == &quot;&quot; ) ||
(trim(submitform(&quot;/xml/row/wr_doc_source_trs_section_nr&quot;).value)==&quot;&quot; ))

{
alert(&quot;Incomplete Source TRS information. Complete Source TRS information is required to record a WR.&quot;);
return false;
}

twp = trim(submitform(&quot;/xml/row/wr_doc_source_trs_township_nr&quot;).value);
intTwp = parseInt(twp,10);
if(intTwp < 1 || intTwp > 41)
{
alert(&quot;Please enter Value between '1.X' and '41.X' only where 'X' is either ' 0 'or '5'&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_township_nr&quot;).select();
return false;
}
else
{
strTwp1 = intTwp + &quot;.0&quot;;
strTwp2 = intTwp + &quot;.5&quot;;
if((parseFloat(twp) != strTwp1) && (parseFloat(twp) != strTwp2))
{
alert(&quot;Please enter Value between '1.X' and '41.X' only where 'X' is either ' 0 'or '5' &quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_township_nr&quot;).select();
return false;
}
else
{
if(parseFloat(twp).toString() == intTwp.toString())
twp = parseFloat(twp)+&quot;.0&quot;;
submitform(&quot;/xml/row/wr_doc_source_trs_township_nr&quot;).value = twp +&quot;N&quot;;
}
}


var WEST_CAP=&quot;W&quot;;
var WEST_SM=&quot;w&quot;;
var EAST_CAP=&quot;E&quot;;
var EAST_SM=&quot;e&quot;;
rge = trim(submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value);
strLastChar = rge.charAt(rge.length-1);

if( (isInteger(rge)== false) && (rge.length==1))
{
alert(&quot;Please enter Value between '1.X' and '47.X' only where 'X' is either ' 0 'or '5&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).select();
return false;
}


intrge = parseInt(rge,10);
if(intrge < 1 || intrge > 47 )
{
alert(&quot;Please enter Value between '1.X' and '47.X' only where 'X' is either ' 0 'or '5'&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).select();
return false;
}
else if ((strLastChar != WEST_CAP)&&(strLastChar != WEST_SM)&&(strLastChar != EAST_CAP)&&(strLastChar != EAST_SM))
{
if(intrge > 0 && intrge < 20)
{
alert(&quot;Please Append ' W' or' E' with the entered value&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).select();
return false;
}
else
{
alert(&quot;Please Append either ' E' with the entered value&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).select();
return false;
}
}
else if ((strLastChar == WEST_CAP)||(strLastChar == WEST_SM)||(strLastChar == EAST_CAP)||(strLastChar == EAST_SM))
{
if((intrge > 20 && intrge < 47)&&((strLastChar != EAST_CAP)&&(strLastChar != EAST_SM))||((strLastChar == WEST_CAP)&&(strLastChar== WEST_SM)))
{

alert(&quot;Please Append 'E' with the entered value&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).select();
return false;
}




var strUpCase = strLastChar.toUpperCase();
var strLowCase = strLastChar.toLowerCase();

strrge1 = intrge + &quot;.0&quot; + strUpCase;
strrge2 = intrge + &quot;.5&quot; + strUpCase;
strrge3 = intrge + &quot;.0&quot; + strLowCase;
strrge4 = intrge + &quot;.5&quot; + strLowCase;
if (rge.indexOf(&quot;.&quot;)==-1)
{
rge = intrge + &quot;.0&quot; + strLastChar
}
if((rge != strrge1) && (rge != strrge2)&& (rge != strrge3)&& (rge != strrge4))
{
strrge1 = &quot;0&quot; + strrge1;
strrge2 = &quot;0&quot; + strrge2;
strrge3 = &quot;0&quot; + strrge3;
strrge4 = &quot;0&quot; + strrge4;
if((rge != strrge1) && (rge != strrge2)&& (rge != strrge3)&& (rge != strrge4))
{
alert(&quot;Please enter Value between '1.X' and '47.X' only where 'X' is either ' 0 'or '5' &quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).select();
return false;
}
else
{
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value = rge;
}
}
else
{

submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value = rge;
}
}

sec = trim(submitform(&quot;/xml/row/wr_doc_source_trs_section_nr&quot;).value);
if(isInteger(sec))
{
if(parseInt(sec,10) < 1)
{
alert(&quot;Range between 1-77or 96&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_section_nr&quot;).select();
return false;
}
else if(parseInt(sec,10) > 77)
{
if(parseInt(sec,10) != 96)
{
alert(&quot;Range between 1-77or 96 &quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_section_nr&quot;).select();
return false;
}
}
}
else
{
alert(&quot;Range between 1-77or 96&quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_section_nr&quot;).select();
return false;
}
var qtr1 = trim(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value);
var qtr2 = trim(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value);
if (qtr1 != &quot;&quot;)
{
if(qtr1 != ne && qtr1 != nw && qtr1 != sd && qtr1 != sw&&qtr1 != ne1 &&qtr1 != nw1 &&qtr1 != sd1 &&qtr1 != sw1)
{
alert(&quot;Enter any one of these ne,se,sw,nw &quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).select();
return false;
}
}
if (qtr2 != &quot;&quot;)
{
if(qtr2 != ne && qtr2 != nw &&qtr2 != sd && qtr2 != sw && qtr2 != ne1 && qtr2 != nw1 && qtr2 != sd1 &&qtr2 != sw1)
{
alert(&quot;Enter any one of these ne,se,sw,nw &quot;);
submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).select();
return false;
}
}


lat =submitform(&quot;/xml/row/wr_doc_source_dd_latitude_qt&quot;).value;
if (!IsValidDecimal(lat,3,9))
{
submitform(&quot;/xml/row/wr_doc_source_dd_latitude_qt&quot;).select();
alert(&quot;Enter Values in Format is 999.999999999&quot;);
return false;
}

long =submitform(&quot;/xml/row/wr_doc_source_dd_longitude_qt&quot;).value;
if(!IsValidDecimal(long,3,9))
{
submitform(&quot;/xml/row/wr_doc_source_dd_longitude_qt&quot;).select();
alert(&quot;Enter Values in Format is 999.999999999&quot;);
return false;
}
if(trim(submitform(&quot;/xml/row/wr_doc_source_parcel_nr&quot;).value).length > 10)
{
alert(&quot;Parcel Number can be of maximum length 10 characters&quot;);
submitform(&quot;/xml/row/wr_doc_source_parcel_nr&quot;).select();
return false;
}
if(trim(submitform(&quot;/xml/row/wr_doc_source_plat_ds&quot;).value).length > 60)
{
alert(&quot;Plat Description can be of maximum length 60 characters &quot;);
submitform(&quot;/xml/row/wr_doc_source_plat_ds&quot;).select();
return false;
}
if(trim(submitform(&quot;/xml/row/wr_doc_source_other_survey_ds&quot;).value).length > 70)
{
alert(&quot;Other Survey can be of maximum length 70 charcters &quot;);
submitform(&quot;/xml/row/wr_doc_source_other_survey_ds&quot;).select();
return false;
}
if(trim(submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).value).length > 50)
{
alert(&quot;Groundwater Name can be of maximum length 50 characters&quot;);
submitform(&quot;/xml/row/wr_doc_source_nm_ground&quot;).select();
return false;
}
if(trim(submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).value).length > 7)
{
alert(&quot;Well Tag Number can be of maximum length 7 characters&quot;);
submitform(&quot;/xml/row/wr_doc_source_well_tag_nr&quot;).select();
return false;
}
if(trim(submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).value).length > 50)
{
alert(&quot;Reservoir Name can be of maximum length 50 characters&quot;);
submitform(&quot;/xml/row/wr_doc_source_nm_reservoir&quot;).select();
return false;
}

if (isNaN(submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value))
{
alert(&quot;Storage Acre must be a Positive Number&quot;);
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).select();
return false;
}
else
{
if (trim(submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value) < 0 )
{
alert(&quot;Storage Acre must be a Positive Number&quot;);
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).select();
return false;

}
if(stripChar(trim(submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).value)).length > 8)
{
alert(&quot;Storage Acre can be of maximum length 8 digits&quot;);
submitform(&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot;).select();
return false;
}
}

ChangeCase(submitform);
var xtype;
xtype=submitform(&quot;/xml/row/xsourcetype&quot;).value;
if(mode == &quot;addanother&quot;)
document.forms(0).action = &quot;wrtspopup.asp?xstack=2&xadd=yes&xmethod=&quot; + xtype
else
document.forms(0).action = &quot;wrtspopup.asp?xstack=2&xmethod=&quot; + xtype
document.forms(0).submit;
return true;
}

function ChangeCase(submitform)
{
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value,'n','N')
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value,'w','W')
submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_range_nr&quot;).value,'e','E')

submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value,'ne','NE')
submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value,'nw','NW')
submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value,'se','SE')
submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_q_cd&quot;).value,'sw','SW')

submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value,'ne','NE')
submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value,'nw','NW')
submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value,'se','SE')
submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value = replace(submitform(&quot;/xml/row/wr_doc_source_trs_qq_cd&quot;).value,'sw','SW')

}


function replace(string,text,by)
{
// Replaces text with by in string
var strLength = string.length, txtLength = text.length;
if ((strLength == 0) || (txtLength == 0)) return string;

var i = string.indexOf(text);
if ((!i) && (text != string.substring(0,txtLength))) return string;
if (i == -1) return string;

var newstr = string.substring(0,i) + by;

if (i+txtLength < strLength)
newstr += replace(string.substring(i+txtLength,strLength),text,by);

return newstr;
}

function stripChar(val)
{
var strRetVal =&quot;&quot;;
for (i = 0; i < val.length; i++)
{
var c = val.charAt(i);
if(c !=&quot;,&quot;)
strRetVal += c;
}
return strRetVal;
}
function isInteger(intValue)
{
var i;
for (i = 0; i < intValue.length; i++)
{
// Check that current character is number.
var c = intValue.charAt(i);
if (((c < &quot;0&quot;) || (c > &quot;9&quot;))) return false;
}
// All characters are numbers.
return true;
}

function IsValidDecimal(value,intLeft,intRight)
{
var leftlen =0;
var blnDecimalPoint = false;
for (i = 0; i < value.length; i++)
{
// Check that current character is number.
var c = value.charAt(i);
if (((c < &quot;0&quot;) || (c > &quot;9&quot;)))
{
if(c == &quot;.&quot;)
{
if(i > intLeft)
return false;
blnDecimalPoint = true;
}
else
{
return false;
}
}
if(blnDecimalPoint)
{
leftlen += 1;
}
}
if(leftlen == 0)
{
return (value.length <= intLeft);
}
else
{
if((leftlen-1) > intRight)
{
return false;
}
}
return true;
}


function checkForm(submitform)
{

var i;
var hasChanged = false;
var formObj = document.all('main');
var elemObj;
var elemType
for (i = 0; i < formObj.all.length; i++)
{
elemObj = formObj.all;

if (elemObj.tagName == 'INPUT')
{
elemType = elemObj.type;
if (elemType == 'file' || elemType == 'password' || elemType == 'text' || elemType == 'checkbox')
if (elemObj.defaultValue != elemObj.value)
{
hasChanged = true;
break;
}

if (elemObj.tagName == 'TEXTAREA')
if (elemObj.defaultValue != elemObj.value)
{
hasChanged = true;
break;
}
}

if (elemObj.tagName == 'SELECT')

{


if (elemObj.name == &quot;/xml/row/wr_doc_source_type_id_ground&quot;)
if (elemObj.selectedIndex != submitform(&quot;/xml/row/groundwater_ty_id&quot;).value)
{
hasChanged = true;
break;
}
if (elemObj.name == &quot;/xml/row/wr_doc_source_county_id&quot;)
if (elemObj.selectedIndex != submitform(&quot;/xml/row/county_id&quot;).value)
{
hasChanged = true;
break;
}

if (elemObj.name == &quot;/xml/row/wr_doc_source_wria_id&quot;)
if (elemObj.selectedIndex != submitform(&quot;/xml/row/wria_id&quot;).value)
{
hasChanged = true;
break;
}
if (elemObj.name == &quot;/xml/row/wr_doc_source_lat_lon_source_type_id&quot;)
if (elemObj.selectedIndex != submitform(&quot;/xml/row/lon_source_type_id&quot;).value)
{
hasChanged = true;
break;
}

if (elemObj.name == &quot;/xml/row/wr_doc_source_lat_lon_datum_id&quot;)
if (elemObj.selectedIndex != submitform(&quot;/xml/row/lon_datum_id&quot;).value)
{
hasChanged = true;
break;
}

}

}
if (hasChanged == true)
{
if (confirm(' Data has been added or changed. Do you want to discard changes and exit?') )
{
window.opener.document.forms(0).hdnDataChanged.value =&quot;&quot;;
return true;
}
else
{
return false;
}
}
else
{
try
{
if(window.opener.document.forms(0).hdnDataChanged.value !=&quot;&quot;)
{
if (confirm(' Data has been added or changed. Do you want to discard changes and exit?') )
{
window.opener.document.forms(0).hdnDataChanged.value =&quot;&quot;;
return true;
}
else
{
return false;
}
}
}
catch(e)
{
return true;
}

}
return true;


}

</script></head>
<body class=&quot;WRTS&quot;>
<form method=&quot;post&quot; name=&quot;main&quot; onSubmit=&quot;return doSubmitForm(this);&quot; action=&quot;WRTSpopup.asp?xstack=2&quot;>
<table class=&quot;NoBorders&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;></td>
<td class=&quot;title&quot; colspan=&quot;2&quot;>Source</td>
</tr>
<tr>
<td></td>
<td width=&quot;100%&quot; colspan=&quot;2&quot;>
<table class=&quot;NoBorders&quot; width=&quot;100%&quot;>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<td colspan=&quot;2&quot;><a href=&quot;#&quot; onclick=&quot;javascript:return EnableDisable(document.forms[0],'surface');makeNewWindow('WRTSMain.asp?xstack=2&xnavigate=push&xwhich=Surface&xaction=popupedit&xpath=/xml/row&xpage=16SurfaceSourceName', 'height=400, width=500, , ');&quot; ><img src=&quot;images/btnSurface.gif&quot; border=&quot;0&quot; alt=&quot;Toggle control to enable data entry of Surface source information, and to reset-clear-disable Groundwater and Reservoir screen sections&quot;></a> 
</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td colspan=&quot;2&quot;><a href=&quot;#&quot; onclick=&quot;javascript:;makeNewWindow('WRTSMain.asp?xstack=2&xnavigate=push&xwhich=sourcename&xaction=popupedit&xpath=/xml/row&xpage=16SurfaceSourceName', 'height=400, width=500, , ');&quot; ><img src=&quot;images/btnsourcename.gif&quot; border=&quot;0&quot; alt=&quot;A lookup table entry containing surface water names&quot;></a> 
</td>
<td colspan=&quot;2&quot;><a href=&quot;#&quot; onclick=&quot;javascript:;makeNewWindow('WRTSMain.asp?xstack=2&xnavigate=push&xwhich=tribut&xaction=popupedit&xpath=/xml/row&xpage=16TributaryTo', 'height=400, width=500, , ');&quot; ><img src=&quot;images/btntribut.gif&quot; border=&quot;0&quot; alt=&quot;A lookup table entry containing surface water names&quot;></a> 
</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td class=&quot;caption&quot; title=&quot;&quot; align=&quot;right&quot;></td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;20&quot; id=&quot;/xml/row/surf_source_nm&quot; name=&quot;/xml/row/surf_source_nm&quot; value=&quot;&quot; style=&quot;BORDER-LEFT: white 5px ;BORDER-TOP: white 5px ;BORDER-BOTTOM: white 5px ;BORDER-RIGHT: white 5px ;background-color : white &quot; readonly=&quot;true&quot;></td>
<td class=&quot;caption&quot; title=&quot;&quot; align=&quot;right&quot;></td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;20&quot; id=&quot;/xml/row/tributary_source_nm&quot; name=&quot;/xml/row/tributary_source_nm&quot; value=&quot;&quot; style=&quot;BORDER-LEFT: white 5px ;BORDER-TOP: white 5px ;BORDER-BOTTOM: white 5px ;BORDER-RIGHT: white 5px ;background-color : white &quot; readonly=&quot;true&quot;></td>
</tr>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<td colspan=&quot;2&quot;><a href=&quot;#&quot; onclick=&quot;javascript:return EnableDisable(document.forms[0],'ground');makeNewWindow('WRTSMain.asp?xstack=2&xnavigate=push&xwhich=groundwater&xaction=popupedit&xpath=/xml/row&xpage=', 'height=, width=, , ');&quot; ><img src=&quot;images/btngroundwater.gif&quot; border=&quot;0&quot; alt=&quot;Toggle control to enable data entry of Groundwater source information, and to reset-clear-disable Surface and Reservoir screen sections&quot;></a> 
</td>
</tr>
<tr>
<td class=&quot;caption&quot; title=&quot;A lookup table entry containing a kind of source within a Source Class (e.g., Infiltration Trench, Well, etc.)&quot; align=&quot;right&quot;><img src=&quot;images/required.gif&quot; alt=&quot;Required&quot; height=&quot;12&quot; width=&quot;12&quot; border=&quot;0&quot; align=&quot;middle&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;>Type</td>
<td class=&quot;data&quot;><select id=&quot;/xml/row/wr_doc_source_type_id_ground&quot; name=&quot;/xml/row/wr_doc_source_type_id_ground&quot; onkeypress=&quot;SubmitSelect()&quot; size=&quot;1&quot;><option value=&quot;&quot;>-- Select a value --</option>
<option value=&quot;4&quot;>Groundwater Reservoir</option>
<option value=&quot;1&quot;>Infiltration Trench</option>
<option value=&quot;2&quot;>Surface (other)</option>
<option value=&quot;3&quot;>Well</option></select></td>
<td class=&quot;caption&quot; title=&quot;The name of the Groundwater source. Free format text field: 50 characters&quot; align=&quot;right&quot;>Groundwater Name</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;50&quot; id=&quot;/xml/row/wr_doc_source_nm_ground&quot; name=&quot;/xml/row/wr_doc_source_nm_ground&quot; value=&quot;&quot; ></td>
<td class=&quot;caption&quot; title=&quot;The ECY-assigned unique ID number for a well. Free format text field: 7 characters&quot; align=&quot;right&quot;>Well Tag</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;7&quot; id=&quot;/xml/row/wr_doc_source_well_tag_nr&quot; name=&quot;/xml/row/wr_doc_source_well_tag_nr&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
</tr>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<td colspan=&quot;2&quot;><a href=&quot;#&quot; onclick=&quot;javascript:return EnableDisable(document.forms[0],'reservoir');makeNewWindow('WRTSMain.asp?xstack=2&xnavigate=push&xwhich=resvoir&xaction=popupedit&xpath=/xml/row&xpage=', 'height=, width=, , ');&quot; ><img src=&quot;images/btnresvoir.gif&quot; border=&quot;0&quot; alt=&quot;Toggle control to enable data entry of Reservoir source information, and to reset-clear-disable Surface and Groundwater screen sections&quot;></a> 
</td>
</tr>
<tr>
<td></td>
<td></td>
<td colspan=&quot;2&quot;><a href=&quot;#&quot; onclick=&quot;javascript:;makeNewWindow('WRTSMain.asp?xstack=2&xnavigate=push&xwhich=sourcename&xaction=popupedit&xpath=/xml/row&xpage=16ReservoirSourceName', 'height=400, width=500, , ');&quot; ><img src=&quot;images/btnsourcename.gif&quot; border=&quot;0&quot; alt=&quot;A lookup table entry containing surface water system names&quot;></a> 
</td>
</tr>
<tr>
<td class=&quot;caption&quot; title=&quot;The name of the reservoir. Free format text field&quot; align=&quot;left&quot;>Reservoir Name</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;50&quot; id=&quot;/xml/row/wr_doc_source_nm_reservoir&quot; name=&quot;/xml/row/wr_doc_source_nm_reservoir&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;&quot; align=&quot;right&quot;></td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;20&quot; id=&quot;/xml/row/res_source_nm&quot; name=&quot;/xml/row/res_source_nm&quot; value=&quot;&quot; style=&quot;BORDER-LEFT: white 5px ;BORDER-TOP: white 5px ;BORDER-BOTTOM: white 5px ;BORDER-RIGHT: white 5px ;background-color : white &quot; readonly=&quot;true&quot;></td>
<td class=&quot;caption&quot; title=&quot;Field format: Numeric 8 significant digits&quot; align=&quot;right&quot;>Storage Acre FT</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;8&quot; id=&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot; name=&quot;/xml/row/wr_doc_source_storage_acre_ft_qt&quot; value=&quot;&quot; ></td>
</tr>
</table>
<table width=&quot;100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;>
<tr>
<td align=&quot;left&quot;><br></td>
</tr>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<tr>
<td class=&quot;caption&quot; title=&quot;&quot; align=&quot;left&quot;><u>TRS:</u></td>
<td></td>
<td></td>
<td></td>
</tr>
<td class=&quot;caption&quot; title=&quot;Per the Public Land Survey system, the Township number (north - south, note; all Townships in WA are North of the Willamette Baseline. Field format valid range: 1.X or 41.X where X can be 0 (full Twp) or 5 (half Twp); Note: N for North auto-appended to entered value (e.g. 23.5N)&quot; align=&quot;right&quot;><img src=&quot;images/required.gif&quot; alt=&quot;Required&quot; height=&quot;12&quot; width=&quot;12&quot; border=&quot;0&quot; align=&quot;middle&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;>Twp</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;3&quot; id=&quot;/xml/row/wr_doc_source_trs_township_nr&quot; name=&quot;/xml/row/wr_doc_source_trs_township_nr&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;Per the Public Land Survey system, the Range number (east - west, note; most Ranges in WA are East of the Willamette meridian. Field format valid range: 1.X - 47.X E or 1.X or 20.XW where X can be 0 (full Twp) or 5 (half Twp); note E for East, W for West must be specified (e.g. 45.0E)&quot; align=&quot;right&quot;><img src=&quot;images/required.gif&quot; alt=&quot;Required&quot; height=&quot;12&quot; width=&quot;12&quot; border=&quot;0&quot; align=&quot;middle&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;>Rge</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;3&quot; id=&quot;/xml/row/wr_doc_source_trs_range_nr&quot; name=&quot;/xml/row/wr_doc_source_trs_range_nr&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;Per the Public Land Survey system, the section number (e.g., 23). Field format: Sec field: valid entries 1-77, 96&quot; align=&quot;right&quot;><img src=&quot;images/required.gif&quot; alt=&quot;Required&quot; height=&quot;12&quot; width=&quot;12&quot; border=&quot;0&quot; align=&quot;middle&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;>Sec</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;2&quot; id=&quot;/xml/row/wr_doc_source_trs_section_nr&quot; name=&quot;/xml/row/wr_doc_source_trs_section_nr&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;Per the Public Land Survey system, a quarter designator within a section, (e.g., SE).
Field format valid range: NE, NW, SW, SE&quot; align=&quot;right&quot;>1/4</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;2&quot; id=&quot;/xml/row/wr_doc_source_trs_q_cd&quot; name=&quot;/xml/row/wr_doc_source_trs_q_cd&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;Per the Public Land Survey system, a quarter designator within a section quarter (e.g., NW [of SE]).
Field format valid range: NE, NW, SW, SE&quot; align=&quot;right&quot;>1/4</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;2&quot; id=&quot;/xml/row/wr_doc_source_trs_qq_cd&quot; name=&quot;/xml/row/wr_doc_source_trs_qq_cd&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
</tr>
</table>
<table width=&quot;100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;>
<tr>
<td align=&quot;left&quot;><br></td>
</tr>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<tr>
<td class=&quot;caption&quot; title=&quot;&quot; align=&quot;left&quot;><u>Alternate Location:</u></td>
<td></td>
<td></td>
<td></td>
</tr>
<td class=&quot;caption&quot; title=&quot;A lookup table entry containing Water Resource Inventory Areas (e.g., 01 - Nooksack)&quot; align=&quot;right&quot;><img src=&quot;images/required.gif&quot; alt=&quot;Required&quot; height=&quot;12&quot; width=&quot;12&quot; border=&quot;0&quot; align=&quot;middle&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;>WRIA</td>
<td class=&quot;data&quot;><select id=&quot;/xml/row/wr_doc_source_wria_id&quot; name=&quot;/xml/row/wr_doc_source_wria_id&quot; onkeypress=&quot;SubmitSelect()&quot; size=&quot;1&quot;><option value=&quot;&quot;>-- Select a value --</option>
<option value=&quot;1&quot;>1</option>
<option value=&quot;2&quot;>2</option>
<option value=&quot;3&quot;>3</option>
<option value=&quot;4&quot;>4</option>
<option value=&quot;5&quot;>5</option>
<option value=&quot;6&quot;>6</option>
<option value=&quot;7&quot;>7</option>
<option value=&quot;8&quot;>8</option>
<option value=&quot;9&quot;>9</option>
<option value=&quot;10&quot;>10</option>
<option value=&quot;11&quot;>11</option>
<option value=&quot;12&quot;>12</option>
<option value=&quot;13&quot;>13</option>
<option value=&quot;14&quot;>14</option>
<option value=&quot;15&quot;>15</option>
<option value=&quot;16&quot;>16</option>
<option value=&quot;17&quot;>17</option>
<option value=&quot;18&quot;>18</option>
<option value=&quot;19&quot;>19</option>
<option value=&quot;20&quot;>20</option>
<option value=&quot;21&quot;>21</option>
<option value=&quot;22&quot;>22</option>
<option value=&quot;23&quot;>23</option>
<option value=&quot;24&quot;>24</option>
<option value=&quot;25&quot;>25</option>
<option value=&quot;26&quot;>26</option>
<option value=&quot;27&quot;>27</option>
<option value=&quot;28&quot;>28</option>
<option value=&quot;29&quot;>29</option>
<option value=&quot;30&quot;>30</option>
<option value=&quot;31&quot;>31</option>
<option value=&quot;32&quot;>32</option>
<option value=&quot;33&quot;>33</option>
<option value=&quot;34&quot;>34</option>
<option value=&quot;35&quot;>35</option>
<option value=&quot;36&quot;>36</option>
<option value=&quot;37&quot;>37</option>
<option value=&quot;38&quot;>38</option>
<option value=&quot;39&quot;>39</option>
<option value=&quot;40&quot;>40</option>
<option value=&quot;41&quot;>41</option>
<option value=&quot;42&quot;>42</option>
<option value=&quot;43&quot;>43</option>
<option value=&quot;44&quot;>44</option>
<option value=&quot;45&quot;>45</option>
<option value=&quot;46&quot;>46</option>
<option value=&quot;47&quot;>47</option>
<option value=&quot;48&quot;>48</option>
<option value=&quot;49&quot;>49</option>
<option value=&quot;50&quot;>50</option>
<option value=&quot;51&quot;>51</option>
<option value=&quot;52&quot;>52</option>
<option value=&quot;53&quot;>53</option>
<option value=&quot;54&quot;>54</option>
<option value=&quot;55&quot;>55</option>
<option value=&quot;56&quot;>56</option>
<option value=&quot;57&quot;>57</option>
<option value=&quot;58&quot;>58</option>
<option value=&quot;59&quot;>59</option>
<option value=&quot;60&quot;>60</option>
<option value=&quot;61&quot;>61</option>
<option value=&quot;62&quot;>62</option></select></td>
<td class=&quot;caption&quot; title=&quot;A lookup table entry containing Washington Counties (e.g., Skagit, Spokane)&quot; align=&quot;right&quot;><img src=&quot;images/required.gif&quot; alt=&quot;Required&quot; height=&quot;12&quot; width=&quot;12&quot; border=&quot;0&quot; align=&quot;middle&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;5&quot;>County</td>
<td class=&quot;data&quot;><select id=&quot;/xml/row/wr_doc_source_county_id&quot; name=&quot;/xml/row/wr_doc_source_county_id&quot; onkeypress=&quot;SubmitSelect()&quot; size=&quot;1&quot;><option value=&quot;&quot;>-- Select a value --</option>
<option value=&quot;1&quot;>ADAMS</option>
<option value=&quot;2&quot;>ASOTIN</option>
<option value=&quot;3&quot;>BENTON</option>
<option value=&quot;4&quot;>CHELAN</option>
<option value=&quot;5&quot;>CLALLAM</option>
<option value=&quot;6&quot;>CLARK</option>
<option value=&quot;7&quot;>COLUMBIA</option>
<option value=&quot;8&quot;>COWLITZ</option>
<option value=&quot;9&quot;>DOUGLAS</option>
<option value=&quot;10&quot;>FERRY</option>
<option value=&quot;11&quot;>FRANKLIN</option>
<option value=&quot;12&quot;>GARFIELD</option>
<option value=&quot;13&quot;>GRANT</option>
<option value=&quot;14&quot;>GRAYS HARBOR</option>
<option value=&quot;15&quot;>ISLAND</option>
<option value=&quot;16&quot;>JEFFERSON</option>
<option value=&quot;17&quot;>KING</option>
<option value=&quot;18&quot;>KITSAP</option>
<option value=&quot;19&quot;>KITTITAS</option>
<option value=&quot;20&quot;>KLICKITAT</option>
<option value=&quot;21&quot;>LEWIS</option>
<option value=&quot;22&quot;>LINCOLN</option>
<option value=&quot;23&quot;>MASON</option>
<option value=&quot;24&quot;>OKANOGAN</option>
<option value=&quot;25&quot;>PACIFIC</option>
<option value=&quot;26&quot;>PEND OREILLE</option>
<option value=&quot;27&quot;>PIERCE</option>
<option value=&quot;28&quot;>SAN JUAN</option>
<option value=&quot;29&quot;>SKAGIT</option>
<option value=&quot;30&quot;>SKAMANIA</option>
<option value=&quot;31&quot;>SNOHOMISH</option>
<option value=&quot;32&quot;>SPOKANE</option>
<option value=&quot;33&quot;>STEVENS</option>
<option value=&quot;34&quot;>THURSTON</option>
<option value=&quot;35&quot;>WAHKIAKUM</option>
<option value=&quot;36&quot;>WALLA WALLA</option>
<option value=&quot;37&quot;>WHATCOM</option>
<option value=&quot;38&quot;>WHITMAN</option>
<option value=&quot;39&quot;>YAKIMA</option></select></td>
<td class=&quot;caption&quot; title=&quot;The county-issued parcel number for the property parcel. Field format: 10 alpha-numeric&quot; align=&quot;right&quot;>Parcel #</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;10&quot; id=&quot;/xml/row/wr_doc_source_parcel_nr&quot; name=&quot;/xml/row/wr_doc_source_parcel_nr&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;A description of the Plat, typically including the Lot #, Block #, and name of the Subdivision, or Addition. Field format: 60 alpha-numeric&quot; align=&quot;right&quot;>Plat Description</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;60&quot; id=&quot;/xml/row/wr_doc_source_plat_ds&quot; name=&quot;/xml/row/wr_doc_source_plat_ds&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td class=&quot;caption&quot; title=&quot;The name of the survey when a method other than PLS is used to locate the source (e.g., Government Lot 5)&quot; align=&quot;right&quot;>Other Survey</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;70&quot; id=&quot;/xml/row/wr_doc_source_other_survey_ds&quot; name=&quot;/xml/row/wr_doc_source_other_survey_ds&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
</tr>
</table>
<table width=&quot;100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;>
<tr>
<td align=&quot;left&quot;><br></td>
</tr>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<tr>
<td class=&quot;caption&quot; title=&quot;&quot; align=&quot;left&quot;><u>GIS:</u></td>
<td></td>
<td></td>
<td></td>
</tr>
<td class=&quot;caption&quot; title=&quot;The latitude of the source in decimal degrees. Field Format: Numeric 3 significant digits to the left of the decimal point, 9 to the right&quot; align=&quot;right&quot;>DD Lat</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;13&quot; id=&quot;/xml/row/wr_doc_source_dd_latitude_qt&quot; name=&quot;/xml/row/wr_doc_source_dd_latitude_qt&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;The longitude of the source in decimal degrees.
Field Format: Numeric 3 significant digits to the left of the decimal point, 9 to the right&quot; align=&quot;right&quot;>DD Lon</td>
<td class=&quot;data&quot;><input type=&quot;text&quot; size=&quot;13&quot; id=&quot;/xml/row/wr_doc_source_dd_longitude_qt&quot; name=&quot;/xml/row/wr_doc_source_dd_longitude_qt&quot; value=&quot;&quot; onkeypress=&quot;return SubmitSelect();&quot;></td>
<td class=&quot;caption&quot; title=&quot;A lookup table entry containing Latitude and Longitude Source Types (e.g., GPS, Traverse Survey, Quad)&quot; align=&quot;right&quot;>Lat/Lon Source</td>
<td class=&quot;data&quot;><select id=&quot;/xml/row/wr_doc_source_lat_lon_source_type_id&quot; name=&quot;/xml/row/wr_doc_source_lat_lon_source_type_id&quot; onkeypress=&quot;SubmitSelect()&quot; size=&quot;1&quot;><option value=&quot;&quot;>-- Select a value --</option>
<option value=&quot;1&quot;>Address Matching-Block Face</option>
<option value=&quot;2&quot;>Address Matching-Digitized</option>
<option value=&quot;3&quot;>Address Matching-House Number</option>
<option value=&quot;4&quot;>Address Matching-Nearest Intersection</option>
<option value=&quot;5&quot;>Address Matching-Other</option>
<option value=&quot;6&quot;>Address Matching-Primary Name</option>
<option value=&quot;7&quot;>Address Matching-Street Centerline</option>
<option value=&quot;8&quot;>Census Block-1990-Centroid</option>
<option value=&quot;9&quot;>Census Block/Group-1990-Centroid</option>
<option value=&quot;10&quot;>Census Block/Tract-1990-Centroid</option>
<option value=&quot;11&quot;>Census-Other</option>
<option value=&quot;12&quot;>Classical Surveying Techniques</option>
<option value=&quot;13&quot;>GPS Carrier Phase Kinematic Relative Position</option>
<option value=&quot;14&quot;>GPS Carrier Phase Static Relative Position</option>
<option value=&quot;15&quot;>GPS Code (Pseudo Range) Differential</option>
<option value=&quot;16&quot;>GPS Code (Pseudo Range) Precise Position</option>
<option value=&quot;17&quot;>GPS Code (Pseudo Range) Standard Position (SA Off)</option>
<option value=&quot;18&quot;>GPS Code (Pseudo Range) Standard Position (SA On)</option>
<option value=&quot;19&quot;>GPS, with Canadian Active Control System</option>
<option value=&quot;20&quot;>GPS-Unspecified</option>
<option value=&quot;21&quot;>Interpolation - Digital Map Source (TIGER)</option>
<option value=&quot;23&quot;>Interpolation-Map</option>
<option value=&quot;22&quot;>Interpolation-MSS</option>
<option value=&quot;24&quot;>Interpolation-Other</option>
<option value=&quot;25&quot;>Interpolation-Photo</option>
<option value=&quot;27&quot;>Interpolation-Satellite</option>
<option value=&quot;26&quot;>Interpolation-SPOT</option>
<option value=&quot;28&quot;>Interpolation-TM</option>
<option value=&quot;29&quot;>Loran C</option>
<option value=&quot;30&quot;>Public Land Survey-Eighth Section</option>
<option value=&quot;31&quot;>Public Land Survey-Footing</option>
<option value=&quot;32&quot;>Public Land Survey-Quarter Section</option>
<option value=&quot;33&quot;>Public Land Survey-Section</option>
<option value=&quot;34&quot;>Public Land Survey-Sixteenth Section</option>
<option value=&quot;35&quot;>Unknown</option>
<option value=&quot;36&quot;>ZIP Code-Centroid</option>
<option value=&quot;37&quot;>ZIP+2 Centroid</option>
<option value=&quot;38&quot;>ZIP+4 Centroid</option></select></td>
<td class=&quot;caption&quot; title=&quot;A lookup table entry containing Latitude and Longitude Datums (e.g., NAD 1927)&quot; align=&quot;right&quot;>Datum</td>
<td class=&quot;data&quot;><select id=&quot;/xml/row/wr_doc_source_lat_lon_datum_id&quot; name=&quot;/xml/row/wr_doc_source_lat_lon_datum_id&quot; onkeypress=&quot;SubmitSelect()&quot; size=&quot;1&quot;><option value=&quot;&quot;>-- Select a value --</option>
<option value=&quot;4&quot;>High Accuracy Reference Network</option>
<option value=&quot;1&quot;>North American Datum of 1927</option>
<option value=&quot;2&quot;>North American Datum of 1983</option>
<option value=&quot;3&quot;>World Geodetic System of 1984</option></select></td>
</tr>
</table>
<table class=&quot;Perimeter&quot; width=&quot;100%&quot;>
<tr>
<td align=&quot;center&quot;>
<table class=&quot;NoBorder&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/county_nm&quot; name=&quot;/xml/row/county_nm&quot; value=&quot;false&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/wria_cd&quot; name=&quot;/xml/row/wria_cd&quot; value=&quot;false&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/xsourcetype&quot; name=&quot;/xml/row/xsourcetype&quot; value=&quot;false&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/groundtypenm&quot; name=&quot;/xml/row/groundtypenm&quot; value=&quot;false&quot;></table>
</td>
</tr>
</table>
<table width=&quot;100%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;>
<tr>
<td align=&quot;left&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/county_id&quot; name=&quot;/xml/row/county_id&quot; value=&quot;&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/wria_id&quot; name=&quot;/xml/row/wria_id&quot; value=&quot;&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/lon_source_type_id&quot; name=&quot;/xml/row/lon_source_type_id&quot; value=&quot;&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/lon_datum_id&quot; name=&quot;/xml/row/lon_datum_id&quot; value=&quot;&quot;><input type=&quot;hidden&quot; id=&quot;/xml/row/groundwater_ty_id&quot; name=&quot;/xml/row/groundwater_ty_id&quot; value=&quot;&quot;></td>
</tr>
</table>
<table class=&quot;NoBorders&quot; width=&quot;100%&quot;>
<tr>
<td><img src=&quot;images/spacer.gif&quot; height=&quot;5&quot;></td>
</tr>
<tr>
<td align=&quot;center&quot; height=&quot;15&quot;><input type=&quot;image&quot; name=&quot;submit&quot; value=&quot;&quot; src=&quot;images/btnaccept.gif&quot; alt=&quot;Accept edits/changes and return to the At a Glance Tab&quot; onClick=&quot;return validate(this.form,'add');fHardClose=false;&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;10&quot;><input type=&quot;image&quot; name=&quot;submit&quot; value=&quot;&quot; src=&quot;images/btnaddanother.gif&quot; alt=&quot;Accept information entered and re-set dialog to add another entry&quot; onClick=&quot;return validate(this.form,'addanother');;fHardClose=false;&quot;><img src=&quot;images/spacer.gif&quot; width=&quot;10&quot;><input type=&quot;image&quot; name=&quot;reset&quot; onClick=&quot;javascript: return checkForm(this.form);fHardClose=false;&quot; src=&quot;images/btnback.gif&quot; alt=&quot;Return to the At a Glance Tab without accepting any edits/changes&quot; ></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
 
sorry about that huge piece of code..
to simulate the problem..copy the above code and save it as an html file

now click on the missing image which says
Toggle control...Surface and Reservoir Sections.
an error pops up..if a confirmation box appears
Yes/No then press no (this error does not appear in the actiual code).lot of depend files are missing so u get the error..

Place the cursor on the textbox(Groundwater Name) and press enter

You can here the loud beep..


 
hold on man looks like most of the code got truncated..
so give me your email address and i will send it to u with all the dependent files too...
 
Sounds like whats happening is that your buttons are trying to tell you that pressing enter wont work on all buttons, so it may work on one but the rest are like NOPE, NOPE, NOPE. So I think what you shoule do is associate a key function with each button something like this:

code:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
var k = 0;
document.onkeydown = keyDown;
function keyDown(DnEvents) {
k = window.event.keyCode;
if (k == 13) { submita(); }
if (k == 13) { submitb(); }
}
</script>
</head>
<body>
<input type=&quot;submit&quot; value=&quot;go&quot; onclick=&quot;submita();&quot;><p>
<input type=&quot;submit&quot; value=&quot;go&quot; onclick=&quot;submitb();&quot;>
========================================================

See what I'm saying? Hope this helps.

Code One

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top