// JavaScript Document

function divon(obj){
	obj.style.display = '';
	return false;
}

function divoff(obj){
	obj.style.display = 'none';
	return false;
}	
	

function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}


function popup(URL)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=603,height=600,left = 20,top = 20');");
	
	var x = (screen.availWidth / 2) - (700 / 2);
	var y = ((screen.availHeight - 60) / 2) - (600 / 2);
	x = (x > 0) ? x : 0;
	y = (y > 0) ? y : 0;
	eval("page" + id + ".moveTo("+x+", "+y+")");
	return false;
}


function submitForm(formname){
	document.getElementById(formname).submit();
	return false;
}
