function clearInput(el, default_val) {
	if (el.value == default_val)
		el.value = "";
}

function fillInput(el, default_val) {
	if (el.value == "")
		el.value = default_val;
}

function makePassword(el) {
	if(navigator.appName.match("Explorer"))
	{
		$passDiv = document.getElementById("passContain");
		$passDiv.innerHTML = '<input type="password" id="login_password" name="login_password" class="formTxt" value="password" maxlength="255" onfocus="clearPassword(this);" />';
		window.setTimeout("document.getElementById('login_password').focus()",1);
	}
	else
	{
		el.type = "password";
	}

}

function popup_memo_close(id) {
	el = document.getElementById(id);
	if (el) {
		el.style.display = 'none';
	}
}

function popup_memo_closeall(name, num) {
	for (x = 0; x <= num; x++) {
		el = document.getElementById(name + x);
		if (el) {
			el.style.display = 'none';
		}
	}
}