
top.window.moveTo(-4,-4);
if (document.all)
{
	top.window.resizeTo(screen.availWidth+8,screen.availHeight+8);
}
else if (document.layers||document.getElementById)
{
	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
	{
	top.window.outerHeight = screen.availHeight;
	top.window.outerWidth = screen.availWidth;
	}
}

window.status="G D Key & Son - Pedigree Simmental Herd - Mundham, Norfolk";

var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;

function LightOn(what)
{
	if (ie) 
	{
		what.style.backgroundColor="#E0E0E0";
		what.style.cursor="hand";
	}		
	else return;
}

function LightOff(what)
{
	if (ie) what.style.backgroundColor="#C0C0C0";
	else return;
}

function white(what)
{
	if (ie) 
	{
		what.style.backgroundColor="#FFFFFF";
	}		
	else return;
}

function grey(what)
{
	if (ie)
	{
		what.style.backgroundColor="#FFF4F4";
	}
	else return;
}

function printpage()
{
	window.print()
}

function popupWindow280(url)
{
	theChild = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=280,height=330,screenX=50,screenY=50,top=50,left=50')
}

function popupWindow400(url)
{
	theChild = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=400,height=350,screenX=50,screenY=50,top=50,left=50')
}

function popupWindow800(url)
{
	theChild = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=640,screenX=10,screenY=10,top=10,left=10')
}

function popupWindow900(url)
{
	theChild = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=920,height=640,screenX=10,screenY=10,top=10,left=10')
}

function popupWindowMatchReport(url)
{
	theChild = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=900,height=600,screenX=50,screenY=50,top=50,left=50')
}

function closeDependentWindow()
{
	if (theChild && theChild.open && !theChild.closed)
	{
	  	theChild.close();
	}
}

function returntoparent()
{
	history.back();
}

function nextpage(url)
{
	window.location=url;
}

function getParm(string,parm)
{
    var startPos = string.indexOf(parm + "=");
    if (startPos > -1) {
        startPos = startPos + parm.length + 1;
        var endPos = string.indexOf("&",startPos);
        if (endPos == -1)
            endPos = string.length;
        return unescape(string.substring(startPos,endPos));
    }
    return '';
}

function reformatUrl (str)
{
	str = "" + str;
	while (true)
	{
		var i = str . indexOf ('+');
		if (i < 0)
			break;
		str = str . substring (0, i) + '%20' +
			str . substring (i + 1, str . length);
	}
	return unescape (str);
}

var submitRolls = new Object();
function submitroll(src, oversrc, name, validate)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.validate=validate;
this.alt=" Submit ";
this.title=" Submit ";
this.write=submitroll_write;
}
function submitroll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;
document.write
	(
	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
	' HREF="javascript:'
	);
if (this.sendfield)
	{
	if (! this.sendvalue)
 this.sendvalue = 1;
	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
	}
document.write(thisform + '.submit();void(0);"');
if (this.validate)document.write(' onClick="return ' + this.validate + '();"');
document.write('>');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield)
	{
	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
	document.forms[document.forms.length - 1].elements[this.sendfield].value='';
	}
}

var resetRolls = new Object();
function resetimage(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.title=" Reset ";
this.write=resetimage_write;
}

function resetimage_write()
{
document.write('<A ');
if (this.rollover)
    {
    if (! this.name)
        {
        alert('to create a rollover you must give the image a name');
        return;
        }

    resetRolls[this.name] = new Object();
    resetRolls[this.name].over = new Image();
    resetRolls[this.name].over.src=this.rollover;
    resetRolls[this.name].out = new Image();
    resetRolls[this.name].out.src=this.src;
    document.write(
        ' onMouseOver="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].over.src"' + 
        ' onMouseOut="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].out.src"'
        );
    }
document.write(' HREF="javascript:');
if (this.confirm)
    document.write('if(confirm(\'Are you sure you want to erase all the data you have entered?\'))');
document.write(
    'document.forms[' + 
    (document.forms.length - 1) + '].reset();void(0);">');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '"');
document.write(' BORDER=0');
if (this.name)document.write(' NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' '+ this.otheratts);
document.write('></A>');
}


function stb()
{
	document.friend.friendsfirstname.focus();
}


function getParm(string,parm)
{
    var startPos = string.indexOf(parm + "=");
    if (startPos > -1) {
        startPos = startPos + parm.length + 1;
        var endPos = string.indexOf("&",startPos);
        if (endPos == -1)
            endPos = string.length;
        return unescape(string.substring(startPos,endPos));
    }
    return '';
}


var message="";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")









