/* =====================================
 * ユーティリティ
 * Version	1.0.3
 * Update	2009-11-21
===================================== */

var fwsLibrary = function() {};

fwsLibrary.prototype = {

load: function(obj, func) {
	var style = new fwsStyle();
	var message = new fwsMessage();
	var button = new fwsButton();
	var form = new fwsForm();

	if(func) {
		if(window.addEventListener) {
			window.addEventListener("load", eval(obj + "." + func), false);
		} else if (window.attachEvent) {
			window.attachEvent("onload", eval(obj + "." + func));
		}
	} else {
		if(window.addEventListener) {
			window.addEventListener("load", eval(obj), false);
		} else if (window.attachEvent) {
			window.attachEvent("onload", eval(obj));
		}
	}
}

};


// =============================================================================

var fwsEvent = {

get: function(event) {
	var e;
	if(event) {
		e = event.target;
	} else {
		e = window.event.srcElement;
	}
	return e;
}

};


// =============================================================================

add_pram = function(obj, tag, type, name, value) {
	var pram = window.document.createElement(tag);
	pram.setAttribute("type", type);
	pram.setAttribute("name", name);
	pram.setAttribute("value", value);
	obj.appendChild(pram);
}


// =============================================================================

