//---------------------mouse-over (side links)--------------------------//


window.name='lno';
	function mOvr(src) {
		if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		src.bgColor = '#4573CE';
		}
	}
	function mOut(src) {
		if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.bgColor = '#204eaa';
		}
	}
	function mClk(src) {
		if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
		}
	}




//--------------pop-window sponsor description-----------------------//
                
        function popSpon(theURL)
         {
          if (theURL == "")
           {
           alert("Sorry, no link found.");
           }
     else{
          var ifwindowopen = open(theURL, "Information", "width=770,height=500,resizable=no,scrollbars,,top=50,left=100");
         ifwindowopen.focus();
         }

	}


//--------------pop-window for mail / email-----------------------//
  
        function popWindow(theURL)
         {               
          if (theURL == "")
           {
           alert("Sorry, no link found.");
           }
         else{ 
             var ifwindowopen  = open(theURL, "Information","width=1000,height=650,resizable=no,scrollbars,,top=30,left=30");
         ifwindowopen.focus();
         }
         }

//----------- bookmark -------------------------------------//

function bookmark(title, url) {
  if (document.all) window.external.AddFavorite(url, title);
  else if (window.sidebar) window.sidebar.addPanel(title, url, "");
}


//--------------------------  validate field entry -----------------------//

function validate(field) {

var valid = "QWERTYUIOPASDFGHJKLZXCVBNMabcdefghijklmnopqrstuvwxyz0123456789"
var ok = "yes";
var temp;

for (var i=0; i<field.value.length; i++) 
    {
    temp = "" + field.value.substring(i, i+1);
    if (valid.indexOf(temp) == "-1") ok = "no";
    }
  	if (ok == "no") 
	{
  	alert("Sorry, invalid entry.  Only alpha characters and numbers are accepted.");
  	field.focus();
  	field.select();
	}

}

//------------------------------------ bookmark site ------------------------//
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
}
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

//---------------------------------------------------------------------------//


function shortAgendaView(topic_id,sys_code)
{

//alert ("Hello");

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById(topic_id).innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","../../pages/session_display.cfm?tid="+topic_id+"&sc="+sys_code,true);
xmlhttp.send();
}
