var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;
function OpenSP()
{
OpenNewWin("stoppress.htm",330,500);
}
function OpenCalc()
{
OpenNewWin("calc.htm",600,520);
}
function OpenNewWin(winpage,winheight,winwidth)
{	
	var newscreenheight=new Number(winheight);
	var newscreenwidth=new Number(winwidth);
	var centery=new Number((screen.availHeight/2)-(newscreenheight/2));
	var centerx=new Number((screen.availWidth/2)-(newscreenwidth/2));
	var mfeatures=new String();
	if(!ns4)
	mfeatures="status=none,height="+newscreenheight+"px,width="+newscreenwidth+"px,"+"left="+centerx+",top="+centery;
	else
	mfeatures="status=none,height="+newscreenheight+"px,width="+newscreenwidth+"px,"+"screenX="+centerx+",screenY="+centery;
	//alert(mfeatures);
	var NewWin=window.open(winpage,"regme",mfeatures);
	imember=1;
	NewWin.creator=self;
}
function OpenContact()
{
OpenNewWin("contact.htm",330,500);
}
function ChangePDFLink(iLink)
{
switch(iLink)
	{
	case "hiworks":
		{
		parent.frames.submenu.location="ParentSub.asp";
		break;
		}
	case "QAndA":
		{
		parent.frames.submenu.location="QandASub.asp";
		break;
		}
	case "scheme":
		{
		parent.frames.submenu.location="SchemeSub.asp";
		break;
		}
	case "terms":
		{
		parent.frames.submenu.location="TCSub.asp";
		break;
		}
	case "register":
		{
		//window.document.frm.action="https://orvis:25912/registration/new_parent/pageno0.asp";
		if(window.confirm('You will now be passed to the care-4 registration page.\nYou will need to provide your unique employers reference BTKIDS.'))
		{
		window.document.frm.action="https://www.care-4.co.uk/PagesReg/RegisterParent.aspx";
		window.document.frm.target="_parent";
		window.document.frm.method="post";
		window.document.frm.submit();
		}
		break;
		}
	case "Login":
		{
		//window.document.frm.action="https://orvis:25912/default.asp";
		window.document.frm.action="https://www.care-4.co.uk/login.aspx";
		window.document.frm.target="_parent";
		window.document.frm.method="post";
		window.document.frm.submit();
		break;
		}
	default:
		{
		parent.frames.submenu.location="submenu.asp";
		}
	}
}