function logo(){	document.writeln('<embed src=\"http://www.nhadatvinh.com/images/logo.swf\" type=\"application/x-shockwave-flash\" width=\"360\" height=\"80\" />');}function bookmarksite(title, url){	if (document.all)	window.external.AddFavorite(url, title);	else if (window.sidebar)	window.sidebar.addPanel(title, url, "")}function toggle( targetId ){	if (document.getElementById)	{		target = document.getElementById( targetId );		if (target.style.display == "none")		{			target.style.display = "";		}		else		{			target.style.display = "none";		}	}}function togglebox( bid, add ){	if ( add )	{				my_show_div( my_getbyid( 'close_'+bid  ) );		my_hide_div( my_getbyid( 'open_'+bid  ) );	}	else	{		my_show_div( my_getbyid( 'open_'+bid  ) );		my_hide_div( my_getbyid( 'close_'+bid  ) );	}}function characterCounter(fieldName, maxLength, elementName){	var field = getById(fieldName);	var value = field.value.replace(/\n/g,'**');		if (value.length > maxLength){		getById(fieldName).value = getById(fieldName).value.substr(0, maxLength);	}	getById(elementName).innerHTML = getById(fieldName).value.length;}function footer() {	document.writeln('');}function banner() {	document.writeln('<embed flashvars=\"link=#\" src=\"img/banner/header.swf\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"80\" />');}function headbanner() {	document.writeln('<embed flashvars=\"link=#\" src=\"img/banner/head.swf\" type=\"application/x-shockwave-flash\" width=\"616\" height=\"80\" />');}function left(){	document.writeln('');}function right(){}function forex(){	document.writeln('<table width=\'100%\' cellspacing=\'1\' cellpadding=\'3\' bgcolor=\'#cccccc\'>');	document.writeln('<tr bgcolor=\'#ffffff\'><td align=\'center\' width=\'50%\'>', vForexs[0],'</td><td align=\'center\' width=\'50%\'>', vCosts[0],'</td></tr>');	document.writeln('<tr bgcolor=\'#ffffff\'><td align=\'center\'>', vForexs[1],'</td><td align=\'center\'>', vCosts[1],'</td></tr>');	document.writeln('<tr bgcolor=\'#ffffff\'><td align=\'center\'>', vForexs[6],'</td><td align=\'center\'>', vCosts[6],'</td></tr>');	document.writeln('<tr bgcolor=\'#ffffff\'><td align=\'center\'>', vForexs[9],'</td><td align=\'center\'>', vCosts[9],'</td></tr>');	document.writeln('<tr bgcolor=\'#ffffff\'><td align=\'center\'>', vForexs[10],'</td><td align=\'center\'>', vCosts[10],'</td></tr>');	document.writeln('</table>');}function chgrate(block,id) {	if(block=='vnd') {	document.getElementById('giaVND'+id).style.display='';	document.getElementById('boxVND'+id).className='apricebox';	document.getElementById('giaUSD'+id).style.display='none';	document.getElementById('boxUSD'+id).className='pricebox';	document.getElementById('giaGOLD'+id).style.display='none';	document.getElementById('boxGOLD'+id).className='pricebox';	}	if(block=='usd') {	document.getElementById('giaVND'+id).style.display='none';	document.getElementById('boxVND'+id).className='pricebox';	document.getElementById('giaUSD'+id).style.display='';	document.getElementById('boxUSD'+id).className='apricebox';	document.getElementById('giaGOLD'+id).style.display='none';	document.getElementById('boxGOLD'+id).className='pricebox';	}	if(block=='gold') {	document.getElementById('giaVND'+id).style.display='none';	document.getElementById('boxVND'+id).className='pricebox';	document.getElementById('giaUSD'+id).style.display='none';	document.getElementById('boxUSD'+id).className='pricebox';	document.getElementById('giaGOLD'+id).style.display='';	document.getElementById('boxGOLD'+id).className='apricebox';	}}