function yzmcodeaa(){ 
document.getElementById('safecode').innerHTML = "<a style='cursor:pointer;' onclick='yzmcodeaa();'><img src='admin/GetCode.asp?' /></a>" 
}
//---------------------------------
function onShowtemt(){			
	if (document.getElementById('d_titface').value != ''){
		document.getElementById('showtemt').innerHTML='<img src=\"images\/gbooktemt\/' + document.getElementById('d_titface').value + '" />';}
	else{
		document.getElementById('showtemt').innerHTML='';
	}
} 
//跳转页面显示
function ad_cutPage(url,TotalPage,PageIndex,detNum,pagePaName){
	document.write("<form onsubmit=\"return false;\"><a class=\'MultiPages\'>"+PageIndex+"/"+TotalPage+"</a>");
	var showLend;
	var Biaozhun;
	Biaozhun = parseInt(detNum / 2);
	if(url.indexOf("?")==(-1)){
			showLend="?";
	}
	else
	{
			showLend="&";
	}
	if (PageIndex<(Biaozhun + 1)) {
		PageLong=detNum + 1 -PageIndex;
	}
	else
		if (TotalPage-PageIndex<(Biaozhun + 1)) {
			PageLong= detNum -(TotalPage-PageIndex)
		}
		else {
			PageLong=Biaozhun;
		}
	for (var i=1; i <= TotalPage; i++) {
		if (i < PageIndex+PageLong && i > PageIndex-PageLong || i==1 || i==TotalPage){
			if (PageIndex==i) {
				document.write("<a class=curpage>"+ i +"</a>");
			}
			else {
				document.write("<a class=uncurpage href="+url+showLend+""+ pagePaName +"="+i+">"+ i +"</a>");
			}
		}
	}
	document.write("<input onkeydown=if((event.keyCode==13)&&(this.value!=''))window.location=\""+url+showLend+pagePaName+"=\"+this.value+\"\"; onkeyup=if(isNaN(this.value))this.value='' class=PageInput></form>");
}

function showflash(swfurl,swfwidth,swfheight,sValue){
        document.writeln("<object id=\"FlashID\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+ swfwidth +"\" height=\""+ swfheight +"\">");
        document.writeln("  <param name=\"movie\" value=\""+ swfurl +"\" />");
        document.writeln("  <param name=\"quality\" value=\"high\" />");
        document.writeln("  <param name=\"wmode\" value=\""+ sValue +"\" />");
        document.writeln("  <param name=\"swfversion\" value=\"8.0.35.0\" />");
        document.writeln("  <!--[if !IE]>-->");
        document.writeln("  <object type=\"application/x-shockwave-flash\" data=\""+ swfurl +"\" width=\""+ swfwidth +"\" height=\""+ swfheight +"\">");
        document.writeln("    <param name=\"quality\" value=\"high\" />");
        document.writeln("    <param name=\"wmode\" value=\""+ sValue +"\" />");
        document.writeln("    <param name=\"swfversion\" value=\"8.0.35.0\" />");
        document.writeln("  </object>");
        document.writeln("  <!--<![endif]-->            ");
        document.writeln("</object> ");
}


// 修复 IE 下 PNG 图片不能透明显示的问题
// 修复 IE 下 PNG 图片不能透明显示的问题 
function fixPNG(myImage) 
{ 
var arVersion = navigator.appVersion.split("MSIE"); 
var version = parseFloat(arVersion[1]); 
if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
{ 
var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""; 
var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""; 
var imgTitle = (myImage.title) ? "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "; 
var imgStyle = "display:inline-block;" + myImage.style.cssText; 
var strNewHTML = "<span " + imgID + imgClass + imgTitle 
+ " style=\"" + "width:" + myImage.width 
+ "px; height:" + myImage.height 
+ "px;" + imgStyle + ";" 
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
+ "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"; 
myImage.outerHTML = strNewHTML; 
} 
} 
