//---------------------------openwindow---------------------------------
// This function opens a new window in the middle of the screen
// Parameters:
// w - the width of the window
// h - the height of the window
// ur - the URL of the window
function openwindow(w,h,ur,location) {
var d
	winleft = screen.width/2 - ( w/2 )
	wintop = screen.height/2 - ( h/2 ) - 30
	if (location == 'noLocation')
		str = "width=" +w + ",height=" + h + "," + "top=" + wintop + ",left=" + winleft +",scrollbars=no,menubar=no,resizable=0,toolbar=no,location=no,status=yes"
	else
		str = "width=" +w + ",height=" + h + "," + "top=" + wintop + ",left=" + winleft +",scrollbars=no,menubar=no,resizable=1,toolbar=no,location=yes,status=yes"
	d = new Date()
	nm = Number(d)
	newWinObj = window.open(ur,nm, str)
	return newWinObj
}

function rollover(objimg,onoff)
{
	if (onoff==1)
		eval("document.images."+objimg+".src="+objimg+"r"+".src")
	if (onoff==0)
		eval("document.images."+objimg+".src="+objimg+"e"+".src")
}


function preload(imgObj,imgSrc){
	if (document.images) {
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
    }
}

function divVis(divId,offon)
{
	if (offon==1)
		document.getElementById(divId).style.visibility='visible'
	if (offon==0)
		document.getElementById(divId).style.visibility='hidden'
}

/*
function paintCell(item,type) { 
	try {
		item.className = type;
	} catch (e) {}
}
*/
//preloads
preload("click_any_box_r","img/blank.gif");