on writeDate(fra,data){
fra.document.close();
fra.document.write(data);
fra.document.close();
}
/*
* 切换浏览模式
*/
function changeModel(n,flag){
var _dm=parseInt(n);
document.getElementById("Img_modelBtn").style.pixelTop=_dm*(-15);
var d = document.getElementById("editBox");
var g = document.getElementById("fraGeneral");
var p = document.getElementById("fraPreview");
var gd= document.frames.fraGeneral.document;
var pd= document.frames.fraPreview.document;
var c = document.getElementById("cbHead");
switch(_dm){
case 0: //普通
d.style.display = "none";
g.style.display = "";
p.style.display = "none";
c.style.display = "";
if(flag==true){
writeDate(document.frames.fraGeneral,d.innerText);
}
break;
case 1: //HTML
d.style.display = "";
g.style.display = "none";
p.style.display = "none";
c.style.display = "none";
if(flag==true){
d.innerText = gd.documentElement.outerHTML;
}
break;
case 2: //浏览
d.style.display = "none";
g.style.display =