function messageControl(control)
{
    this.control = control;
    this.dialogue_urls = this.control.content.findName("dialogue_urls");
    this.dialogue_photos = this.control.content.findName("dialogue_photos");
    this.dialogue_message = this.control.content.findName("dialogue_message");
	this.btn_message_accept = this.control.content.findName("btn_message_accept");
   // this.messageInputBase = document.getElementById('message_base');
    this.messageInput = document.getElementById('message_input');
    
	//Functions
    this.btn_message_accept_Press = btn_message_accept_Press;
    
    //Set Cursor
	this.btn_message_accept.cursor = "Hand";
    
	this.btn_message_accept.addEventListener("mouseLeftButtonDown", preserveScope(this, btn_message_accept_Press));
	
}

function openMessageInput(){
	//document.getElementById("message_base").visibility = "visible";
	document.getElementById("message_input").style.visibility = "visible";
	if(SeasonCards.cardItems.message != 'undefined'){
		document.getElementById('message_input').value = SeasonCards.cardItems.message;
	}
}
function btn_message_accept_Press(){
	SeasonCards.cardItems.message = document.getElementById('message_input').value;
	document.getElementById('card_message').value = document.getElementById('message_input').value;
	SeasonCards.changeDialogue("",0);
}



