function change_form() {
	form1 = document.getElementById('type_va_1');
	form2 = document.getElementById('type_va_2');
	company = document.getElementById('form_company_div');
	urlsdiv = document.getElementById('form_personal_div');

	if(form2.checked == true) {
		company.style.display = 'none';
		urlsdiv.style.display = 'block';
	} else if(form1.checked == true) {
		company.style.display = 'block';	
		urlsdiv.style.display = 'none';
	}

}
function new_window(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=270,top=60,width=530,height=430");
}

function new_window_wh(url, w, h) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=270,top=60,width="+w+",height="+h);
}


function new_window_sb(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,left=270,top=60,width=530,height=430");
}

function sendMail(where) {
	link = window.open('http://bizdnes.com/smail.php?where=' + where ,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=270,top=60,width=530,height=430");
}

function loadmap(isLogo, logoCompanyName, g_lon, g_lat, zoom)
{
    if (GBrowserIsCompatible())
    {
		var mapDiv = getObj('map');
		var inplaceDirectionsDiv = getObj('inplacedirections');
		if (mapDiv != null)
		{
			objGMap = new GMap2(mapDiv);
			if (inplaceDirectionsDiv != null)
			{
				objGDirections = new GDirections(objGMap, inplaceDirectionsDiv);
			}
			
			// Add Controls
			objGMap.addControl(new GSmallMapControl());
			
			objGMap.setCenter(new GLatLng(g_lon, g_lat), zoom);
			if (logoCompanyName != '')
			{
				var ballooncontent = '<div class="balloon">'
				ballooncontent += '<table border="0" cellpadding="0" cellspacing="0">'
				ballooncontent += '<tr><td height="36" width="81" align="center">'
            
				if (isLogo == 1)
				{
					ballooncontent += '<img src="/customscripts/systemfunctions/showimage.asp?img=' + logoCompanyName + '&folder=listinglogos&maxw=75&maxh=33" border="0" alt="" />'
				}
				else
				{
					ballooncontent += logoCompanyName;
				}
				ballooncontent += '</td></tr></table></div>';
            
				var label = new TLabel();
				label.id = '1';
				label.anchorLatLng = new GLatLng (g_lon,g_lat);
				label.anchorPoint = 'bottomLeft';
				label.content = ballooncontent;
				label.percentOpacity = 80;
		        
				objGMap.addTLabel(label);            
			}
		}
	}
	else
    {
        alert("Sorry, our Interactive Map is not compatible with your browser");
    }
}

function checkCorp() {
	if(document.getElementById('corp').checked == true) {
		document.getElementById('corpfields').style.display = 'block';
	} else {
		document.getElementById('corpfields').style.display = 'none';
	}
}
