function set_innerhtml(id,val)
{
	document.getElementById(id).innerHTML = val;
}

function set_class(id,val){
	document.getElementById(id).className = val;
}


/*
 * top, left
 */
  
function set_top(id,val){
	document.getElementById(id).style.top = val + 'px';
}

function get_top(id){
	val = document.getElementById(id).style.top;
	return parseInt(val.substr(0,val.length - 2));
}

function set_left(id,val){
	document.getElementById(id).style.left = val + 'px';
}

function get_left(id){
	val = document.getElementById(id).style.left;
	return parseInt(val.substr(0,val.length - 2));
}

function set_right(id,val){
	document.getElementById(id).style.right = val + 'px';
}

function get_right(id){
	val = document.getElementById(id).style.right;
	return parseInt(val.substr(0,val.length - 2));
}

function set_bottom(id,val){
	document.getElementById(id).style.bottom = val + 'px';
}

function get_bottom(id){
	val = document.getElementById(id).style.bottom;
	return parseInt(val.substr(0,val.length - 2));
}

function set_margin_left(id,val){
	document.getElementById(id).style.marginLeft = val + 'px';
}

function set_padding_left(id,val){
	document.getElementById(id).style.paddingLeft = val + 'px';
}

/*
 * width, height
 */
function set_width(id,val){
	document.getElementById(id).style.width = val + 'px';
}

function get_width(id){
	val = document.getElementById(id).style.width;
	return parseInt(val.substr(0,val.length - 2));
}

function set_height(id,val){
	document.getElementById(id).style.height = val + 'px';
}

function get_height(id){
	val = document.getElementById(id).style.height;
	return parseInt(val.substr(0,val.length - 2));
}

/*
 * z-index, opacity
 */
function set_zindex(id,val){
	document.getElementById(id).style.zIndex = val;
}

function set_opacity(id,val){
	document.getElementById(id).style.opacity = val;
	document.getElementById(id).style.filter = 'alpha(opacity=' + (val * 100) + ')';
}

/*
 * display
 */
function set_display(id,val){
	document.getElementById(id).style.display = val;
}

function get_display(id){
	return document.getElementById(id).style.display;
}

/*
 * color, background-color...
 */
function set_background_color(id,val)
{
	document.getElementById(id).style.backgroundColor = val;
}
