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_show){
	if(tab_num_show=='1'){
		$("#DivTab1").removeClass("inactive_right_panel");
		$("#DivTab1").addClass("active_right_panel");
		$("#DivTab2").removeClass("active_right_panel");
		$("#DivTab2").addClass("inactive_right_panel");
		$("#tabletab2").hide();
		$("#tabletab1").show();
	}
	if(tab_num_show=='2'){
		$("#DivTab2").removeClass("inactive_right_panel");
		$("#DivTab2").addClass("active_right_panel");
		$("#DivTab1").removeClass("active_right_panel");		
		$("#DivTab1").addClass("inactive_right_panel");		
		$("#tabletab1").hide();
		$("#tabletab2").show();
	}
}

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);
		
	}
