function openFrameless(){
  window.open('http://www.bondadvisor.co.za/privacy.html','popup','width=200, height=100');
}

function openDisc(){
  window.open('http://www.bondadvisor.co.za/disclaimer.html','popup','width=650, height=600,scrollbars');
}

function contact() {
	window.open('http://www.bondadvisor.co.za/contact.php','popup','width=650, height=600, scrollbars');
}

function format_num(field){
	var num = field.value;
	num = addCommas(num);
	
	field.value = num;
	
}

function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}

function bookmark(url, description)
{
netscape="Netscape or Firefox Users hit CTRL+D to add a bookmark to this site."
if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}