// JS funcs customised to the theme

function isNumber(num){
	if(!isNaN(num)) return true;
	return (num.match(/\D/)==null);
}

function SelectSort(vForm) {
		var posX,posY,horCentre,winPosition,w=480,h=240
		
		if (!document.layers) {
			horCentre = screen.width/2 ;
			posX = horCentre-(w/2) ;
			posY = 200;
			winPosition = (document.all) ? "left="+posX+",top="+posY : "screenX="+posX+",screenY="+posY ;

			var dialogOption = 'scrollbar=no,resizable=no,width=250,height=80,';
			var myfeatures = dialogOption + winPosition;
		
			finish = false;
			newWin = window.open ('loadingstatus.asp','statuswin',myfeatures);
		}
		vForm.submit(); 
	}
	
function cookiesOK(){
	// Set a cookie value
	document.cookie = "AW_AcceptCookies="+'123';
	// Read back the value
	return (document.cookie.indexOf("AW_AcceptCookies=") >= 0)
}
	
function goURL(sURL,sTarget) {
	if (sTarget) {
		// do nothing
	}
	else
		sTarget = '_self';
	
	window.open(sURL, sTarget);
}