	function switchImg(firstimage,firstsrc){
			if (document.images) {
			document.images[firstimage].src = firstsrc;
			}
		}
		
		function openWin_shop(url)
		{
	 	obj=open(url, "shop_popup", "width=400,height=314,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no")
	 	obj.window.focus()
		}

		pathtoimages = "../assets/image/phoneselector/";

		firstpartofimagename = "";

		phoneobj = {	"phonefan"		:	"http://commerce.motorola.com/consumer/QWhtml/phone_comp.html",
				"V70"			:	"selectphone",
				"V60"			:	"selectphone",
				"V60i"			:	"selectphone",
				"V60p"			:	"http://www.motorola.com/mdirect/hellomoto/experience/v60p/flash/default.shtml",
				"T720Series-camera"	:	"http://www.motorola.com/mdirect/hellomoto/experience/t720_series_camera/flash/index.shtml",
				"T720Series-no-cam"	:	"http://www.motorola.com/mdirect/hellomoto/experience/t720_series_non_camera/flash/index.shtml",
				"T730"			:	"http://www.motorola.com/mdirect/hellomoto/experience/t720_series_non_camera/flash/t730_cdma/index.shtml",
				"V66"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=239573&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"A388"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=249090&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"C331"			:	"selectphone",
				"C332"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=249098&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"C350"			:	"http://commerce.motorola.com/consumer/QWhtml/c350.html",
				"V200"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=241661&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"V300"			:	"http://www.motorola.com/mdirect/hellomoto/experience/v300/flash/index.shtml",
				"120"			:	"selectphone",
				"120e"			:	"selectphone",
				"120x"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=239519&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"A009"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=241743&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"270c"			:	"selectphone",
				"280"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=239675&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"T193m"			:	"http://commerce.motorola.com/cgi-bin/ncommerce3/ProductDisplay?prrfnbr=239591&prmenbr=126&phone_cgrfnbr=1&zipcode=",
				"C330_Series"		:	"http://www.motorola.com/mdirect/hellomoto/html/c330_home.htm"						
					};// init images and reset the form
					
		function init() 
		{
		// reset form
			document.phoneselectorform.reset();
		// preload images
			tmpimagearray = new Array();

		if (document.images) {
			var tmp = "";
			var i=0;

			for (var prop in phoneobj){
				tmpimagearray[i] = new Image();
				tmpimagearray[i].src = pathtoimages + firstpartofimagename + prop + ".jpg";
				i++;
			}
		}
		}
		// updates the graphic of the phone called from onchange
		function updatephone()
		{
			
			var myindex = document.phoneselectorform.dropdown.selectedIndex
			var myphone = document.phoneselectorform.dropdown.options[myindex].value
			
			if (myphone != -1){

				imageurl = pathtoimages + firstpartofimagename + myphone + ".gif"
				document.phoneselectorimage.src = imageurl;
				document.phoneselectorimage.alt = myphone;
			}
		}
		// called from the go button

		function gotophone()
		{
			var myindex = document.phoneselectorform.dropdown.selectedIndex
			var myphone = document.phoneselectorform.dropdown.options[myindex].value

			if (myphone == "-1"){
				alert("please select a phone");
			}else{
				if (phoneobj[myphone]=='selectphone'){
					popupCentre('selectphone_'+myphone+'.htm','AccessoryPopup',365,175)
				}else{
					window.location.href = phoneobj[myphone];
				}				
			}
		}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

