function listPhones(){

	//
	// List the phones here to populate the pulldown
	// Note the second parameter of the option is the 'value'
	// and must match the values in the case statement
	//
	
	var x;
	var p;

	x=document.frmPhones.phone; p=0;
	x.options[++p] = new Option("Nokia 8210"       , "1");
	x.options[++p] = new Option("Sony Ericsson 268i", "2");
	x.options[++p] = new Option("Sony Ericsson P800", "3");
	x.options[++p] = new Option("Apple iPhone", "4");
}



function setPhone(cntrl){

	//
	// List the phones here to tweak their positions
	// - url is the image of the phone
	// - you must set phn.height to be the pixel height of the image
	// - adjust txt.height to get the text to appear in the phone screen
	//
	
	var phn = document.all('tsPhoneImg1').style;
	var txt = document.all('tsPhoneTxt1').style;
	var msg = document.all('tsPhoneTxt1');
	var t1  = 50;
	
	switch (cntrl.value)
	{
	case "0":	alert('Call us for a red-hot deal');
	case "1":	phn.background = "url('http://tradeSelect.BANGitUP.com/Res/phones/8210.jpg')";
			phn.height     = 550;
			txt.top        = t1+60;
			msg.innerHTML  = 'Nokia 8210';
			break;
	case "2":	phn.background = "url('http://tradeSelect.BANGitUP.com/Res/phones/268i.jpg')";
			phn.height     = 550
			txt.top        = t1+90;
			msg.innerHTML  = 'Sony Ericsson 268i';
			break;
	case "3":	phn.background = "url('http://tradeSelect.BANGitUP.com/Res/phones/P800.gif')";
			phn.height     = 550;
			txt.top        = t1+110;
			msg.innerHTML  = 'Sony Ericsson P800';
			break;
	case "4":	phn.background = "url('http://tradeSelect.BANGitUP.com/Res/phones/iphone.jpg')";
			phn.height     = 450;
			txt.top        = t1+55;
			txt.left       = 50;
			msg.innerHTML  = 'Apple iPhone';
			break;
	default :	alert('Invalid Phone ID');
			break;
	}
}


///
/// INITIALISE THE PAGE
///

listPhones();
document.all('phone').selectedIndex=4; setPhone(document.all('phone'));
tsPhoneTxt1.innerHTML = 'A sample of the SMS message that will be sent to our tradesmen will be displayed here as you fill out the form.'
