function GetStyle(Path){
		var S=screen.availWidth;
		if (S>900){return "<link rel=stylesheet type='text/css' href='" + Path + "Style1024.css'>";}
		else if (S>700) {return "<link rel=stylesheet type='text/css' href='" + Path + "Style800.css'>";}
		else {return "<link rel=stylesheet type='text/css' href='" + Path + "Style640.css'>";}
	}
	
	
function RefWindow() {

	var H=screen.availHeight;
	var W=screen.availWidth;
	var R;
	
	if (navigator.appName=="Netscape"){
		R=window.open("","Reference","resizable,scrollbars,screenY=" + H*.70 + ",screenX=" + W*.005 + ",width=" + W*0.975 + ",height=" + H*0.25);
	}
	else{
		R=window.open("","Reference","resizable, scrollbars, top=" + H*.70 + ", left=" + W*.005 + ", width=" + W*.975 + ", height=" + H*0.25);
	}
	R.focus();
	return false;
}

function Framer(F){

	var S=F.location.href
	if (S.indexOf("Tables/")!=-1  || S.indexOf("Hospitals/")!=-1 || S.indexOf("Units/")!=-1 || S.indexOf("HealthCareCommissionSurvey/")!=-1 || S.indexOf("HealthCareCommissionTrustSurvey/")!=-1 || S.indexOf("HealthCareCommissionScores/")!=-1 || S.indexOf("Data/")!=-1 || S.indexOf("Info/")!=-1 || S.indexOf("Trusts/")!=-1)
		{S='../BirthChoiceUKFrame.htm?'+S}
	else
		{S='BirthChoiceUKFrame.htm?'+S}
		
	if (document.images){
		location.replace(S)
		}
	else {
		location.href=S
	}
}


function FramerMap(S){
	
	if (S.indexOf("Hospitals/")!=-1)
		{S='../BirthChoiceUKFrame.htm?'+S}
	else
		{S='BirthChoiceUKFrame.htm?'+S}
	
	if (document.images){
		location.replace(S)
		}
	else {
		location.href=S
	}
}

function OpenNewWindow() {
	var R;
	if (navigator.appName=="Netscape"){
		R=window.open("","Linked_From_BirthChoiceUK","location,menubar,resizable,toolbar,scrollbars,status, screenY=0, screenX=" + screen.availWidth*0.04 + ",width=" + screen.availWidth*0.95 + ",height=" + screen.availHeight*0.79);
	}
	else{
		R=window.open("","Linked_From_BirthChoiceUK","location, menubar, resizable, toolbar, scrollbars, status, top=0, left=" + screen.availWidth*0.04 + ", width=" + screen.availWidth*0.95 + ", height=" + screen.availHeight*0.79);
	}
	R.focus();
	return false;
}

function OpenNewWindowM(S) {
	var R;
	if (screen.availWidth>900){
			if (navigator.appName=="Netscape"){
				R=window.open(S,"Linked_From_BirthChoiceUK","location,menubar,resizable,toolbar,scrollbars,status, screenY=0, screenX=" + screen.availWidth*0.09 + ",width=" + screen.availWidth*0.9 + ",height=" + screen.availHeight*0.79);
			}
			else{
				R=window.open(S,"Linked_From_BirthChoiceUK","location, menubar, resizable, toolbar, scrollbars, status, top=0, left=" + screen.availWidth*0.09 + ", width=" + screen.availWidth*0.9 + ", height=" + screen.availHeight*0.79);
			}
	}
	else
	{
		if (navigator.appName=="Netscape"){
			R=window.open(S,"Linked_From_BirthChoiceUK","menubar,resizable,toolbar,scrollbars,status");
		}
		else{
			R=window.open(S,"Linked_From_BirthChoiceUK","menubar, resizable, toolbar, scrollbars, status");
		}
	}
	R.focus();
}


function setChecked(name) {
	var i = name.substring(2); 
	if (!top.ChkBxsChked[i]){
		top.ChkBxsChked[i]=true;
		expireDate = new Date;
		expireDate.setMonth(expireDate.getMonth()+1);
		document.cookie = name + "=" + escape(true) + "; expires=" + expireDate.toGMTString() +  "; path=/";
	}
}

function deleteCheckBoxCookie(name) {
	expireDate = new Date;
	expireDate.setMonth(expireDate.getMonth()-1);
	document.cookie = name + "=" + escape("") + "; expires=" + expireDate.toGMTString() +  "; path=/";
}
	
