function popUp(URL){
day=new Date()
id=day.getTime()
eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=760,height=300,left = 740,top = 375');")}
function toggleSize(obj,start,end){
curheight=obj.style.height
if(curheight==''){curheight=start;}
curheight=parseInt(curheight)
if(curheight>=end-2){shrink(curheight,start);}
if(end>=curheight){expand(curheight,end);}
function expand(start,end){
if(start<=end-2){
start+=Math.round((end-start)/4)
obj.style.height=start+"px"
setTimeout(function(ms){expand(start,end);},30)}}
function shrink(start,end){
if(start>=end){
start-=Math.round((start)/4)
obj.style.height=start+"px"
setTimeout(function(ms){shrink(start,end);},30)}}}

function changeOpac(obj,opacity,direction) {
	obj=obj.style
	if(opacity==1&direction=="down"){
		obj.display="none"
	} else if(opacity==1&direction=="up") {
			obj.display="inline"
	}
	
	obj.opacity=(opacity/100)
	obj.MozOpacity=(opacity/100)
	obj.KhtmlOpacity=(opacity/100)
	obj.filter="alpha(opacity="+opacity+")"

}

function tooltipShow(e,str){
document.getElementById('tooltip').style.height="200px"}

function tooltipHide(e){
document.getElementById('tooltip').style.height="0px"}

function getPosition(e){
	e=e || window.event
	var cursor={x:0,y:0}
	if(e.pageX || e.pageY){
	cursor.x=e.pageX
	cursor.y=e.pageY
} else {
	cursor.x=e.clientX+
	(document.documentElement.scrollLeft ||
	document.body.scrollLeft)-
	document.documentElement.clientLeft
	cursor.y=e.clientY+
	(document.documentElement.scrollTop ||
	document.body.scrollTop)-
	document.documentElement.clientTop}
	return cursor
}

function moveToolTip(e){
	e=e || window.event
	if (document.getElementById('tooltip')) {
	document.getElementById('tooltip').style.top=getPosition(e).y+'px'
	document.getElementById('tooltip').style.left=getPosition(e).x+'px'
	}
}

document.onmousemove=moveToolTip