function CheckTab(el) {
  // Run only in IE
  // and if tab key is pressed
  // and if the control key is pressed
  if ((document.all) && (9==event.keyCode)) {
    // Cache the selection
    el.selection=document.selection.createRange(); 
    setTimeout("ProcessTab('" + el.id + "')",0)
  }
}

function ProcessTab(id) {
  // Insert tab character in place of cached selection
  document.all[id].selection.text=String.fromCharCode(9)
  // Set the focus
  document.all[id].focus()
}

function ImgChange(img){
 //	alert(img) ; 
		IMGMAIN.src =  img ; 
}

function surfto(form,selectname) {

	var myindex=form.selectname.selectedIndex

	if (form.select1.options[myindex].value != "0") {

		location=form.select1.options[myindex].value;

	}
}
function form_change(){
	document.frm.action = "" ; 

}

function submitme(){

  document.frm.submit() ;

}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openMemberWindow(theURL,winName,features) { //v2.0
  window.status = "Email This BNI Member";
  window.open(theURL,winName,features);  
}

function openDir( form ) {

	var newIndex = form.select.selectedIndex;

	if ( newIndex == 0 ) {

		alert( "Please select a location!" );

	} else {
		cururl = form.select.options[ newIndex ].value;
		window.location.assign( cururl );
	}

}

function moveme(){
	document.frm.name.value  = 	document.frm.dd_list.value ;
}
function deleteme(){
	this_resut = window.confirm('Are you sure you would like to delete?') ; 
	if(this_resut == true){
		return true ; 
	}
	return false ; 
}
function one2two() {
    m1len = m1.length ;
    for ( i=0; i<m1len ; i++){
        if (m1.options[i].selected == true ) {
            m2len = m2.length;
            m2.options[m2len]= new Option(m1.options[i].text,m1.options[i].value);
			
        }
    }

    for ( i = (m1len -1); i>=0; i--){
        if (m1.options[i].selected == true ) {
            m1.options[i] = null;
        }
    }
}

function two2one() {
    m2len = m2.length ;
        for ( i=0; i<m2len ; i++){
            if (m2.options[i].selected == true ) {
                m1len = m1.length;
                m1.options[m1len]= new Option(m2.options[i].text,m2.options[i].value);
            }
        }
        for ( i=(m2len-1); i>=0; i--) {
            if (m2.options[i].selected == true ) {
                m2.options[i] = null;
            }
        }
}
function select_all() {
	m1len = m2.length ;
	for ( i = 0; i< m1len; i++) {
    	m2.options[i].selected = true  ; 
    }
	cnt = m1.length ;
	for ( i = 0; i< cnt; i++) {
    	m1.options[i].selected = true  ; 
    }
	//alert(m1len)	 ;
	//return false ; 

}




// this is for the hiding and un-hiding cells

// this is for the hiding and un-hiding cells

function doCellAbove(cell,boolean) {   
			var table = document.getElementById('nav_bar');   
			var rowIndex = cell.parentNode.rowIndex;
			var cellAbove = table.rows[rowIndex].cells[cell.cellIndex];   
			cellAbove.style.backgroundColor = boolean;
		}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function P7_hideEl(evt) { //v1.5 by PVII-www.projectseven.com
 var b,r,m=false;if(document.layers){b=evt.target;if(b.p7aHide){
 b.visibility="hidden";}else{routeEvent(evt);}
 }else if(document.all&&!window.opera){b=event.srcElement;while(b){
 if(b.p7aHide){break;}b=b.parentElement;}if(!b.contains(event.toElement)){
 b.style.visibility="hidden";}}else if(document.getElementById){
 b=evt.currentTarget;r=evt.relatedTarget;while(r){if(b==r){m=true;
 break;}r=r.parentNode;}if(!m){b.style.visibility="hidden";}}
}

function P7_autoHide() { //v1.5 by PVII-www.projectseven.com
 var i,g;for(i=0;i<arguments.length;i++){
 if((g=MM_findObj(arguments[i]))!=null){g.p7aHide=true;if(document.layers){
 g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideEl;}}
}









// second menu item

