
;(function($) {
    //我是討厭的小圓角
    $(function() {    
        $(".panel").corner("round 8px");
        $(".panelMod").corner("round 8px");
        $(".panelModInner").corner("round 8px");
    });
})(jQuery);

//openwin
function openwin(src, w_name, w_width, w_height, w_opt)
{
	if(!w_opt)    w_opt    = 'resizable=1,scrollbars=1';

	if(!w_width)  w_width  = 700;
	if(!w_height) w_height = 500;

	w_opt += ',width='+w_width+',height='+w_height;

	if(typeof(screen) != 'undefined')
	{
		w_left   = parseInt((screen.width-w_width)/2);
		w_top    = parseInt((screen.height-w_height)/2);

		w_opt += ',left='+w_left+',top='+w_top;
	}

	wobj = window.open(src, w_name, w_opt);
	wobj.focus();

	return wobj;
}

var loadDefaultImage = function(imgObj,imgSrc){
    imgObj.src = imgSrc;
}
