// JavaScript Document

String.prototype.trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); }

function loadPage(url, parameters)
{
	self.location = url + "?" + parameters;
}

function popupPage(url, parameters, width, height, objectName)
{
	var ct = new Date();
	if (typeof objectName == 'undefined') var objectName = 'openWindow_' + ct.getHours() + '_' + ct.getMinutes() + '_' + ct.getSeconds() + '_' + ct.getMilliseconds();
	var win_file 		= url + "?" + parameters;
	var win_option		= "menubar=no,status=no,location=no,toolbar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",left=10,top=10";
	var object_window 	= window.open(win_file,objectName,win_option);
}