<!--

function openScript(url, width, height) {
        var Win = window.open(url,'_blank','width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}


//share js------------------------------------------------------//
function popwin_path_id(path,id)
{ window.open(path+"?id="+id,"","height=400,width=750,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}



//share js------------------------------------------------------//
function openwin(Url)
{
  msgwin=window.open(Url,"msg","left=0,top=0,width=750,height=300,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
  msgwin.focus();
	return;
}

//share js------------------------------------------------------//
function js_callpage(url) {
 var newwin=window.open(url,"homeWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=280");
return false;
}


//reloads the window if Nav4 resized-----------------------------//
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


//mouseover note ------------------------------------------------//
function foon(idn) 
{ 
idn.style.visibility="visible" 
idn.style.position="absolute" 
idn.style.left=event.clientX+15 
idn.style.top=event.clientY-10 
} 
function hidefoon(idn) 
{ 
idn.style.visibility="hidden" 
} 

function openwindow(url) {
   window.open(url,'new','resizable=1,scrollbars=yes,menubar=no,status=yes,width=650,height=550');
    }


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



//start of czt_program
function czt_selected_add() {
czt_selected_object=document.selection.createRange();
czt_selected_word=czt_selected_object.text;
if(czt_selected_word!='')
	{
	czt_selected_word=czt_replace_word(czt_selected_word,'&',"[＆]");
	czt_selected_word=czt_replace_word(czt_selected_word,'?',"[？]");
	czt_selected_word=czt_replace_word(czt_selected_word,':',"[：]");
	czt_selected_word=czt_replace_word(czt_selected_word,'#',"[＃]");
	czt_selected_word=czt_replace_word(czt_selected_word,'\n',"<br>");

	document.frames['favorityframe'].favorityform.favority.value=czt_selected_word ;
	document.frames['favorityframe'].favorityform.submit() ;


//	  document.frames['favorityframe'].location.replace('/favority/cool_copy_add.asp?favority='+czt_selected_word);
	}
	else
	{
	  alert('请用鼠标选定要复制的部分，然后再点击这里。')
	}
}


function czt_replace_word(selected_word,filter_key,replace_key)
  {
        var checkStr ;
        var checkKey ;
        var replaceKey ;
        var tmp_word = "" ;
        checkStr = selected_word ;
        checkKey = filter_key ;
        replaceKey = replace_key ;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		if (ch != checkKey)
		    {
		    	 tmp_word = tmp_word + ch ;
		     }
		else
		    {
		    	 tmp_word = tmp_word + replaceKey ;
		    }
	}
    return(tmp_word) ;
   }



//end of czt_program
function openwindow(url) {
   window.open(url,'new','resizable=1,scrollbars=yes,menubar=no,status=yes,width=800,height=600');
    }

function over() {
    window.event.srcElement.style.filter = "alpha(opacity=100)";
}

function out() {
    window.event.srcElement.style.filter = "alpha(opacity=90)";
}

function ReplaceChar(str)
{
	str=str.replace(/;/g,"；");
	str=str.replace(/:/g,"：");
	str=str.replace(/-/g,"—");
	str=str.replace(/'/g,"‘");
	str=str.replace("<script","< script");
	return str;	
}

//-->