function popup(file_name, win, width, height, scroll, resize) {
  
  iwidth = (screen.width - width)/2;
  iheight = (screen.height - height)/2;
  window.open(file_name,win,"width="+width+",height="+height+",scrollbars="+scroll+",resizable="+resize+",top="+iheight+",left="+iwidth);
}

function popup2(file_name, win, width, height, scroll, resize, status) {

  iwidth = (screen.width - width)/2;
  iheight = (screen.height - height)/2-100;
  window.open(file_name,win,"width="+width+",height="+height+",scrollbars="+scroll+",resizable="+resize+",top="+iheight+",left="+iwidth+",status="+status);
}

function sendnow(url){
	if (confirm("send now?") == true)
	  location.href = url;
}

function menuClick(url){
	window.document.location.href=url;

}
function menuOver(obj, strImg){
	obj.src = strImg;
	obj.style.cursor = 'hand';
}
function menuOut(obj, strImg){
	obj.src = strImg;
	obj.style.cursor = 'hand';
}

function selectAllCopy(theField,nation) {

	var copiedtext=""
	var tempstore=""
	
	tempstore=copiedtext
	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
	
	therange=tempval.createTextRange()
	therange.execCommand("Copy")
	
	copiedtext=window.clipboardData.getData("Text");  //差紫(Copy)吉 鎧遂 左食爽澗 採歳
	
	open('/'+nation+'/trans/trans_popup_copy.html','','width=350,height=230,menubar=no,scrollbars=no');
}

function img_win(img_name, win, width, height, scroll, resize) {
  iwidth = (screen.width - width)/2;
  iheight = (screen.height - height)/2;

  newwin=window.open(img_name,win,"width="+width+",height="+height+",scrollbars="+scroll+",resizable="+resize+",top="+iheight+",left="+iwidth);
  newwin.document.write("<html>")
  newwin.document.write("<head><title></title></head>")
  newwin.document.write("<body bgcolor=#efefef>")
  newwin.document.write("<table width=100% height=100% bgcolor=white>")
  newwin.document.write("<tr><td align=center valign=middle>");
  newwin.document.write("<a href='javascript:window.close()'><img src=")
  newwin.document.write(img_name)
  newwin.document.write(" border=0 alt='close'></a>")
  newwin.document.write("</td></tr></table>")
  newwin.document.write("</body>")
  newwin.document.write("</html>")
}

 function lookin(div_id){
    div_id.style.visibility = "visible";

	//div_id.style.left = window.event.clientX-10
	//div_id.style.top = window.event.clientY + document.body.scrollTop;
 }

 function close_div(div_id){
  div_id.style.visibility = "hidden";
 }

 function xch_list_over(objThis){
	objThis.style.backgroundColor="#F4F9F4";
 }
 
 function xch_list_out(objThis){
	objThis.style.backgroundColor="";
 }

 
 function notice_list_over(objThis){
	objThis.style.backgroundColor="#EBF2FA";
 }
 
 function notice_list_out(objThis){
	objThis.style.backgroundColor="";
 }

 function link_swf(name,width,height){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab?Sid=version=7,0,19,0" width="'+width+'" height="'+height+'">';
	html += '<param name="movie" value="'+name+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="wmode" value="TRANSPARENT">';
	html += '<embed src="'+name+'" quality=high bgcolor="white" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}