
function checkForm(theform) {

		if(theform.agree.checked=="") {
		error+="You did not tick the checkbox stating you agree to our terms and conditions and privacy statement.\n";
	}
	
}

function tcWarn(obj)
{
if(obj.checked)
{
var cf = confirm( 'You did not tick the checkbox stating you agree to our terms and conditions and privacy statement' );
if(cf)
obj.checked = true;
else
obj.checked = false;
}
}

function tcremind()
{
  var the_box = window.document.bsi.agree;
  var the_switch = "";
  if (the_box.checked == false) {
    alert("You must agree to the Terms & Conditions and Privacy Policy statement before continuing with your payment");      
  } else {
    alert("Thank you. By ticking this box you have agreed to the Terms & Conditions and Privacy Policy statement. ");
  }
}


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

