function checkcontents(box)
{
	boxdata = document.getElementById(box).value;
	if (boxdata == "") document.getElementById(box+"-form").reset();
}

function makeempty(box)
{
	document.getElementById(box).value 		= "";
}


var horizontal_offset="-74px" //horizontal offset of hint box from anchor link

/////No further editting needed

var vertical_offset="-8" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
theitem.contentmeasure=theitem.offsetWidth
if (windowedge-theitem.x < theitem.contentmeasure)
edgeoffset=theitem.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
theitem.contentmeasure=theitem.offsetHeight
if (windowedge-theitem.y < theitem.contentmeasure)
edgeoffset=theitem.contentmeasure-obj.offsetHeight
}
return edgeoffset
}





function showCredits(obj)
{
	theitem = document.getElementById('credits');
	if (theitem.innerHTML == "")
	{
		loadCredits();
	}

	theitem.style.display = 'inline';
	
	theitem.x = getposOffset(obj, "left");
	theitem.y = getposOffset(obj, "top");
	theitem.style.left = theitem.x-clearbrowseredge(obj, "rightedge")+(obj.offsetWidth-25)+"px";
	theitem.style.top = eval(theitem.y-clearbrowseredge(obj, "bottomedge")+15)+"px";
	
	
}

function hideCredits(obj)
{
	theitem = document.getElementById('credits');
	theitem.style.display = 'none';
}
