function changeSubmenu(act){
	window.location='/ChangeSubmenu.asp?sm='+act
}

function chkChngDlr(){
	tstr=frmChngDlrNum_G.mhndn.value;
	tstr = tstr.replace(' ','');
	if(tstr.length==0){
		//alert('Invalid Dealer Number....');
		//frmChngDlrNum_G.mhndn.focus();
		//frmChngDlrNum_G.mhndn.select();
		//return false;
		frmChngDlrNum_G.mhndn.value=aspdealer;
		return true;
	}else{
		if(!isNumber(tstr)){
			alert('Invalid Dealer Number....');
			frmChngDlrNum_G.mhndn.focus();
			frmChngDlrNum_G.mhndn.select();
			return false;
		}else{
			return true;
		}
	}
}
	
function isNumber(str){
	if(str.length==0){ return false }
  		for (j=0; j<str.length; j++) {
 		     if ((str.charAt(j) < "0") || (str.charAt(j) > "9")) { return false }
 		 }
 	return true;
}
	
function flipImg(imgObj,pic){
	imgObj.src=pic;
}

function rMenuLog(obj){
	document.cookie = "FromMenu=" + obj;
}

function emulateDlr(ckObj){
	if (ckObj.checked)
	{
		BackgroundCall('/ChangeSubmenu.asp?em=y');
		//window.location='/ChangeSubmenu.asp?em=y';
	}
	else
	{
		BackgroundCall('/ChangeSubmenu.asp?em=n');
		//window.location='/ChangeSubmenu.asp?em=n';
	}
	window.location.reload(true);
}
