function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
/*
old one
function tab(tab_num){
	for(i=1;i<=4;i++) {
		if(i == tab_num) {
			tab_name = "tab"+i;
			document.getElementById(tab_name).style.display = "block";
		} else {
			tab_name = "tab"+i;
			document.getElementById(tab_name).style.display = "none";
		}
	}
}*/


function LeftPannel_tab(tab_num,image_id){
	var images = new Array(2);
	images[1]='top_sellerys';
	images[2]='recently_added';
	/*images[3]='new_release';
	images[4]='outlet';*/
	
	for(i=1;i<=2;i++) {		
		if(i == tab_num) {
			tab_name = "DivTab"+i;
			div_name = "tabletab"+i;
			document.getElementById(tab_name).innerHTML='<img src=images/'+image_id+'_activ.gif >';
			document.getElementById(div_name).style.display = "block";
		} else {
			tab_name = "DivTab"+i;
			div_name = "tabletab"+i;
			var items=images[i];
			document.getElementById(tab_name).innerHTML='<img src=images/'+items+'.gif>';
			document.getElementById(div_name).style.display = "none";
		}
	}
}

function mainMenu(){
	document.getElementById('about_inactive').style.diaplay='none';
	document.getElementById('about_active').style.diaplay='inline';
	document.window.location='PowerChairs-2.htm';
}


function comparefunction(cnt)
	{
		
		var i;
		var chkvalue;
		var chkobj;
		var chkid;
		var chkstring;
		chkstring="";
		for(i=1;i<=cnt;i++)
		{
			
			chkid="compare_"+i;
			
			
			chkobj=document.getElementById(chkid);
	       // alert(chkobj);
			if(chkobj.checked)
			{
				chkvalue=chkobj.value;
				chkobj.value='';
				if(chkstring=="")
					chkstring=chkvalue;
				else
					chkstring=chkstring+","+chkvalue;
			}
		}
		
          document.getElementById("chkstring").value=chkstring;
          alert(document.getElementById("chkstring").value);
		//document.frm_product_list.chkstring.value=chkstring;
		document.frm_product_list.submit();
	}
// this function shows the pop-up when user moves the mouse over the link
	function ShowPopup(msg)
	{
		var e = window.event;

		obj = getElemRef(msg)
		/*x = e.clientX + document.body.scrollLeft; // get the mouse left position
		y = e.clientY + document.body.scrollTop; //  + 35 get the mouse top position */
		obj.style.display="block"; // display the pop-up
		/*obj.style.left = x; // set the pop-up's left
		obj.style.top = y; // set the pop-up's top*/
	}
	// this function hides the pop-up when user moves the mouse out of the link
	function HidePopup(msg)
	{
		
		obj = getElemRef(msg)
		
		obj.style.display="none"; // hide the pop-up
	}

	function getElemRef(id)
	{
		var el = (document.getElementById)? document.getElementById(id):(document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
		return el;
	}
	function myfun(){
		alert(document.myform.mytext.value);
		
	}
