/* formcolor */
jQuery(function($){
	$('.inputform').mouseover(function(){
		$(this).css('background','#fbead7');
		$(this).css('border-color','#f98700');
	});
	$('.inputform').mouseout(function(){
		$(this).css('background','#ffffff');
		$(this).css('border-color','#cccccc');
	});
	$('.inputform').focus(function(){
		$(this).css('background','#ffffff');
		$(this).css('border-color','#cccccc');
	});	
});

/* formbt */
function btnConform(){
	var inputs = document.getElementsByTagName("input");
	for( var i=0,j=inputs.length; i<j; i++){
		var btn = inputs[i]; 
		if(btn.getAttribute("class") == "input_btn"){
			btn.onmouseover = function(){
				this.style.backgroundPosition = 'left -20px';
				return false;
			}
			btn.onmouseout = function(){
				this.style.backgroundPosition = 'left top';
				return false;
			}
		}
		if(btn.getAttribute("className") == "input_btn"){
			btn.onmouseover = function(){
				this.style.backgroundPosition = 'left -20px';
				return false;
			}
			btn.onmouseout = function(){
				this.style.backgroundPosition = 'left top';
				return false;
			}
		}
	}
}

window.onload = btnConform;
