$(document).ready(function(){
	
	$(".t_contentborder tr").hover(function(){
		$(this).addClass("over");
	},function(){
	  $(this).removeClass("over");
	});

	$(".t_contentborder tr:even").addClass("alt");

	$("input").hover(function(){
	  $(this).addClass("border");
	},function(){
	  $(this).removeClass("border");
	});
	
	$("select").hover(function(){
	  $(this).addClass("border");
	},function(){
	  $(this).removeClass("border");
	});
	
	$('input:checkbox').width("16px");
	
	$('.t_contentborder td').css('padding', '0px 0px 0px 3px');
	$('#content').css('min-height', (document.body.clientHeight-210) + "px");
	
	$('.left > img').css('margin', '2px 2px 2px 0px');
	
//	$("a").attr('title').text();
	$("a").attr("title", function() { return this.text; });


	
});

//jQuery(':checked').filter(function(idx){ 
//return (this.name == 'category_type[]');
//}).attr('checked',false); 

function validate(name) {
		$("span").remove(".merror");
		is_error = false;
		var str = false;
		$.each(name, function(i){
			if ($(this).attr("required")=="" && $(this).val()=="") {
				arr = new Array(0);
				var reg=/(.+):/
				arr=reg.exec($("label[for*='" + $(this).attr("id") +"']").text())
				if (arr==null) {
					
				} else {
					var str = arr[1]
	//				_message = "<span class='merror'><strong>" + str + "</strong> is Required</span>"
					_message = "<span class='merror'><strong>&nbsp;</strong></span>"
//					$(this).parent().append(_message);
					$(this).after(_message);
					if (is_error==false) is_error = true;
				}
			}
		});
		
		return (is_error)?false:true;
	}
	
	

