/**
 * @author chuzheng
 */
$(function(){
	     //去掉提交、链接和普通按钮的虚线
		 $('a,input:submit,input:button').bind('focus', function()
				{
 					if (this.blur)
					{ //如果支持 this.blur
 						this.blur();
 					}
 				}); 
				
	  	//去掉radio边框
			$("input:radio,input:checkbox").css({
				"border": "none"
			});
			$("input:radio").css({
				"margin-right": "5px"
			});
	    //高亮当前输入框
		   $("input:text,input:password,textarea").focus(function(){$(this).addClass("highlight_input");});
		   $("input:text,input:password,textarea").blur(function(){$(this).removeClass("highlight_input");});
		   
	
	
	  
});

//输出提示信息
function Poping(content,success,redirect) {
			$("body").append("<div id='dialog-message' title='提示'></div>");
			if(success){
			$("#dialog-message").html("<span>"+content+"</span>");
			}
			else{
			$("#dialog-message").html("<span class=\"worong\">"+content+"</span>");
				}
			$("#dialog-message").dialog({
			bgiframe: true,
		    resizable: false,
			modal:true,
			// open: function(){setTimeout("$('#dialog-message').dialog('close');",9000);},
			buttons: {
				确认: function() {
				$(this).dialog('close');
				if(redirect!=null && redirect!="")
				location.href=redirect;
				}
			}
		});
	};
