image1 = new Image();
image1.src = "http://bcimages.baycouples.com/bc/v2/header2-green-dot.jpg";

image2 = new Image();
image2.src = "http://bcimages.baycouples.com/bc/v2/nav-option-green.gif";


function doDot (dotColor,linkColor,dotName,linkName) {
      document.images[dotName].src='http://bcimages.baycouples.com/bc/v2/'+dotColor;
      document.getElementById(linkName).style.color='#'+linkColor;
}

function recMOver(img_id,link_id,bgcolor,color) {
   if (document.getElementById) {
      window.document.getElementById(img_id).style.background=bgcolor;
      window.document.getElementById(link_id).style.color=color;
   } else if (document.all) {
      document.all.img_id.bgColor=bgcolor;
      document.all.link_id.style.color=color;
   } else if (document.layers) {
      window.document.layers[img_id].bgColor=bgcolor;
      window.document.layers[link_id].style.color=color;
   }
}

function setUploadPrevImage(string,image) {
   document.getElementById(image).src = 'File:\/\/' + string;
   document.getElementById(image).height=70;
}

function HRow(checkbox,row_id,bgcolor,orig_bgcolor) {
   if (checkbox.checked==true) {
      if (document.getElementById) {
         window.document.getElementById(row_id).style.backgroundColor=bgcolor;
      } else if (document.all) {
         document.all.row_id.bgColor=bgcolor;
      } else if (document.layers) {
         window.document.layers[row_id].bgColor=bgcolor;
      }
   }
   if (checkbox.checked==false) {
      if (document.getElementById) {
         window.document.getElementById(row_id).style.background=orig_bgcolor;
      } else if (document.all) {
         document.all.row_id.bgColor=orig_bgcolor;
      } else if (document.layers) {
         window.document.layers[row_id].bgColor=orig_bgcolor;
      }
   }
}

function right(e) {
   var message = "Please respect our members\' privacy! Thank you!";
   if (document.all) {
     if (event.button==2||event.button==3) {
       alert(message);
       return false;
     }
   } else {
     if (e.button==2||e.button==3) {
       e.preventDefault();
       e.stopPropagation();
       alert(message);
       return false;
     }
   } 
   return true;
}

function trap() {
  if(document.images) {
    for(i=0;i<document.images.length;i++) {
      document.images[i].onmousedown = right;
      document.images[i].onmouseup = right;
    }
   }
}


