//
//
function GoLink(webPage){window.open(webPage)}
function pgPrint(){window.print()}
function pgClose(){window.close()}
function pgPrintCls(){window.print(); window.close()}
function goWMF(){window.open("http://brymar.net/WMSTR/WMF_feedbk.htm", "", "status")}
//
function imgV(imgElem){document.getElementById(imgElem).style.display = "inline"}
function imgH(imgElem){document.getElementById(imgElem).style.display = "none"}
//
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dowList = new Array(7)
dowList[0] = "Sunday"
dowList[1] = "Monday"
dowList[2] = "Tuesday"
dowList[3] = "Wednesday"
dowList[4] = "Thursday"
dowList[5] = "Friday"
dowList[6] = "Saturday"
//
thisMonth = new Array(13)
thisMonth[0] =""
thisMonth[1] = "January"
thisMonth[2] = "February"
thisMonth[3] = "March"
thisMonth[4] = "April"
thisMonth[5] = "May"
thisMonth[6] = "June"
thisMonth[7] = "July"
thisMonth[8] = "August"
thisMonth[9] = "September"
thisMonth[10] = "October"
thisMonth[11] = "November"
thisMonth[12] = "December"
//
function dateNow(){dateNow = new Date();
                   daNow = dateNow.getDate().toString().concat("-");
                   moNow = (dateNow.getMonth() + 1).toString().concat("-");
                   yrNow = dateNow.getYear().toString(); if(dateNow.getYear() < 200){yrNow = (                      dateNow.getYear() + 1900).toString()};
                   dowNow = dowList[dateNow.getDay()].concat("&nbsp;&nbsp;");
                   dowmdyNow = (dowNow.concat(moNow.concat(daNow))).concat(yrNow);
                   monyrNow = thisMonth[dateNow.getMonth() + 1].concat("  ").concat(yrNow);
                   }
//
// --------------------------------------------------------------------------------------
dd = "bethsirishcorner"          //
tt = "com"                       //
ss = ""
mt1 = "mai", mt2 = "lto:"
nnList = new Array()
nnList[0] = "webmaster"
nnList[1] = "info"
nnList[2] = "webmaster"
//
function sendTo(thisObj, nn, subj){ss = "";  realThing = thisObj.href;
                if(subj){ss = "?subject=" + subj};
                thisObj.href = mt1 + mt2 + nnList[nn] + "@" + dd + "." + tt + ss;
                return true}
// ----------------------------------------------------------------------------------------
//
function snapForm(Fname,Fld){fldTo = eval("document." + Fname + "." + Fld); fldTo.focus()}
function snapIt(fld){fld.focus(); fld.select()}
//
function dsplyErr(errN){if(!errN){return}; alert(errMsg[errN])}
errMsg = new Array()
errMsg[0] = "Unknown error, please start over."
errMsg[1] = "Please enter recipe title."
errMsg[2] = "Please enter enter your ingredients."
errMsg[3] = "Please enter your directions."
errMsg[4] = "Name field is required."
errMsg[5] = "E-mail address field is required."
errMsg[6] = "E-mail address appears incorrect, please re-enter."
errMsg[7] = "Please enter a phone number."
errMsg[8] = "Please enter a valid phone number."
//
errMsg[9] = "First name field required."
errMsg[10] = "Last name field required."
//
errMsg[11] = "Please provide your name."
errMsg[12] = "Please enter a subject for this message."
errMsg[13] = "The 'Message' field is required."
errMsg[14] = "Please select who this message is for."
//
//----------------------------------------------------------------------------------------
// >>>>  Begin form validation for web e-mail form  <<<<
function valiEform(Eform){errCode=0;
                       if(!Eform.from.value){dsplyErr(11); snapIt(Eform.from); return false};
                       val_Email(Eform.email.value);
                       if(errCode){dsplyErr(errCode); snapIt(Eform.email); return false};
                       if(!Eform.subject.value){dsplyErr(12); snapIt(Eform.subject); return false};
                       if(!Eform.message.value){dsplyErr(13); snapIt(Eform.message); return false};
                       if(Eform.to.options[Eform.to.selectedIndex].value == "0"){dsplyErr(14);                        Eform.to.focus(); Eform.to.options[0].selected; return false};
                       // validation finished, complete the form
                       Eform.recipient.value = actualEM[Eform.to.selectedIndex];
                       Eform.to.options[Eform.to.selectedIndex].value = Eform.to.options[Eform.to.selectedIndex].text;
                       Eform.subject.value = "BICs Feedback - ".concat(Eform.subject.value);
                   }
//
//
function showEM(Foption){if(!pluged){pluged = 1; z = 0;
                  while(z < actualEM.length){actualEM[z] =
                  actName[z].concat(actualEM[z].slice(actualEM[z].indexOf("@"))); z++}};
                  //
                  if(!Foption.value){return true};
                  Foption.options[Foption.value].text = actualEM[Foption.value];
                  return true;}
// ----------------------------------------------------------------------------------------
