	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 = "../../co/hellomoto/assets/image/phoneselector/";

		firstpartofimagename = "";

		phoneobj = {			"phonefan"		:	"http://commerce.motorola.com/consumer/QWhtml/phone_comp.html",
						"V70"			:	"http://www.motorola.com/content/0,,1299,00.html",
						"V60"			:	"http://www.motorola.com/co/pcs/v60/v60.html",
						"V60i"			:	"http://www.motorola.com/content/0,,1265,00.html",
						"T720"			:	"http://www.motorola.com/content/0,,1255,00.html",
						"T720i"			:	"http://www.motorola.com/content/0,,1255,00.html",
						"V66"			:	"http://www.motorola.com/content/0,,1182,00.html",
						"A388"			:	"http://www.motorola.com/cr/pcs/productos/a388car.html",
						"C331"			:	"c330_home.htm",
						"C332"			:	"c330_home.htm",
						"C333"			:	"c330_home.htm",
						"120"			:	"http://www.motorola.com/co/pcs/v120t/index.html"
					};// 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("Por favor, selecciona un teléfono");
			}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);
}

