function refresh() {
window.location.reload();
}

function chkloc(ty) {
//var loc=window.location;
//document.str.utxt.value=loc;
//var url=document.str.utxt.value;
//var type=url.substring(0,4); 
//if (type!="file") {
// 'var url=document.referrer;
// 'if (ty==1 && url!="http://www.agilitydogclub.org") {
// ' if (ty==1 && url!="http://www.agilitydogclub.org/") window.location="http://www.agilitydogclub.org";
// ' }
// 'if (ty==2) {
// ' document.str.utxt.value=url;
// ' var ref=document.str.utxt.value;
// ' var ref=ref.substring(0,36); 
// ' if (ref!="http://www.barkingmad.com.au/sraodc/") window.location="http://www.agilitydogclub.org";
// ' }
// }
}

function wide() {
return window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:null;
return 800;
}

function high() {
return window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null;
return 600;
}

function extract(str, st, ed)
{ 
//start=str.indexOf(st); 
//end=str.indexOf(ed);
return(str.substring(st, ed)); 
}

function mouseX(evt) 
{
if (!evt) evt = window.event; 
if (evt.pageX) return evt.pageX; 
else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ?  document.documentElement.scrollLeft : document.body.scrollLeft); else return 0;
}

function mouseY(evt) 
{
if (!evt) evt = window.event; 
if (evt.pageY) return evt.pageY; 
else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return 0;
}

function follow(evt) 
{
if (document.getElementById) 
	{
	var obj = document.getElementById(divName).style; obj.visibility = 'visible';
	obj.left = (parseInt(mouseX(evt))+offX) + 'px';
	obj.top = (parseInt(mouseY(evt))+offY) + 'px';
	}
}

function display(id,name)
{
if (document.images) document.images[id].src=name;
}
