re_h = /.*app_(-?\d+)\.php.*/;
re_f = /.*fotos.(.*)\.jpg/;
var h_foto="tester_h_foto";
var huis_id;

function switchview(name, pic){name.src = pic;}

function wat(re, loc){
	a = re.exec(loc);
	if (a){
		return a[1]
	} else{
		return a
	}
}
function boewi(fase, args) {
//	if (fase == undefined || fase == '') {
	if (!fase) {
		fase = "diboe_1";
	}
//	if (args == undefined){
	if (!args){
//overdracht
//		args = "id=" + wat(re_h, window.location) + "&foto=" + h_foto;
	if (!huis_id) {
		args = "old_id=" + wat(re_h, window.location) + "&foto=" + h_foto;
	} else {
		args = "new_id=" + huis_id + "&foto=" + h_foto;
	}
//overdracht
	}
	bowi = this.open("../diboe3/" + fase + ".php3?" + args, "boekwindow", "toolbar=yes,menubar=yes,location=no,resizable=yes,scrollbars=yes");
}

function Start(page) {
	OpenWin = this.open(page, "CtrlWindow", "width=600,height=500,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function test1(){
//	a = self.top;
//	ret = "";
//	for (var prop in a){
//		ret += "  " + prop + " is " + this[prop] + ";\n"}


	return parent.test22;
}
