//<A href="" target="main"></A>
if ( typeof(DOMCreater) == 'undefined' ) DOMCreater = function() {};

// <a href target/>
DOMCreater.createA = function(href,target){
	var a=document.createElement("A");
	if(href!=null)   a.href=href;	
	if(target!=null) a.target=target;	
	return a;
};

//<p></p>
DOMCreater.createP = function () {
	var p = document.createElement("P");
	return p;
};

//<img src="../images/hogehoge.gif" alt="hogehoge" width="52" height="17" />
DOMCreater.createImg = function(src, width, height, alt, border){
	var img=document.createElement("IMG");
	if(src!=null)    img.src=src;
	if(width!=null)  img.width=width;
	if(height!=null) img.height=height;
	if(alt!=null)    img.alt=alt;
	if(border!=null) img.border=border;
	return img;
};
