<!--
function initDate(){
var date = new Date();
var curYear=date.getYear();
var curMonth=date.getMonth()+1;
var curDate=date.getDate();
var strDate=curYear +"-"+ curMonth +"-"+ curDate;
document.getElementById("txtDate").value=strDate;
}
//-->
<!--
var oSize = 0 ;
var frame = 1;
var vice_17 =  1;//我是花邊

function uploadimage(){
document.all.divResult_klcintw.innerHTML = "<div align=center width=60%><fieldset class='fieldset' ><legend style='color: #22229C; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; font-family: tahoma'>免費上傳圖檔至QImage</legend><form action='http://www.qqbye.com' method='post' enctype='multipart/form-data' target='_blank'><font size='2' face='Verdana' color='#808080'>上傳之後 複製Direct link to image欄的圖片連結</font><br /><input type='hidden' name='MAX_FILE_SIZE' value='1048576'><input type='hidden' name='aff' value=''><input type='hidden' name='type' value='blank'><input type='hidden' name='where' value='iframe'><input class=inin type='file' class='textfield' name='fileupload' size='30'><input class=push1 type='submit' value='上傳圖片'></form></fieldset></div>";
}

function uploadimage1(){
document.all.divResult_klcintw.innerHTML = "<iframe id=yo mame=yo src=http://www.qqbye.com width=801 height=410 frameborder=0 scrolling=no></iframe>";
}

function uploadimage2(){
document.all.divResult_klcintw.innerHTML = "<iframe id=yo mame=yo src=http://www.qqbye.com width=801 height=410 frameborder=0 scrolling=no></iframe>";
}


function PVP(){
var ox = document.all.yo.T1.value;
//var ix = ox.all.T1.value;
document.all.PXP.innerHTML = ox;
}

function ppd(pp){
pp.style.backgroundColor="#FFFFFF";
}
function ppd2(pp){
pp.style.backgroundColor="#F3F8FC";
}

function vice(vivi){//我是副選項


	if ( vivi==18 ) {
	//花邊
	document.getElementById("viceopt1").style.display ="block";
	//IE..//document.getElementById("viceopt").innerHTML = "<font style='background-color:#FFFF99' color=black>样式设定</font>：<input type='radio' value='0' CHECKED name='ui' id='ui' onclick='btnFunc1_onclick();'>紅花<input type='radio' value='1' name='ui' id='ui' onclick='btnFunc1_onclick();'>藍花<input type='radio' value='2' name='ui' id='ui' onclick='btnFunc1_onclick();'>紅&籃<input type='radio' value='3' name='ui' id='ui' onclick='btnFunc1_onclick();'>桔色</font>";
	}else{
	document.getElementById("viceopt1").style.display ="none";
	//document.getElementById("viceopt").innerHTML = "";
	}

}

function imgOrg_onload(img) {
	var src   = img.src;  //document.all.imgOrg.src; 
	var width = img.width;//document.all.imgOrg.width;
	var height = img.height;//document.all.imgOrg.height;
	var html = "";
	var html_pre = "";
	//var vicerad = document.all.radUI;
	
	if(oSize == 0){
	document.all.txtWidth.value = img.width;
	document.all.txtHeight.value = img.height;
	}
	
	if(document.all.txtWidth.value != "" && document.all.txtHeight.value != "")	{ 
	//自訂照片大小
	width = document.all.txtWidth.value;
	height = document.all.txtHeight.value;
	oSize = 1;
	}
	
	//var rads = document.all.radType;
	if ( frame==1 ) {
		// 拍立得
		var width_20 = parseInt(width,10)+20;
		html = "<div style='width:"+width_20+"px; border-width:1px 2px 2px 1px; border-style:solid; border-color:black; background:white;'><div style='border-width:10px 10px 20px 10px; border-style:solid; border-color:white; overflow:visible;'><div style='border:1px solid #999999;overflow:visible;'>";
		html += "<img src='"+src+"' width='"+width+"px'>";
		html += "</div><div style='height:4px;overflow:hidden'></div><div style='font:8pt/180% verdana;letter-spacing:1px;color:#999999;text-align:right'>"+document.all.txtDescription.value+"<br>"+document.all.txtDate.value+"<br>"+document.all.txtAuthor.value+"</div></div></div></div>";
	} // if
	else if ( frame==2 ) {
		// 相框
		var width_oo4 = parseInt(width,10)+10;var height_oo4 = parseInt(height,10)+10;
		var width_oo5 = parseInt(width,10)+8;var height_oo5 = parseInt(height,10)+8;
		html = "<div style='width:"+width_oo4 +"px;height:"+height_oo4 +"px ;border:1px solid #999;background-color:white;'><div style='width="+width_oo5+"px;height:"+height_oo5+"px;border:4px solid #FFFFFF;'><img src='"+src+"' width='"+width+"px' height='"+height+"px'></div></div>";
	} // else if
	else if ( frame==3 ) {
		// 相框(+PNG陰影)
		var width_16 = parseInt(width,10)+16;
		var width_9 = parseInt(width,10)+9;
		var height_4 = parseInt(height,10)+4;
		var height_10 = parseInt(height,10)+10;
		html = "<div style='width:"+width_16+"px;height:"+height_10+"px ;'><div style='border:1px solid #999; float:left;LETTER-SPACING: 2px;LINE-HEIGHT: 20px;overflow:visible;;background:white;'><div style='border:4px solid #FFFFFF;LETTER-SPACING: 2px;LINE-HEIGHT: 20px;overflow:visible; background:white;'><img src='"+src+"' width='"+width+"px' height='"+height+"px'></div></div><div style='float:left;overflow:hidden;width=6px;'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_8_3.png' width='6' height='6'><br><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_8_1.png' width='6px' height='"+height_4+"px'></div></div><div style='width:"+width_16+"px;height:6px ;'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_8_2.png' width='6' height='6'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_8_0.png' width='"+width_9+"px' height='6'></div></div>";
	} // else if
	else if ( frame==4 ) {
		// 相框(+濾鏡陰影)
		var width_15 = parseInt(width,10)+15;
		var height_15 = parseInt(height,10)+15;
		html = "<div style='overflow:visible;FILTER:Dropshadow(color=#cccccc,offX=4,offY=4);width="+width_15+"px;height:"+height_15+"px;'><div style='border:1px solid #999; float:left;LETTER-SPACING: 4px;LINE-HEIGHT: 4px;overflow:visible;width=10px;height:10px ;background:white;'><div style='border:4px solid #FFFFFF;LETTER-SPACING: 4px;LINE-HEIGHT: 4px;overflow:visible;width=10px;height:10px; background:white;'><img src='"+src+"' width='"+width+"px' height='"+height+"px'></div></div></div>";
	} // else if

	else if ( frame==5 ) {
		// 相框(+陰影照片框)
		html = "<div style='width:"+width+"px;height:"+height+"px;'><img src='http://www.qqbye.com/qtools/qimg/img_3_10_0.gif' width='2%' align=right><img src='"+src+"' width=100% height=98% align=right><div style='float:left;overflow:visible;width=100%;height:100%;'><img src='http://www.qqbye.com/qtools/qimg/img_3_10_1.gif' width='100%' height='100%'></div></div></div>";
	} // else if
	else if ( frame==6 ) {
		// 相框(+立體陰影)
		var width_27 = parseInt(width,10)+27;
		var height_28 = parseInt(height,10)+28;
		html = "<div style='width:"+width_27+";height:"+height_28+";'><div style='width:"+width_27+";height:13 ;overflow:visible;'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_2.gif' width='12' height='13'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_6.gif' width='"+width+"' height='13'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_7.gif' width='15' height='13'></div> <div style='width:"+width_27+";height:"+height+" ;overflow:visible;'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_5.gif' width='12' height='"+height+"'><img src='"+src+"' width='"+width+"' height='"+height+"'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_0.gif' width='15' height='"+height+"'></div><div style='width:"+width_27+";height:15 ;overflow:visible;'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_3.gif' width='12' height='15'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_1.gif' width='"+width+"' height='15'><img border='0' src='http://www.qqbye.com/qtools/qimg/img_3_11_4.gif' width='15' height='15'></div></div>";
	} // else if
	else if ( frame==7 ) {
		// 郵票邊框
		var width_id7 = parseInt(width,10)+42;
		var height_id7 = parseInt(height,10)+42;
		html_pre = "<table border='0' width='"+width_id7+"' height='"+height_id7+"' cellspacing='0'><tr><td background='http://www.qqbye.com/qtools/qimg/img_3_73_3.gif' style='background-repeat: no-repeat' height=21 width=21></td><td background='http://www.qqbye.com/qtools/qimg/img_3_73_6.gif' height=21 ></td><td background='http://www.qqbye.com/qtools/qimg/img_3_73_0.gif' style='background-repeat: no-repeat' height=21 width=21></td></tr><tr><td background='http://www.qqbye.com/qtools/qimg/img_3_73_1.gif' width=21></td><td><img src='"+src+"' width="+width+" height="+height+"></td><td background='http://www.qqbye.com/qtools/qimg/img_3_73_4.gif' width=21></td></tr>";
                   html= html_pre+ "<tr><td background='http://www.qqbye.com/qtools/qimg/img_3_73_5.gif' style='background-repeat: no-repeat' height=21 width=21></td><td background='http://www.qqbye.com/qtools/qimg/img_3_73_7.gif' height=21 ></td><td background='http://www.qqbye.com/qtools/qimg/img_3_73_2.gif' style='background-repeat: no-repeat' height=21 width=21></td></tr></table>";
	} // else if
		else if ( frame==8 ) {
		// 翻頁折角邊框
		var width_id8 = parseInt(width,10)+18;
		var height_id8 = parseInt(height,10)+58;
		var width_id8a = parseInt(width,10)-4;
		var height_id8a = parseInt(height,10)-4;
		var width_id8b = parseInt(width,10)-32;
		var height_id8b = parseInt(height,10)-21;
		html="<table border='0' width='"+width_id8+"' height='"+height_id8+"' cellspacing='0' cellpadding='0'><tr><td  height=9 width=9 bgcolor='#F7F7F7'></td><td  height=9 colspan='2' bgcolor='#F7F7F7'></td><td  height=9 width=9 bgcolor='#F7F7F7'></td></tr><tr><td width=9 rowspan='2' bgcolor='#F7F7F7'></td><td rowspan='2' colspan='2'>";
		html+= "<img src='"+src+"' width='"+width_id8a+"' height='"+height_id8a+"' style='border: 2px solid #D6D6D6'></td><td bgcolor='#F7F7F7' width=9 height='"+height_id8b+"'></td></tr><tr><td background='http://www.qqbye.com/qtools/qimg/img_3_74_2.gif' width=9 height=21></td></tr><tr><td height=49 width=9 bgcolor='#F7F7F7'></td>";
		html+="<td width='"+width_id8b+"' bgcolor='#F7F7F7' height=49><div style='font:8pt/180% verdana;letter-spacing:1px;color:#999999'>"+document.all.txtDescription.value+"<br>"+document.all.txtAuthor.value+"</div></td><td background='http://www.qqbye.com/qtools/qimg/img_3_74_1.gif' height=49 width=32 style='background-repeat: no-repeat'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_75_0.gif' style='background-repeat: no-repeat' height=49 width=9></td></tr></table>";
	} // else if
			else if ( frame==9 ) {
		// 翻頁折角邊框(陰影)
		var width_idm = parseInt(width,10)+32;
		var height_idm = parseInt(height,10)+72;
		var width_idma = parseInt(width,10)-4;
		var height_idma = parseInt(height,10)-4;
		var width_idmb = parseInt(width,10)-33;
		var height_idmb = parseInt(height,10)-21;
		html="<table height='"+height_idm+"' cellSpacing='0' cellPadding='0' width='"+width_idm+"' border='0'><tr><td width='16' background='http://www.qqbye.com/qtools/qimg/img_3_79_9.gif' height='16'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_79_1.gif' height='16'  colspan='2'></td><td width='16' background='http://www.qqbye.com/qtools/qimg/img_3_79_4.gif' height='16'></td></tr><tr><td width='16' background='http://www.qqbye.com/qtools/qimg/img_3_79_3.gif' rowspan='2'></td><td rowspan='2' colspan='2'>";
		html+= "<img height='"+height_idma+"' src='"+src+"' width='"+width_idma+"' style='border: 2px solid #D6D6D6'></td><td vAlign='bottom' width='16' height='"+height_idmb+"' background='http://www.qqbye.com/qtools/qimg/img_3_79_10.gif'></td></tr><tr><td vAlign='bottom' width='16'><img src='http://www.qqbye.com/qtools/qimg/img_3_79_6.gif'></td></tr><tr><td width='16' background='http://www.qqbye.com/qtools/qimg/img_3_79_0.gif' height='56'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_79_8.gif' width='"+width_idmb+"' align=left>";
		html+="<div style='font:8pt/180% verdana;letter-spacing:1px;color:#999999'>"+document.all.txtDescription.value+"<br>"+document.all.txtAuthor.value+"</div></td><td align='right' width='33'><img height='56' src='http://www.qqbye.com/qtools/qimg/img_3_79_2.gif'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_79_7.gif' width='16' height='56'></td></tr></table>";
	} // else if
		else if ( frame==10 ) {
		// 切頁邊框
		var width_id9 = parseInt(width,10)+65;
		var height_id9 = parseInt(height,10)+66;
		html="<table border='0' cellpadding='0' cellspacing='0' width='"+width_id9+"' height='"+height_id9+"'><tr><td  background='http://www.qqbye.com/qtools/qimg/img_3_76_7.jpg' width='33' height='33'></td><td  background='http://www.qqbye.com/qtools/qimg/img_3_76_8.jpg' height='33' align='left'><img src='http://www.qqbye.com/qtools/qimg/img_3_76_1.jpg'></td><td  background='http://www.qqbye.com/qtools/qimg/img_3_76_2.jpg' width='32' height='33'></td></tr><tr><td  background='http://www.qqbye.com/qtools/qimg/img_3_76_3.jpg'  width='33'  valign='top'><img src='http://www.qqbye.com/qtools/qimg/img_3_76_11.jpg'></td>";
		html+= "<td><img src='"+src+"' width='"+width+"' height='"+height+"' border='0'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_76_6.jpg ' width='32' valign='bottom' ><img src='http://www.qqbye.com/qtools/qimg/img_3_76_9.jpg'></td></tr><tr><td background='http://www.qqbye.com/qtools/qimg/img_3_76_10.jpg'  width='33' height='33'></td><td  background='http://www.qqbye.com/qtools/qimg/img_3_76_0.jpg' align='right'><img src='http://www.qqbye.com/qtools/qimg/img_3_76_5.jpg' width='20' height='33' border='0'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_76_4.jpg'></td></tr></table>";
	}
		else if ( frame==11 ) {
		// 膠帶邊框1
		var width_id10 = parseInt(width,10)+95;
		var height_id10 = parseInt(height,10)+96;
		html="<table border='0' cellpadding='0' cellspacing='0' width='"+width_id10+"'  height='"+height_id10+"'><tr><td  background='http://www.qqbye.com/qtools/qimg/img_3_77_10.jpg'  width='41' height='46'></td><td  background='http://www.qqbye.com/qtools/qimg/img_3_77_13.jpg' height='46' align='left' width='400' colspan='2'><img src='http://www.qqbye.com/qtools/qimg/img_3_77_4.jpg'></td><td  background='http://www.qqbye.com/qtools/qimg/img_3_77_5.jpg' width='54' height='46'></td></tr><tr><td  background='http://www.qqbye.com/qtools/qimg/img_3_77_2.jpg'  width='41'  valign='bottom' rowspan='2'><img src='http://www.qqbye.com/qtools/qimg/img_3_77_11.jpg'></td><td rowspan='2' colspan='2'>";
		html+= "<img src='"+src+"' width='"+width+"' height='"+height+"' border='0'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_77_12.jpg' width='54' valign='top' ><img src='http://www.qqbye.com/qtools/qimg/img_3_77_14.jpg'></td></tr><tr><td background='http://www.qqbye.com/qtools/qimg/img_3_77_12.jpg' width='54' valign='bottom' ><img src='http://www.qqbye.com/qtools/qimg/img_3_77_9.jpg'></td></tr><tr><td background='http://www.qqbye.com/qtools/qimg/img_3_77_1.jpg'  width='41' height='50'></td><td  background='http://www.qqbye.com/qtools/qimg/img_3_77_0.jpg' align='left'  height='50' width='287'><img src='http://www.qqbye.com/qtools/qimg/img_3_77_7.jpg'></td>";
		html+= "<td  background='http://www.qqbye.com/qtools/qimg/img_3_77_0.jpg' align='right'  height='50' ><img src='http://www.qqbye.com/qtools/qimg/img_3_77_8.jpg'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_77_3.jpg' width='54' height='50'></td></tr></table>";
	}
			else if ( frame==12 ) {
		// 膠帶邊框2
		var width_idj = parseInt(width,10)+96;
		var height_idj = parseInt(height,10)+90;
		html="<table height='"+height_idj+"' cellSpacing='0' cellPadding='0' width='"+width_idj+"' border='0' ><tr><td width='40' background='http://www.qqbye.com/qtools/qimg/img_3_80_12.gif' height='45'></td><td align='left' background='http://www.qqbye.com/qtools/qimg/img_3_80_7.gif' colSpan='2' height='45'><img src='http://www.qqbye.com/qtools/qimg/img_3_80_13.gif'></td><td width='56' background='http://www.qqbye.com/qtools/qimg/img_3_80_15.gif' height='45'></td></tr><tr>";
		html+= "<td width='40' background='http://www.qqbye.com/qtools/qimg/img_3_80_1.gif' rowSpan='2'></td><td colSpan='2' rowSpan='2'><img height='"+height+"' src='"+src+"' width='"+width+"' border='0'></td><td vAlign='top' width='56' background='http://www.qqbye.com/qtools/qimg/img_3_80_10.gif'><img src='http://www.qqbye.com/qtools/qimg/img_3_80_5.gif'></td></tr><tr><td vAlign='bottom' width='56' background='http://www.qqbye.com/qtools/qimg/img_3_80_10.gif'><img src='http://www.qqbye.com/qtools/qimg/img_3_80_11.gif'></td></tr><tr><td width='40' background='http://www.qqbye.com/qtools/qimg/img_3_80_3.gif' height='45'></td>	<td align='left' background='http://www.qqbye.com/qtools/qimg/img_3_80_9.gif' height='45'>";
		html+= "<img src='http://www.qqbye.com/qtools/qimg/img_3_80_4.gif'></td><td align='right' background='http://www.qqbye.com/qtools/qimg/img_3_80_9.gif' height='45'><img src='http://www.qqbye.com/qtools/qimg/img_3_80_14.gif'></td><td width='56' background='http://www.qqbye.com/qtools/qimg/img_3_80_6.gif' height='45'></td></tr></table>";
	}
			else if ( frame==13 ) {
		// 圓孔相簿本邊框
		var width_id11 = parseInt(width,10)+56;
		var height_id11 = parseInt(height,10)+135;
		html="<table height='"+height_id11+"' cellSpacing='0' width='"+width_id11+"' border='0' id='table1'><tr><td style='BACKGROUND-REPEAT: no-repeat' width='28' background='http://www.qqbye.com/qtools/qimg/img_3_78_1.gif' height='47'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_78_8.gif' height='47'></td><td style='BACKGROUND-REPEAT: no-repeat' width='28' background='http://www.qqbye.com/qtools/qimg/img_3_78_5.gif' height='47'></td></tr><tr><td width='28' background='http://www.qqbye.com/qtools/qimg/img_3_78_4.gif'></td><td>";
		html+= "<img height='"+height+"' src='"+src+"' width='"+width+"'></td><td width='28' background='http://www.qqbye.com/qtools/qimg/img_3_78_7.gif'></td></tr><tr><td style='BACKGROUND-REPEAT: no-repeat' width='28' background='http://www.qqbye.com/qtools/qimg/img_3_78_2.gif' height='88'></td><td background='http://www.qqbye.com/qtools/qimg/img_3_78_3.gif' height='88' align=center style='FONT: 8pt/180% verdana; COLOR: #999999; LETTER-SPACING: 1px'>";
		html+= ""+document.all.txtDescription.value+"</td><td style='BACKGROUND-REPEAT: no-repeat' width='28' background='http://www.qqbye.com/qtools/qimg/img_3_78_6.gif' height='88'></td></tr></table>";
	}
		else if ( frame==14 ) {
		// 浮貼相紙
		var width_id13 = parseInt(width,10)+65;//32+33
		var height_id13 = parseInt(height,10)+59;//30+29
		var width_mid13 =  parseInt(width,10)+33+32-187-192;//if 400--->86
		var height_mid13 = parseInt(height,10)-127-147;
		if(width_mid13<0){html ="<font color=red size=6>錯誤:照片寬度太小,最小寬度為314</font>";}else{if(height_mid13<0){html ="<font color=red size=6>錯誤:照片高度太小,最小高度為274</font>";}else{
		
		html = "<table border=0 cellSpacing=0 width="+width_id13+" height="+height_id13+" cellpadding=0><tr height=29 width="+width_id13+"><td width=187><img src=http://www.qqbye.com/qtools/qimg/img_3_88_9.jpg border=0></td><td background=http://www.qqbye.com/qtools/qimg/img_3_88_3.jpg><img width="+width_mid13+" height=1 src=http://www.qqbye.com/qtools/qimg/img_3_89_0.gif></td>";
		html += "<td width=192><img src=http://www.qqbye.com/qtools/qimg/img_3_88_1.jpg border=0></td></tr><tr><td colspan=3 nowrap><table border=0 cellSpacing=0 width="+width_id13+" height="+height+" cellpadding=0><tr><td height=127 width=32 background=http://www.qqbye.com/qtools/qimg/img_3_88_8.jpg  vAlign=top><img src=http://www.qqbye.com/qtools/qimg/img_3_88_11.jpg>";
		html += "</td><td rowspan=3 width="+width+" height="+height+"><img height="+height+" src="+src+" width="+width+"></td><td height=127 width=33 background=http://www.qqbye.com/qtools/qimg/img_3_88_4.jpg  vAlign=top><img src=http://www.qqbye.com/qtools/qimg/img_3_88_10.jpg></td></tr><tr><td width=32 height="+height_mid13+" background=http://www.qqbye.com/qtools/qimg/img_3_88_8jpg></td>";
		html += "<td width=33 height="+height_mid13+" background=http://www.qqbye.com/qtools/qimg/img_3_88_4.jpg></td></tr><tr><td height=147 width=32 background=http://www.qqbye.com/qtools/qimg/img_3_88_8.jpg vAlign=bottom><img src=http://www.qqbye.com/qtools/qimg/img_3_88_6.jpg></td><td height=147 width=33 background=http://www.qqbye.com/qtools/qimg/img_3_88_4.jpg vAlign=bottom>";
		html += "<img src=http://www.qqbye.com/qtools/qimg/img_3_88_0.jpg></td></tr></table></td></tr><tr height=30 width="+width_id13+"><td width=187><img src=http://www.qqbye.com/qtools/qimg/img_3_88_2.jpg border=0></td><td background=http://www.qqbye.com/qtools/qimg/img_3_88_5.jpg><img width="+width_mid13+" height=1 src=http://www.qqbye.com/qtools/qimg/img_3_89_0.gif></td>";
		html += "<td width=192><img src=http://www.qqbye.com/qtools/qimg/img_3_88_7.jpg border=0></td></tr></tr></table>";

	}}
	}
	else if ( frame==15 ) {
		// 折角
		var width_id14 = parseInt(width,10)+32;
		var height_id14 = parseInt(height,10)+54;
		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id14+" height="+height_id14+" ><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_93_9.jpg width=14 height=14 border=0  ></td><td  width="+width+" background=http://www.qqbye.com/qtools/qimg/img_3_93_6.jpg></td>   <td><img  src=http://www.qqbye.com/qtools/qimg/img_3_93_5.jpg width=18 height=14 border=0 ></td></tr><tr><td height="+height+" background=http://www.qqbye.com/qtools/qimg/img_3_93_0.jpg></td><td width="+width+" height="+height+"><img  src="+src+" width="+width+" height="+height+" border=0 ></td><td height="+height+" background=http://www.qqbye.com/qtools/qimg/img_3_93_4.jpg></td></tr><tr><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_93_7.jpg width=14 height=40 border=0  ></td><td  width="+width+" align=right background=http://www.qqbye.com/qtools/qimg/img_3_93_2.jpg><img  src=http://www.qqbye.com/qtools/qimg/img_3_93_3.jpg width=15 height=40 border=0  ></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_93_1.jpg width=18 height=40 border=0  ></td></tr></table>";
	}

	else if ( frame==16 ) {
		// 圖釘
		var width_id15 = parseInt(width,10)+60;
		var height_id15 = parseInt(height,10)+89;
		var width_mid15 = parseInt(width,10)-51;
		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id15+" height="+height_id15+"><tr> <td><img src=http://www.qqbye.com/qtools/qimg/img_3_94_5.jpg width=30 height=20 border=0 ></td><td background=http://www.qqbye.com/qtools/qimg/img_3_94_6.jpg colspan=2  width="+width+"></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_94_10.jpg width=30 height=20 border=0></td></tr><tr><td height="+height+" background=http://www.qqbye.com/qtools/qimg/img_3_94_9.jpg  width=30 height=285></td><td colspan=2><img src="+src+" width="+width+" height="+height+" border=0 ></td><td height="+height+" background=http://www.qqbye.com/qtools/qimg/img_3_94_4.jpg  width=30 height=285></td></tr><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_94_3.jpg width=30 height=69 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_94_8.jpg width=51 height=69 border=0 ></td><td background=http://www.qqbye.com/qtools/qimg/img_3_94_2.jpg align=right width="+width_mid15+"><img src=http://www.qqbye.com/qtools/qimg/img_3_94_1.jpg width=105 height=69 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_94_0.jpg width=30 height=69 border=0 ></td></tr></table>"
	}
	
	else if ( frame==17 ) {
		// 掛圖1
		var width_id16 = parseInt(width,10)+45;
		var height_id16 = parseInt(height,10)+78;
		var width_mid16 = parseInt(width,10)-51-42+15;
		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id16+" height="+height_id16+"><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_95_9.jpg width=15 height=39 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_95_3.jpg width=51 height=39 border=0 ></td><td width="+width_mid16+" background=http://www.qqbye.com/qtools/qimg/img_3_95_1.jpg></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_95_7.jpg width=42 height=39 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_95_5.jpg width=15 height=39 border=0 ></td></tr><tr ><td background=http://www.qqbye.com/qtools/qimg/img_3_95_8.jpg width=15></td><td colspan=3 align=center >	<img src="+src+" width="+width+" height="+height+" border=0 ></td><td background=http://www.qqbye.com/qtools/qimg/img_3_95_6.jpg width=15></td></tr><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_96_0.jpg width=15 height=39 border=0 ></td>   <td background=http://www.qqbye.com/qtools/qimg/img_3_96_1.jpg colspan=3></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_96_2.jpg width=15 height=39 border=0 ></td></tr></table>";
	}

	else if ( frame==18 ) {
		// 花邊


		//var vicerad = document.getElementByName("radUI").getAttribute("CHECKED");  Firefox run false
		//var radvives = document.all.radUI;
		var width_id17 = parseInt(width,10)+60;
		var height_id17 = parseInt(height,10)+81;
		var width_mid17 = parseInt(width,10)-46-48;
		var height_mid17 = parseInt(height,10)-11;
		if(vice_17==1){//vicerad[0].getAttribute("CHECKED")==  true) ; Firefox run false
		var  v1r1="http://www.qqbye.com/qtools/qimg/img_3_97_0.jpg";
		var v1r2="http://www.qqbye.com/qtools/qimg/img_3_97_18.jpg";
		var v1r4="http://www.qqbye.com/qtools/qimg/img_3_97_5.jpg";
		var v1r5="http://www.qqbye.com/qtools/qimg/img_3_97_3.jpg";
		var v2r1="http://www.qqbye.com/qtools/qimg/img_3_97_15.jpg";
		var  v2r5="http://www.qqbye.com/qtools/qimg/img_3_97_12.jpg";
		}else if(vice_17==2){
		var v1r1="http://www.qqbye.com/qtools/qimg/img_3_97_10.jpg";
		var v1r2="http://www.qqbye.com/qtools/qimg/img_3_97_14.jpg";
		var v1r4="http://www.qqbye.com/qtools/qimg/img_3_97_16.jpg";
		var v1r5="http://www.qqbye.com/qtools/qimg/img_3_97_8.jpg";
		var v2r1="http://www.qqbye.com/qtools/qimg/img_3_97_13.jpg";
		var v2r5="http://www.qqbye.com/qtools/qimg/img_3_97_9.jpg";
		}else if(vice_17==3){
		var v1r1="http://www.qqbye.com/qtools/qimg/img_3_100_3.jpg";
		var v1r2="http://www.qqbye.com/qtools/qimg/img_3_100_0.jpg";
		var v1r4="http://www.qqbye.com/qtools/qimg/img_3_100_2.jpg";
		var v1r5="http://www.qqbye.com/qtools/qimg/img_3_100_1.jpg";
		var v2r1="http://www.qqbye.com/qtools/qimg/img_3_99_1.jpg";
		var  v2r5="http://www.qqbye.com/qtools/qimg/img_3_99_3.jpg";
		}else if(vice_17==4){
		var v1r1="http://www.qqbye.com/qtools/qimg/img_3_101_2.jpg";
		var v1r2="http://www.qqbye.com/qtools/qimg/img_3_101_3.jpg";
		var v1r4="http://www.qqbye.com/qtools/qimg/img_3_101_4.jpg";
		var v1r5="http://www.qqbye.com/qtools/qimg/img_3_101_5.jpg";
		var v2r1="http://www.qqbye.com/qtools/qimg/img_3_101_0.jpg";
		var v2r5="http://www.qqbye.com/qtools/qimg/img_3_101_1.jpg";
		}

		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id17+" height="+height_id17+"><tr><td><img src="+v1r1+" width=30 height=30 border=0 ></td><td><img src="+v1r2+" width=46 height=30 border=0 ></td><td width="+width_mid17+" background=http://www.qqbye.com/qtools/qimg/img_3_97_2.jpg></td><td><img src="+v1r4+" width=48 height=30 border=0 ></td><td><img src="+v1r5+" width=30 height=30 border=0 ></td></tr><tr><td><img src="+v2r1+" width=30 height=11 border=0 ></td><td rowspan=2 colspan=3><img src="+src+" width="+width+" height="+height+" border=0 ></td><td><img src="+v2r5+" width=30 height=11 border=0 ></td></tr><tr><td height="+height_mid17+" width=30 background=http://www.qqbye.com/qtools/qimg/img_3_97_4.jpg></td><td height="+height_mid17+" width=30 background=http://www.qqbye.com/qtools/qimg/img_3_97_19.jpg></td></tr><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_97_7.jpg width=30 height=51 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_97_17.jpg width=46 height=51 border=0 ></td><td  width="+width_mid17+" background=http://www.qqbye.com/qtools/qimg/img_3_97_11.jpg></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_97_1.jpg width=48 height=51 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_97_6.jpg width=30 height=51 border=0 ></td></tr></table>";
		
	}
		else if ( frame==19 ) {
		// 郵票2
		html = "<table border=0 cellpadding=0 cellspacing=0 width=300><tr><td colspan=3><img src=http://www.qqbye.com/qtools/qimg/img_3_107_1.jpg width=300 height=18 border=0 ></td></tr><tr><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_107_4.jpg width=18 height=175 border=0 ></td><td><img src="+src+" width=175 height=175 border=0 ></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_107_0.jpg width=107 height=175 border=0 ></td></tr><tr><td colspan=3><img src=http://www.qqbye.com/qtools/qimg/img_3_107_2.jpg width=300 height=17 border=0></td></tr></table>";
	}
		else if ( frame==20 ) {
		// 相紙1
		var width_id20 = parseInt(width,10)+40;
		var height_id20 = parseInt(height,10)+65;
		var width_mid20 = parseInt(width,10)-55;
		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id20+" height="+height_id20+"><tr><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_108_0.jpg width=20 height=19 border=0 ></td><td colspan=2 background=http://www.qqbye.com/qtools/qimg/img_3_108_7.jpg width="+width+" height=19></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_108_8.jpg width=20 height=19 border=0></td></tr><tr><td background=http://www.qqbye.com/qtools/qimg/img_3_108_1.jpg width=20 height="+height+"></td><td colspan=2><img  src="+src+" width="+width+" height="+height+" border=0> </td><td background=http://www.qqbye.com/qtools/qimg/img_3_108_2.jpg width=20 height="+height+"></td></tr><tr><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_108_6.jpg width=20 height=46 border=0 ></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_108_4.jpg width=55 height=46 border=0 ></td><td background=http://www.qqbye.com/qtools/qimg/img_3_108_3.jpg width="+width_mid20+" height=46></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_108_9.jpg width=20 height=46 border=0></td></tr></table>";
	}
		else if ( frame==21 ) {
		// 相紙2
		var width_id21 = parseInt(width,10)+58;
		var height_id21 = parseInt(height,10)+79;
		var width_mid21 = parseInt(width,10)-50-56;
		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id21+" height="+height_id21+"><tr><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_109_10.jpg width=29 height=29 border=0 ></td><td colspan=3 background=http://www.qqbye.com/qtools/qimg/img_3_109_0.jpg width="+width+" height=29></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_109_5.jpg width=29 height=29 border=0 ></td></tr><tr><td background=http://www.qqbye.com/qtools/qimg/img_3_109_7.jpg width=29 height="+height+"></td><td colspan=3><img  src="+src+" width="+width+" height="+height+" border=0></td><td  background=http://www.qqbye.com/qtools/qimg/img_3_109_4.jpg width=29 height="+height+"></td></tr><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_109_6.jpg width=29 height=50 border=0 ></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_109_3.jpg width=50 height=50 border=0 ></td><td background=http://www.qqbye.com/qtools/qimg/img_3_109_2.jpg width="+width_mid21+" height=50></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_109_8.jpg width=56 height=50 border=0 ></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_109_1.jpg width=29 height=50 border=0></td></tr></table>";
	}
		else if ( frame==22 ) {
		// 相紙3
		var width_id22 = parseInt(width,10)+60;
		var height_id22 = parseInt(height,10)+81;
		var width_mid22 = parseInt(width,10)-48-47;
		html = "<table border=0 cellpadding=0 cellspacing=0 width="+width_id22+" height="+height_id22+" ><tr><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_110_3.jpg width=30 height=30 border=0 ></td><td colspan=3 background=http://www.qqbye.com/qtools/qimg/img_3_110_1.jpg width="+width+" height=30></td><td><img  src=http://www.qqbye.com/qtools/qimg/img_3_110_0.jpg width=30 height=30 border=0 ></td></tr><tr><td background=http://www.qqbye.com/qtools/qimg/img_3_110_9.jpg width=30 height="+height+"></td><td colspan=3><img  src="+src+" width="+width+" height="+height+" border=0 ></td><td background=http://www.qqbye.com/qtools/qimg/img_3_110_6.jpg width=30 height="+height+"></td></tr><tr><td><img src=http://www.qqbye.com/qtools/qimg/img_3_110_8.jpg width=30 height=51 border=0></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_110_7.jpg width=47 height=51 border=0></td><td background=http://www.qqbye.com/qtools/qimg/img_3_110_5.jpg width="+width_mid22+" height=51></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_110_4.jpg width=48 height=51 border=0 ></td><td><img src=http://www.qqbye.com/qtools/qimg/img_3_110_2.jpg width=30 height=51 border=0 ></td></tr></table>";
	}
	

	document.all.divResult_klcintw.innerHTML = "<font color=#333333>复制起点→ ●</font><br><center><br>"+html+"</center><br><br><font color=#333333>● ←复制终点</font>";
	//document.all.divResult_klcintw.innerHTML = html;
	document.all.txtOutput1.value = html;
	 document.all.preimg.innerHTML="";
}

// 拍立得樣式的精緻照片框
function btnFunc1_onclick() {

	//document.all.imgOrg.src = document.all.txtUrl.value;
	//var doc = document.frames[0].document;
	//doc.write("<img src="+document.all.txtUrl.value+" onload='window.parent.imgOrg_onload(this)'>");
    document.all.preimg.innerHTML="<div style='width:1px;height:1px;display:none !important;display:inline;' ><img id='kimg' name='kimg' src="+document.all.txtUrl.value+" onload='imgOrg_onload(document.all.kimg)'></div>";
    
}
function btnReset1_onclick() {
	document.all.txtOutput1.value = "";
	document.all.divResult_klcintw.innerHTML = "";
	oSize = 0;
	document.all.txtWidth.value = "";
	document.all.txtHeight.value = "";
}
//-->