﻿	function switchImg(firstimage,firstsrc){
			if (document.images) {
			document.images[firstimage].src = firstsrc;
			}
		}
		
		function openWin_shop(url)
		{
	 	obj=open(url, "shop_popup", "width=450,height=314,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no")
	 	obj.window.focus()
		}

							
		function initHeader()
		{

		// reset form
			
				document.phoneselectorform.reset();
				updatephone();
				


		}
		
			
							
		// 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 = tmpimagearray[myphone]
					document.phoneselectorimage.src = imageurl;
				}
				
		}
		// 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{
				document.location = phoneobj[myphone];

			}
		}
	    	
	

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

