// JavaScript Document

theObjects = document.getElementsByTagName("object"); 
for (var i = 0; i < theObjects.length; i++) { 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
}

function show_box (id, status)
{
	var eliment_id = document.getElementById(id);
	eliment_id.style.display = status;
	
	var eliment_id_layer = document.getElementById('content_layer');
	eliment_id_layer.style.display = status;
}

function confirmMsg(cMsg, dURL)
{
	if(confirm(cMsg))
	{
		document.location.href=dURL;
	}
}

function DocumentLoad()
{
	document.login_form['cpun'].focus();
	document.login_form['cpun'].select();
}

function popUp(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=585,left = 285,top = 100');");
}

function update_date(value,id)
{
	var element_id = document.getElementById(id);
	element_id.value = value;
}