var w=window,d=document,I=d.getElementById,t=true,f=false,vg=new VG();
function VG(){this.ls=[]}
function sb(e){this.i=(e)?[e.toString()]:[];this.a=function(s){this.i[this.i.length]=s;return this};this.s=function(){return this.i.join("")}}
function sh()
{
	var e,s,c=l(v=sh.arguments);
	while(c)
	{
		if(e=Get(v[--c]))
			(s=e.style).display=(s.display=="none")?"block":"none"
	}
}
function Get(i)
{
	var j,g,e=vg.ls[i];
	if(e)
		return e;
	e=(I&&(a=d.getElementById(i)))?a:(d.all&&(a=d.all[i]))?a:f;
	if(e)
		return vg.ls[i]=e;
	else if(j=l(g=d.forms)>0)
	{
		while(!e&&--j)
			e=g[j][i]
	}
	return e
}
function l(o)
{
	return ((o)?o.length:-1)
}
/*TODO - hide all nested lists with script so non-script clients can see them*/
/*submits search form if enter key pressed when search box has focus*/
function send(i)
{
	var x,e=event;
	if(e&&((e.which&&e.which==13)||(e.keyCode&&e.keyCode==13)))
		if(x=Get(i)&&x.click)
			return x.click();
	else return t
}
//TODO - check field names
function postcode(src,args)
{
	args.IsValid=true;
	var cc=Get('_ctl0_CountryCode'),pc=Get('_ctl0_Postcode');
	if(cc)
	{
		var o=cc.options,i=cc.selectedIndex,v=o[i].value;
		if(v!="IE")
		{
			if(pc.value=="")
				args.IsValid=false;
		}
	}
}