function popupDiv(id,senderid,e)
{
 	if(navigator.appName.indexOf("Netscape")>(-1)){ 
		
	} 
	if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
		e = window.event;
	}  
//      .divAbsPosition
//        {
//        z-index: 1;
//          left: 0px;
//          position: absolute;
//          top: 0px;
//          visibility:hidden;
//          width: 200px;
//          background-color: blue;
//        }
//        <td width=300px height=100px onmousedown="doSomething(event)">
 
    
       
	//var s = e.clientX + ',' + e.clientY;
	//document.getElementById('span1').innerText = s;
	    
	document.getElementById(id).style.visibility = 'visible';
	document.getElementById(id).style.display = 'block';
	//document.getElementById(id).style.left = document.getElementById(senderid).style.left;
	//document.getElementById(id).style.top = document.getElementById(senderid).style.top;
	document.getElementById(id).style.left =  mouseX(e)-160 + "px";
	document.getElementById(id).style.top = mouseY(e)+5 + "px";
}

function mouseX(evt) {
if (evt.pageX) return evt.pageX;
else if (evt.clientX)
   return evt.clientX + (document.documentElement.scrollLeft ?
   document.documentElement.scrollLeft :
   document.body.scrollLeft);
else return null;
}

function mouseY(evt) {
if (evt.pageY) return evt.pageY;
else if (evt.clientY)
   return evt.clientY + (document.documentElement.scrollTop ?
   document.documentElement.scrollTop :
   document.body.scrollTop);
else return null;
}

function KillPopupDiv(id,e)
{
 	if(navigator.appName.indexOf("Netscape")>(-1)){ 
		
	}	
	if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
		e = window.event;
	}      
      	        
	//var s = e.clientX + ',' + e.clientY;
	//document.getElementById('span1').innerText = s;
	    
	document.getElementById(id).style.display = 'none';
}

function ShowPopupDiv(id,e)
{
 	if(navigator.appName.indexOf("Netscape")>(-1)){ 
		
	}	
	if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
		e = window.event;
	} 	    
	document.getElementById(id).style.visibility = 'visible';
	document.getElementById(id).style.display = 'block';
}
function clickButton(e, buttonid){ 
	var bt = document.getElementById(buttonid); 
	if (typeof bt == 'object'){ 
			if(navigator.appName.indexOf("Netscape")>(-1)){ 
				if (e.keyCode == 13){ 
						bt.click(); 
						return false; 
				} 
			} 
			if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
				if (event.keyCode == 13){ 
						bt.click(); 
						return false; 
				} 
			} 
	} 
}
function dmTrySubmit(e, buttonid)
{
	clickButton(e, buttonid);
}

function flashFix(file, width,height,url)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="dm_documents/' + file + '" align="middle">'+
		'<param name="allowScriptAccess" value="sameDomain" />' +
		'<param name="movie" value="dm_documents/' + file + '" />' +
		'<param name="quality" value="high" />'+
		'<param name="wmode" value="transparent" />'+
		'<param name="bgcolor" value="#fff" />'+
		'<embed src="dm_documents/' + file + '" quality="high" bgcolor="#fff" width="' + width +
		'" height="' + height + '" name="onelove_primtall" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}