function Verify(){if(confirm("Record will be permanently deleted from the database.  Are you sure you want to continue?"))return true;else return false}function Verify2(){if(confirm("You are about to close this referral.  Are you sure you want to continue?"))return true;else return false}function VerifyFail(){if(confirm("WARNING!  This will set ALL referrals listed on this page to failed.  Are you sure you want to do this?"))return true;else return false}function verifyTerminate(){if(confirm("Are you sure you want to terminate this member?"))return true;else return false}window.name="parentWin";function openWindow(theURL){popupWin=window.open(theURL,'remote','width=400,height=350,left=10,top=10,scrollbars=yes')}function openWindow3(theURL){popupWin=window.open(theURL,'remote','width=400,height=400,left=10,top=10,scrollbars=yes')}function calcsubmit(){window.open('','calc','scrollbars=1,menubar=0,toolbar=0,location=0,directories=0,status=0,resizable=0,HEIGHT=400,WIDTH=600');document.CalcForm.target='calc';document.CalcForm.submit()}var f=1;function dontgo(){if(f==1)open('survey.cfm','survey','WIDTH=400,HEIGHT=500')}function updateParent(newURL){opener.location=newURL}function adjustPageSize(){if(is.ns4){available_width=innerWidth;available_height=innerHeight;newWidth=((available_width-763)/2)+121;if(newWidth<129)newWidth=129;document.subNavLeasing.left=newWidth;document.subNavBuying.left=newWidth;document.subNavMembers.left=newWidth;document.subNavToolkit.left=newWidth}else{available_width=document.body.clientWidth;available_height=document.body.clientHeight;newWidth=((available_width-763)/2)+129;if(newWidth<129)newWidth=129;subNavLeasing.style.left=newWidth;subNavBuying.style.left=newWidth+35;subNavMembers.style.left=newWidth+70;subNavToolkit.style.left=newWidth+105}}var layerArray=new Array("subNavLeasing","subNavBuying","subNavMembers","subNavToolkit");function layerHide(noHideLayer,subLayer){i=0;while(i<layerArray.length){var layer=layerArray[i];if(document.layers){document.layers[layer].display="none"}else{document.getElementById(layer).style.display="none"}i++}}function layerShow(layer){if(document.layers){document.layers[layer].display="block"}else{document.getElementById(layer).style.display="block"}}function hideMedImage(l,p,flag){i=0;while(i<l){var layerNum=i+1;var layer="medImage"+layerNum;if(document.layers){document.layers[layer].display="none"}else{document.getElementById(layer).style.display="none"}i++}if(flag==0){var defaultlayer="medImage"+p;if(document.layers){document.layers[defaultlayer].display="block"}else{document.getElementById(defaultlayer).style.display="block"}}}function showMedImage(layer,totalLayers,index){hideMedImage(totalLayers,index,'1');if(document.layers){document.layers[layer].display="block"}else{document.getElementById(layer).style.display="block"}}function showText(layer){if(document.layers){document.layers[layer].display="block"}else{document.getElementById(layer).style.display="block"}}function layerAction(layer){if(document.layers){if(document.layers[layer].display=="block")document.layers[layer].display="none";else document.layers[layer].display="block"}else{if(document.getElementById(layer).style.display=="block")document.getElementById(layer).style.display="none";else document.getElementById(layer).style.display="block"}}function hideText(){i=0;while(i<textArray.length){var layer=textArray[i];if(document.layers){document.layers[layer].display="none"}else{document.getElementById(layer).style.display="none"}i++}}function bigImageWin(image){var imgURL="bigImage.cfm?imgSrc="+image;bigImageWindow=window.open(imgURL,"bigImage","width=500,height=500,resizable=no,scrollbars=yes,location=no");return false}function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt}}
