function $(id) {
	return document.getElementById(id);
}
function updateseccode() {
	var rand = Math.random();
	$('seccodeimage').innerHTML = '<img id="seccode" onclick="updateseccode()" src="' + blogurl + 'seccode.php?update=' + rand + '" class="codeimg" alt="单击图片换张图片" />';
}
function runEx(cod1)     {
         cod=document.all(cod1)
          var code=cod.value;
          if (code!=""){
               var newwin=window.open('','','');     
               newwin.opener = null 
               newwin.document.write(code);     
               newwin.document.close();
     }
}
function doCopy(ID) { 
    textRange = ID.createTextRange(); 
    textRange.execCommand("Copy"); 
} 