// JavaScript 

function showComment() {
	alert('sss');
}

var win=null;

function loadRoute(adres, huisnr, postcode, stad) {
	// {$object.adres}', '{$object.huisnummer}','{$object.postcode}','{$object.stad}'
	if(adres == "") {	
		alert("Deze functie is helaas niet beschikbaar voor dit object.\n");
	}
	
	window.open("http://tools.locatienet.com/location/map.asp?config_id=6559&language=dutch&street="+adres+"+"+huisnr+"&zipcode="+postcode+"&city="+stad+"&country=NL&zoom=3&css=http://www.amcobv.nl/style/style.css&logo=http://www.amcobv.nl/jpg/route_logo.jpg","plattegrond","scrollbars=yes,status=yes,resizable=yes,toolbar=no,width=650,height=485");
}

function PrintPage() {
	var url;
	url = self.location+'&print=true';
	PopUp(url,'printPreview', 600, '', 'YES','center');
}

function PopUp(page,name,w,h,scroll,pos){ 
	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	} else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;TopPosition=20
	}
	
	if(h == "") {
		h = screen.availHeight;
		if(h > 700) {
			h = 700;
		}
		//alert(screen.availHeight);
	}
	
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(page,name,settings);
	win.focus();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

