var elm_input;
var elm_inputb;

function input_over(id, state) {
	if ( elm_input != id ) {
		if ( state == true ) {
			id.style.border = '1px solid #666666';
		} else {
			id.style.border = '1px solid #C7C7C7';
		}
	}
}

function input_active(id, state) {
	if ( state == true ) {
		elm_input = id;
		id.style.border = '1px solid #a1c7ff';
		id.style.backgroundImage = 'url(/8inc/shop/' + id.type + '_active.gif)';
	} else {
		elm_input = null;
		id.style.backgroundImage = 'url(/8inc/shop/' + id.type + '_normal.gif)';
		id.style.border = '1px solid #C7C7C7';
	}
}

function inputb_over(id, state,image) {
	if ( elm_input != id ) {
		if ( state == true ) {
			id.style.backgroundImage = 'url(\'/8shop/gfx/takkar/' + image + '_2.gif\')';
		} else {
			id.style.backgroundImage = 'url(\'/8shop/gfx/takkar/' + image + '_1.gif\')';
		}
	}
}

function inputf_active(id, state,image) {
	if ( state == true ) {
		elm_inputb = id;
		id.style.backgroundImage = 'url(\'' + image + '_3.gif\')';
	} else {
		elm_inputb = null;
		id.style.backgroundImage = 'url(\'' + image + '_1.gif\')';
	}
}

function inputb_over(id, state,image) {
        if ( elm_input != id ) {
                if ( state == true ) {
                        id.style.backgroundImage = 'url(\'/8shop/gfx/takkar/' + image + '_2.gif\')';
                } else {
                        id.style.backgroundImage = 'url(\'/8shop/gfx/takkar/' + image + '_1.gif\')';
                }
        }
}
function inputf_over(id, state,image) {
        if ( elm_input != id ) {
                if ( state == true ) {
                        id.style.backgroundImage = 'url(\'' + image + '_2.gif\')';
                } else {
                        id.style.backgroundImage = 'url(\'' + image + '_1.gif\')';
                }
        }
}

