//2003-07-18 最大化当前窗体
top.window.moveTo(0,0); 
if (document.all)
            {
                 top.window.resizeTo(screen.availWidth,screen.availHeight);
            }
else if (document.layers||document.getElementById)
            {
                 if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
                 {
                     top.window.outerHeight = screen.availHeight;
                     top.window.outerWidth = screen.availWidth;
                 }
}

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

//////////////////////////////////////////////////
 
function fontchuli(){
if ((document.selection)&&(document.selection.type == "Text")) {

var range = document.selection.createRange();
var ch_text=range.text;
range.text = fontbegin + ch_text + fontend;

} 
else {
//alert("请选中文本进行设置");
document.Form1.ExamineBody.value=fontbegin+document.Form1.ExamineBody.value+fontend;
document.Form1.ExamineBody.focus();

}
}


function Cbold() {
fontbegin="[B]";
fontend="[/B]";
fontchuli();
}
function Citalic() {
fontbegin="[I]";
fontend="[/I]";
fontchuli();
}
function Cunder() {
fontbegin="[U]";
fontend="[/U]";
fontchuli();
}
function Ccenter() {
fontbegin="[align=center]";
fontend="[/align]";
fontchuli();
}
function Cleft() {
fontbegin="[align=left]";
fontend="[/align]";
fontchuli();
}
function Cright() {
fontbegin="[align=right]";
fontend="[/align]";
fontchuli();
}

function Cimg() {
fontbegin="[img=0,0]";
fontend="[/img]";
fontchuli();
}

function Cswf() {
fontbegin="[swf=500,200]";
fontend="[/swf]";
fontchuli();
}

function Curl() {
fontbegin="[url=http://]";
fontend="[/url]";
fontchuli();
}
function CSUP() {
fontbegin="[sup]";
fontend="[/sup]";
fontchuli();
}

function showcolor(color){
fontbegin="[color="+color+"]";
fontend="[/color]";
fontchuli();
}

function showSize(size){
fontbegin="[size="+size+"]";
fontend="[/size]";
fontchuli();
}

function showsize(size){
fontbegin="[size=]";
fontend="[/size]";
fontchuli();
}
function Cemail(){
fontbegin="[email=emailµØÖ·]";
fontend="[/email]";
fontchuli();
}


 //打开窗体
 function openWindows(url,w,h)
 {
 var t=(screen.availHeight-h)/2;
 var l=(screen.availWidth -w)/2;
 
 window.open(url,'', ',fullscreen=0,location=no,scrollbars=no,resizable=yes,menubar=no,status=yes,titlebar=no, height='+h+',width='+w+',top='+t+',left='+l,true);

 }
