	window.name="messages";

	/*
	inbox_off = new Image();
	inbox_on = new Image();
	inbox_down = new Image();
	inbox_off.src = "images/btn_inbox_off.gif";
	inbox_on.src = "images/btn_inbox_on.gif";
	inbox_down.src = "images/btn_inbox_down.gif";

	compose_off = new Image();
	compose_on = new Image();
	compose_down = new Image();
	compose_off.src = "images/btn_compose_off.gif";
	compose_on.src = "images/btn_compose_on.gif";
	compose_down.src = "images/btn_compose_down.gif";

	addresses_off = new Image();
	addresses_on = new Image();
	addresses_down = new Image();
	addresses_off.src = "images/btn_addresses_off.gif";
	addresses_on.src = "images/btn_addresses_on.gif";
	addresses_down.src = "images/btn_addresses_down.gif";
*/
	function daRoll(disname, datname){
		eval("document."+disname+".src = "+disname+"_"+datname+".src");
	}

	function touppPop(pp){
		if (arguments.length == 1) window.open('/sitewide/mtvinfo/privacy.jhtml','Privacy','width=605,height=400,resizable,scrollbars');
		else window.open('/sitewide/mtvinfo/terms.jhtml','TOS','width=605,height=400,resizable,scrollbars');
	}

	function formFunc(act){
		switch(act){
			case "delete":
				msg="The selected message(s) will be deleted.";
				break;
			case "DELETE_MESSAGE":
				msg="The selected message(s) will be deleted.";
				break;
			case "DELETE_ADDRESS":
				msg="The selected name(s) will be deleted.";
				break;
			case "block":
				msg="The selected member name(s) will be added to your Block list and will not be able to send you messages in the future.";
				break;
			case "BLOCK_SENDER":
				msg="The selected member name(s) will be added to your Block list and will not be able to send you messages in the future.";
				break;
			case "unblock":
				msg="The selected member name(s) will be removed from your block list, and will be able to send you messages in the future.";
				break;
			case "SAVE_ADDRESS":
				msg=arguments[1]+" will be added to your Address Book.";
				break;
			case "IMPORT_USERS":
				msg="Your favorite users will be imported into your address book.";
				break;
			case "RESET_MESSAGES":
				msg="This will set your messages to new.";
				break;
			case "RESET_BROADCAST":
				msg="This will set your broadcast messages to unread.";
				break;
		}
		confirmed = confirm(msg);
		if(confirmed){
			if(arguments.length > 1 && !isNaN(arguments[arguments.length - 1])){
				return true;
			}
			else{
				document.daForm.submit_action.value = act;
				//alert("submit_action?="+document.daForm.submit_action.value);
				document.daForm.submit();
			}
		}
		else if(arguments.length > 1 && !isNaN(arguments[arguments.length - 1])){
			return false;
		}
	}