/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function resetSubmitBtn()
{
	
}

function resetMsgContainer()
{
	jQuery('#msg_container').hide();
}
function showAlertMsg(msg)
{
	alert(msg);
	return false;
}
function source2url(url)
{
	url += '&source=' + escape(window.location.href);
	window.location = url;
	return false;
}

function showConfirm(msg)
{
	if (confirm(msg))
	{
		return true;
	}
	return false;
}


function showErrorMsg(msg, msgcontainer_id)
{
	if (msgcontainer_id == '')
		msgcontainer_id = 'msg_container';
	var msg_container = document.getElementById(msgcontainer_id);
	if (msg_container)
	{
		msg_container.className = 'notice_box';
		msg_container.innerHTML = msg;
		jQuery('#'+msgcontainer_id).show("slow");
	}
	resetSubmitBtn();
}


