var backColor="#e6eaf3"
var overColor="#ffffff"
//var backColor="#ffffff"
//var overColor="#F1F1F1"



function mouseOn(src){ 
	if (!src.contains(event.fromElement)){ 
		src.bgColor = overColor; 
	} 
} 
function mouseOff(src){ 
	if (!src.contains(event.toElement)){ 
		src.bgColor = backColor; 
	} 
} 
/*function mousePick(src){ 
	if(event.srcElement.tagName=='TD')
		src.children.tags('A')[0].click();
}*/
function setBgColor(src){
        src.bgColor =  backColor;
		}
		
			
function openWindow(param, w, h) {
    var newWindow = window.open(param,'Answer','width='+w+',height='+h+',scrollbars=yes, resizable=no');
	if(newWindow.top != top) {newWindow.focus(); }
}		


function openWindow2(param, w, h) {
    var newWindow = window.open(param,'Answer2','width='+w+',height='+h+',scrollbars=yes, resizable=no');
	if(newWindow.top != top) {newWindow.focus(); }
}		


function openWindow(param, w, h) {
    var newWindow = window.open(param,'Answer','width='+w+',height='+h+',scrollbars=yes, resizable=no');
	if(newWindow.top != top) {newWindow.focus(); }
}		


//if (parent.location.href != window.location.href) parent.location.href = window.location.href;	


	function closeIt(){
  		window.close()
  	}	
	
	
	
	
	
	function POPUP_openWindow(param, w, h) {
	var winl = (screen.width -200)/ 2 + 300 ;
	var wint = (screen.height - 200)/ 2 - 50;
    var newWindow = window.open(param,'Answer','width='+w+',height='+h+',top='+0+',left='+0+',scrollbars=no, resizable=no');
	if(newWindow.top != top) {newWindow.focus(); }
}		



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var odiv = "test"
function fnGetId2(){
   // Returns the DIV element in the collection.
   escape(odiv = document.getElementById("strTitle").innerHTML)
   return odiv
}

//alert(fnGetId2())
//alert(odiv)



function openWindow_for_email(w, h) {
var adl_url = location.href
var adl_title = fnGetId2()
param = "http://cgi.adl.org/cgi-bin/send_form.pl?send_url=" + adl_url + "&amp;send_description=" + adl_title
    var newWindow = window.open(param,'Answer','width='+w+',height='+h+'toolbar=yes, location = yes');
	if(newWindow.top != top) {newWindow.focus(); }
}
