function CreateText(name,parentDiv,x,y,width,height,position,fontsize,font,align,forecolor,text){
	var i;
	i = myArray.length;
	myArray[i]=new TextCaption;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(align){myArray[i].align = align}
	if(text){myArray[i].text = text}
	if(forecolor){myArray[i].forecolor = forecolor}
	if(font){myArray[i].font = font}
	if(fontsize){myArray[i].fontsize = fontsize}
	myArray[i].BuildMe();
}

function CreateTextButton(name,parentDiv,x,y,width,height,position,fontsize,font,align,offcolor,oncolor,text,javarun){
	var i;
	i = myArray.length;
	myArray[i] = new TextButton;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(align){myArray[i].align = align}
	if(text){myArray[i].text = text}
	if(javarun){myArray[i].javarun = javarun}
	if(offcolor){myArray[i].offcolor = offcolor}
	if(oncolor){myArray[i].oncolor = oncolor}
	if(font){myArray[i].font = font}
	if(fontsize){myArray[i].fontsize = fontsize}
	myArray[i].BuildMe();
}


function CreateTextBox(name,parentDiv,x,y,width,height,position,fontsize,font,bordercolor,fontcolor,htmlname,inputtype,defaulttext){
	var i;
	i = myArray.length;
	myArray[i] = new TextBox;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(fontsize){myArray[i].fontsize = fontsize}
	if(font){myArray[i].font = font}
	if(bordercolor){myArray[i].bordercolor = bordercolor}
	if(fontcolor){myArray[i].fontcolor = fontcolor}
	if(htmlname){myArray[i].htmlname = htmlname}
	if(inputtype){myArray[i].inputtype = inputtype}
	if(defaulttext){myArray[i].defaulttext = defaulttext}
	myArray[i].BuildMe();
}


function CreateBorder(name,parentDiv,x,y,width,height,position,borderwidth,borderheight,topleftimage,topimage,toprightimage,leftimage,middleimage,rightimage,bottomleftimage,bottomimage,bottomrightimage){
	var i;
	i = myArray.length;
	myArray[i] = new FancyBorder;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(borderwidth){myArray[i].borderwidth = borderwidth}
	if(borderheight){myArray[i].borderheight = borderheight}
	if(topleftimage){myArray[i].topleftimage = topleftimage}
	if(topimage){myArray[i].topimage = topimage}
	if(toprightimage){myArray[i].toprightimage = toprightimage}
	if(leftimage){myArray[i].leftimage = leftimage}
	if(middleimage){myArray[i].middleimage = middleimage}
	if(rightimage){myArray[i].rightimage = rightimage}
	if(bottomleftimage){myArray[i].bottomleftimage = bottomleftimage}
	if(bottomimage){myArray[i].bottomimage = bottomimage}
	if(bottomrightimage){myArray[i].bottomrightimage = bottomrightimage}
	myArray[i].BuildMe();
}

function CreateLine(name,parentDiv,x,y,width,height,position,borderwidth,leftimage,middleimage,rightimage){
	var i;
	i = myArray.length;
	myArray[i] = new FancyLine;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(borderwidth){myArray[i].borderwidth = borderwidth}
	if(leftimage){myArray[i].leftimage = leftimage}
	if(middleimage){myArray[i].middleimage = middleimage}
	if(rightimage){myArray[i].rightimage = rightimage}
	myArray[i].BuildMe();
}

function CreateTab(name,parentDiv,x,y,width,height,position,borderwidth,inactiveleftimage,inactivemiddleimage,inactiverightimage,activeleftimage,activemiddleimage,activerightimage,isactive,fontcolor,font,fontsize,text){
	var i;
	i = myArray.length;
	myArray[i] = new FancyTab;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(borderwidth){myArray[i].borderwidth = borderwidth}
	if(inactiveleftimage){myArray[i].inactiveleftimage = inactiveleftimage}
	if(inactivemiddleimage){myArray[i].inactivemiddleimage = inactivemiddleimage}
	if(inactiverightimage){myArray[i].inactiverightimage = inactiverightimage}
	if(activeleftimage){myArray[i].activeleftimage = activeleftimage}
	if(activemiddleimage){myArray[i].activemiddleimage = activemiddleimage}
	if(activerightimage){myArray[i].activerightimage = activerightimage}
	if(isactive){myArray[i].isactive = isactive}
	if(fontcolor){myArray[i].fontcolor = fontcolor}
	if(font){myArray[i].font = font}
	if(fontsize){myArray[i].fontsize = fontsize}
	if(text){myArray[i].text = text}
	myArray[i].BuildMe();
}

function CreateImage(name,parentDiv,x,y,width,height,position,image,cursor){
	var i;
	i = myArray.length;
	myArray[i] = new FancyImage;
	myArray[i].index = i;
	if(name){myArray[i].name = name}
	if(parentDiv){myArray[i].parentDiv = parentDiv}
	if(x){myArray[i].x = x}
	if(y){myArray[i].y = y}
	if(width){myArray[i].width = width}
	if(height){myArray[i].height = height}
	if(position){myArray[i].position = position}
	if(image){myArray[i].image = image}
	if(cursor){myArray[i].cursor = cursor}
	myArray[i].BuildMe();
}

