var y="#FFFFFF"; var z="viewAlternateRowColor"; var tempy; var actTrId=1; //the following two parameters are for member profile //var allParameters=""; var allDocumentIds=""; var allCurrentDocumentIds=""; var allPrayerDocumentIds=""; var allAudioAttachments=""; var allFileAttachments=""; function deleteCurrentDocument() { answer=confirm("Do You Really Want To Delete The Document"); if(answer!=0) { document.forms[0].deleteButton.click(); } } function newWindow2(URL) { window.open(URL,'window2', 'toolbar=no,location=no,directories=no,status=no,menubar=no,' + 'scrollbars=yes,' + 'resizable=no,width=550,height=450,top=100,left=100,') } function openPhotoAlbum(url) { window.open(url,"","scrollbars=no,toolbar=no,location=no,menubar=no,width=550,height=535"); return true; } //Function for Member profile form function submitMemberProfileForm() { changeTab(0,-1); //if(checkFirstName()!=false) //{ //if(checkLastName()!=false) //{ //if(checkMemberId()!=false) //{ if( checkBaptizedDate()!=false) { if(checkPassword()!=false) { if(checkConfirmPassword()!=false) { //if(getAllElements()!=false) //{ //var allReturnValue=getAllElements().split("#"); //document.forms[0].GroupDocumentIds.value=allReturnValue[0]; //document.forms[0].CurrentGroupDocumentIds.value=allReturnValue[1]; document.forms[0].DocumentMode.value="1"; document.forms[0].prevMemberId.value=document.forms[0].CurrentMemberId.value; if (document.forms[0].familyid!=null) {if (document.forms[0].familyid.value=="") {alert("Please enter a code for the Family ID field, use the 'Suggest' button for help"); } else if(document.forms[0].roles.value=="1") {document.forms[0].submit();} else if(checkBirthDay()!=false) {document.forms[0].submit();}} else if(document.forms[0].roles.value=="1") {document.forms[0].submit();} else if(checkBirthDay()!=false) {document.forms[0].submit();} //} } } } // } //} //} } function submitMemberProfileFormtest() { alert('save'); document.forms[0].submit(); } function refreshMemberProfile() { document.forms[0].refreshBtn.click(); } function getAllElements() { var allElements=document.frames['iBody1'].document.forms[0].elements; //allParameters=document.forms[0].Groups.value; allDocumentIds=document.forms[0].GroupDocumentIds.value; allCurrentDocumentIds=""; for(i=0;i"); actTrId++; } //*Function for Prayer Request form function openPrayerRequestForm() { var dbPath=document.forms[0].dbPath.value; var url="/"+dbPath+"/PRF?openform&fromUrl=PRF"; window.open(url); } function submitPrayerRequestForm() { changeTab(0,-1); document.forms[0].submit(); } function deletePrayerRequest() { document.forms[0].PrayerDocumentIds.value=getAllSelectedPrayers(); document.forms[0].deleteprayerbtn.click(); } function removePrayerRequest() { document.forms[0].PrayerDocumentIds.value=getAllSelectedPrayers(); document.forms[0].removeprayerbtn.click(); } function refreshForm() { var locHref=document.location.href var idx=locHref.indexOf("&tab="); if(idx!=-1) locHref=locHref.substring(0,idx) locHref=locHref+"&tab=4"; document.location.replace(locHref); } function callPrayerReqAgent() { document.forms[0].btn1.click(); } function getAllSelectedPrayers() { var allElements=document.frames['iBody5'].document.forms[0].elements; for(i=0;i"); actTrId++; } function changeColorIn(trId) { var trObject=document.getElementById(trId); tempy=trObject.className; trObject.className="viewMouseOverColor"; } function changeColorOut(trId) { var trObject=document.getElementById(trId); trObject.className=tempy; } function getCalendarChoice(choice,option) { if(option=="Week") { obj=document.forms[0].calendarOptions; } else { obj=document.forms[0].calendarOptionsDay; } var ret=checkIfSelected(choice,obj); if(ret==true) removeUnSelected(choice,obj); else { //prevchoice=document.forms[0].calendarOptions.value; prevchoice=obj.value; if(prevchoice=="") //document.forms[0].calendarOptions.value=choice; obj.value=choice; else //document.forms[0].calendarOptions.value=prevchoice+";"+choice; obj.value=prevchoice+";"+choice; } if(option=="Week") { displayCal(); } else { displayCalDay(); } } function checkIfSelected(choice,obj) { //var choices=document.forms[0].calendarOptions.value.split(";"); var choices=obj.value.split(";"); var newchoices=""; for(var i=0;i' htmlStr+='
'+ '
'+urlString+'
'; } document.write(htmlStr+''); rightPanelhtmlStr='
'+ '
'+imgUrl+'
'+'
'+'
'; document.write(rightPanelhtmlStr); t1=new rightLinkMain(); t1.tabDivName="rightlink1"; t1.tabHeading=headerTitle; for(i=0;i