function newcenterWindow(mypage, myname, w, h, scroll, resize, status){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+',status='+status;
	win = window.open(mypage, myname, winprops);
	if(parseInt(navigator.appVersion) >= 4){
		win.window.focus();
	} 
}

function confirmwatermark(){
	var info = window.confirm('你要將你上傳的圖片加入極速禁地浮水印嗎?');
	if (!info) {
		newcenterWindow('bbs_user_upload2.php?watermark=0','bbs_user_upload','680','150','YES','YES','NO');
	} else {
		newcenterWindow('bbs_user_upload2.php?watermark=1','bbs_user_upload','680','150','YES','YES','NO');
	}	
}

function confirm_del_bbs_re(){
	document.getElementById('del_bbs_re_button').disabled = true; 
	var info = window.confirm('你確定要刪除本篇回覆文章?');
	if (info) {
		return true;
	} else {
		document.getElementById('del_bbs_re_button').disabled = false; 
		return false;
	}
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}
