	function changePage(phoneURL){
		window.location.href=phoneURL;
	}


	function pup(sub) {
			win = window.open(sub, '', 'width= 155,height= 200,scrollbars= no');
			if (win.focus) win.focus();
		}


	function zap(id) {
		document.forms.deletes.del.value = id;
		document.forms.deletes.submit();
	}


	function pupWeb(sub, scroll) {
		win = window.open(sub, '', 'width=400,height=300,resizable=yes,scrollbars=' + scroll);
		if (win.focus) win.focus();
	}

	function msgsize(msg) {

		var l = msg.value.length

		if ((l == 1) && (msg.value.substring(0, 1) == " ")) {
		msg.value = ""
		l = 0
		}
		if (l > 129) {
		msg.value = msg.value.substring(0, 131)
		document.forms.smsAFriend.numchars.value = 0
		}
		else {
			document.forms.smsAFriend.numchars.value = 131 - l
		}
	}




	function pupRem(sub) {
		win = window.open(sub, '', 'width= 230,height= 230,scrollbars= no');
		if (win.focus) win.focus();
	}


		if (document.images) {
		button1 = new Image (85,20);
		button1.src = "image/faqbut1.gif";

		button2 = new Image (85,20);
		button2.src = "image/faqbut2.gif";

		button3 = new Image (85,20);
		button3.src = "image/feedbackbut1.gif";

		button4 = new Image (85,20);
		button4.src = "image/feedbackbut2.gif";

		button5 = new Image (85,20);
		button5.src = "image/phonebut1.gif";

		button6 = new Image (85,20);
		button6.src = "image/phonebut2.gif";

		button7 = new Image (85,20);
		button7.src = "image/sitebut1.gif";

		button8 = new Image (85,20);
		button8.src = "image/sitebut2.gif";

		button9 = new Image (85,20);
		button9.src = "image/mydetailsbut1.gif";

		button10 = new Image (85,20);
		button10.src = "image/mydetailsbut2.gif";

		button11 = new Image (85,20);
		button11.src = "image/webbut1.gif";

		button12 = new Image (85,20);
		button12.src = "image/webbut2.gif";

		button13 = new Image (85,20);
		button13.src = "image/emailbut1.gif";

		button14 = new Image (85,20);
		button14.src = "image/emailbut2.gif";

		button15 = new Image (85,20);
		button15.src = "image/exitbut1.gif";

		button16 = new Image (85,20);
		button16.src = "image/exitbut2.gif";

		button17 = new Image (85,20);
		button17.src = "image/wapbut1.gif";

		button18 = new Image (85,20);
		button18.src = "image/wapbut2.gif";

		button19 = new Image (85,20);
		button19.src = "image/newsbut1.gif";

		button20 = new Image (85,20);
		button20.src = "image/newsbut2.gif";

		button21 = new Image (85,20);
		button21.src = "image/logonbut1.gif";

		button22 = new Image (85,20);
		button22.src = "image/logonbut2.gif";
	}

	function swapImage(oldButton,newButton) {
			if (document.images) {
				document.images[oldButton].src = eval(newButton + ".src");
			}
		}

	function changePages(leftURL,midURL){
		parent.bottomLeft.location.href=leftURL;
		parent.bottomMid.location.href=midURL;
	}

	function changeLeftPage(URL){
		parent.bottomMLeft.location.href=URL;
	}

	function changeMiddlePage(URL){
		parent.bottomMid.location.href=URL;
	}

	function changePagesAll(bottomURL,bannerURL){
		parent.bottom.location.href=bottomURL;
		parent.bannerTop.location.href=bannerURL;
	}

	function myDetails() {
		if (document.myDetails.password1.value != document.forms.myDetails.password2.value) alert('Passwords do not match');
		else if (document.myDetails.phoneType.options[document.myDetails.phoneType.selectedIndex].value != "None" && document.myDetails.mobileNumber.value == "") alert('You must insert your mobile phone number');
		else if (document.myDetails.phoneType.options[document.myDetails.phoneType.selectedIndex].value == "pick") alert('Please Select your model of phone');
		else if (document.myDetails.password1.value != document.forms.myDetails.password2.value) alert('You must insert your mobile phone number');
		else document.myDetails.submit();
	}

	function registration() {
		if (document.myDetails.password1.value != document.myDetails.password2.value) alert('Passwords do not match');
		else if (document.myDetails.phoneType.options[document.myDetails.phoneType.selectedIndex].value != "None" && document.myDetails.mobileNumber.value == "") alert('You must insert your mobile phone number');
		else if (document.myDetails.phoneType.options[document.myDetails.phoneType.selectedIndex].value == "pick") alert('Please Select your model of phone');
		else if (document.myDetails.password1.value != document.myDetails.password2.value) alert('You must insert your mobile phone number');
		else if (document.myDetails.tandc.options[document.myDetails.tandc.selectedIndex].value != "yes") alert('You must accept the terms and conditions');
		else document.myDetails.submit();
	}

	function add(id) {
		document.forms.adds.add.value = id;
		document.forms.adds.submit();
	}

	function changeOtaPage() {
		configuration = document.otaConfigurations.otaName.options[document.otaConfigurations.otaName.selectedIndex].value;

		eval("destination = 'showOTAStats.jsp?config=" + configuration + "'");
		document.location = destination;
	}


	function openDeletePage(){
		config = document.otaConfigurations.otaName.options[document.otaConfigurations.otaName.selectedIndex].value;
		eval("document.location = 'doDeleteOtaConfiguration.jsp?name=" + config + "'");

	}

	function openEditPage(){
		config = document.otaConfigurations.otaName.options[document.otaConfigurations.otaName.selectedIndex].value;
		eval("document.location = 'editOtaConfiguration.jsp?name=" + config + "'");

	}

	function otaHelp(){
		win = window.open('otaHelp.jsp', 'ota', 'width=495,height=350,scrollbars=yes');
		if (win.focus) win.focus();
	}

	function reminder(){
		win = window.open('passwordReminder.jsp', 'pass', 'width=230,height=480,scrollbars=yes');
		if (win.focus) win.focus();
	}

	function tAndC(){
		win = window.open('tAndC.jsp', 'tAndC', 'width=496,height=480,scrollbars=yes');
		if (win.focus) win.focus();
	}

	function tAndCForm(){
		win = window.open('tAndCForm.jsp', 'tAndCForm', 'width=496,height=175,scrollbars=yes');
		if (win.focus) win.focus();
	}

	function privacy(){
		win = window.open('privacy.jsp', 'privacy', 'width=496,height=480,scrollbars=yes');
		if (win.focus) win.focus();
	}

	function privacyForm(){
		win = window.open('privacyForm.jsp', 'privacyForm', 'width=496,height=210,scrollbars=yes');
		if (win.focus) win.focus();
	}

	function email(){
		win = window.open('mail/mail.jsp', 'mail', 'width=660,height=480,scrollbars=yes');
		if (win.focus) win.focus();
	}


	function hotmail(){
		win = window.open('hotmailInfo.jsp', 'hotmail', 'width=492,height=320,scrollbars=yes');
		if (win.focus) win.focus();
	}


	function firstTimeLogOn(){
		win = window.open('firstTime.jsp', 'firstTime', 'width=492,height=320,scrollbars=yes');
		if (win.focus) win.focus();
	}


	function onloadSizer(form,box,size){
		if (document.all) eval("document." + form + "." + box + ".size=" + size);
	}

	function onloadBoxSizer(form,box,cols,rows){
		if (document.all) eval("document." + form + "." + box + ".cols=" + cols);
				  eval("document." + form + "." + box + ".rows=" + rows);
	}

	function register() {
		if (document.myDetails.password1.value != document.forms.myDetails.password2.value) alert('Passwords do not match');
		else document.myDetails.submit();
	}

	function timedOut(){
		window.location="pageLogin.jsp";
	}

	function choose(){
		alert("Please Select An Email Address");
	}