function spacebar(i)
	{
		document.write('<img src="images/spacer.gif" border="0" width="'+i+'" height="1"  align="absmiddle"/>');
	}
function setFlash(src, w, h) {
		var Flash_html = "";
		Flash_html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
		Flash_html += '<param name="movie" value="'+src+'">';
		Flash_html += '<param name="quality" value="high">';
		Flash_html += '<param name="wmode" value="transparent">';
		Flash_html += '<param name="swliveconnect" value="true">';
		Flash_html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
		Flash_html += '<\/object>';

		document.write(Flash_html);
	}
function flash(url,w,h,bg,win,vars){
	var s=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' align='middle'>"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='quality' value='high' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	document.write(s);
	//return s;
}	
//menu
/*if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}*/
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block"){
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu")
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
//menu
//weblink
  function OpenLinks(netvietgroup_com)
			{
				path=netvietgroup_com.weblink.options[netvietgroup_com.weblink.selectedIndex].value;
				window.open(path);
			}
//weblink
//popup
function OpenPopup(url,id,w,h)
{
lk=url+"?id=" + id + "&title=gia-vang-gold-ty-gia-ngoai-te-rate-of-exchange-thoi-tiet-weather.html";
					playnew = window.open(lk,"","width="+w+",height="+h+",scrollbars=no,resizable=no,status=no");
					playnew.focus();
}
function Popup(url,w,h)
{
lk=url;//+"&title=thank-for-netvietgroup.com.html";
					playnew = window.open(lk,"","width="+w+",height="+h+",scrollbars=yes,resizable=yes,status=no");
					playnew.focus();
}
//popup
//fullsize img
function FullSizePicture(url,productname)
{
lk="FullSizePicture.php?url=/" + url + "&productname=" + productname;
					playnew = window.open(lk,"","width=10,height=10,scrollbars=yes,resizable=yes,status=no");
					playnew.focus();
}
//fullsize img
//gui thu thong minh
function SmartMail(url,w,h)
{
					playnew = window.open("http://netvietgroup.com/SmartMail/?u=http://sonmaipc.com/mapc/mail/netvietgroup.com."+url,"","width="+w+",height="+h+",scrollbars=no,resizable=no,status=no");
					playnew.focus();
}	
//gui thu thong minh
function NetvietCorpCloseGift()
{
document.getElementById("flashGift").innerHTML="";
}