function tacchecker()
{
	var valid = new getObj('validmsg');
	var tac = new getObj('taccheck');
	if (tac.ready) {
		if (!tac.obj.checked) {
			if (valid.ready) {
				valid.obj.innerHTML = 'You must agree to the Terms & Conditions to Continue';
			}
			else {
				alert('You must agree to the Terms & Conditions to Continue');
			}
			return false;
		}
		else {
			return true;
		}
	}
	return true;
}

function closeDemoPopup(obj)
{
	var popup = new getObj(obj);
	if (popup.ready) {
		popup.style.display = 'none';
		popup.style.visibility = 'hidden';
	}
}

function adpopup(url)
{
	var w = screen.width;
	var h = screen.height;
	var win = null;
	
	try {
		win = window.open(url);
		if (win && win.open) {
			return false;
		}
		else {
			return true;
		}
	}
	catch (e) {
		return true;
	}
}

function popup(url)
{
	window.open(url, 'ukbppopup', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=400,left = 362,top = 184');
}

function popupAutoSized(url)
{
	window.open(url, 'ukbppopup', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1');
}

function popupWidthSized(url,width)
{
	window.open(url, 'ukbppopup', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+width+'');
}

function popupSized(url,width,height)
{
	window.open(url, 'ukbppopup', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+width+',height='+height+'');
}

/* Makes PopUp Windows Moveable */
var savePopUpX = 0;
var savePopUpY = 0;
var savePopUpMX = 0;
var savePopUpMY = 0;
function makeMoveable(name) {
	return;
	for (var n = name.length - 1; n >= 0; n --) {
		var num = parseInt(name.charAt(n));
		if (isNaN(num)) {
			if (n < name.length - 1) {
				var id = name.substr(n + 1);
			}
			else {
				var id = '';
			}
			var name = name.substr(0, n + 1);
			break;
		}
	}
	var h = new getObj(name + 'Header' + id);
	if (h.ready) {
		h.obj.onmousedown = function(e) {
			var cords = getMouseXY(e);
			var pobj = new getObj(name + id);
			var ocords = findPos(pobj.obj);
			savePopUpX = ocords[0];
			savePopUpY = ocords[1];
			savePopUpMX = cords[0];
			savePopUpMY = cords[1];
			pobj.style.position = 'absolute';
			pobj.style.left = (savePopUpX + cords[0] - savePopUpMX) + "px";
			pobj.style.top = (savePopUpY + cords[1] - savePopUpMY) + "px";
			
			if (pobj.ready) {
				document.onmousemove = function(e) {
					var cords = getMouseXY(e);
					var mobj = new getObj(name + id);
					if (mobj.ready) {
						mobj.style.left = (savePopUpX + cords[0] - savePopUpMX) + "px";
						mobj.style.top = (savePopUpY + cords[1] - savePopUpMY) + "px";
					}
				};
			}
		};
		document.onmouseup = function(e) {
			var pobj = new getObj(name + id);
			if (pobj.ready) {
				document.onmousemove = null;
			}
		};
	}
}