<!--//
function runClock(time_left_close) {
	display = display - 1;
	if (display > 0) {
		days = Math.floor (display / 86400);
		display_left = display - (days * 86400);

		hours = Math.floor (display_left / 3600);
		display_left = display_left - (hours * 3600);
		
		minutes = Math.floor (display_left / 60);
		secs = display_left - (minutes * 60);
	
		time_field = '';
		if (days > 0) { time_field = days + ' ' + names[0] + ' '; }
		if (hours > 0) { time_field += hours + ' ' + names[1] + ' '; }
		if (minutes > 0) { time_field += minutes + ' ' + names[2] + ' '; }
		if ((days == 0) && (hours == 0) && (minutes == 0)) {
			document.getElementById("clock").innerHTML = time_left_close; 
		}
		document.form.test.value = time_field;
		theTime = window.setTimeout("runClock('" + time_left_close + "')", 1000);
	} else {
		document.form.test.value = 'Veiling is afgelopen';
		document.getElementById("clock").innerHTML = ' ';
		if (display == 0) {
			document.location = redirect_url;
		}
	}
}

function runClockEN(time_left_close) {
	display = display - 1;
	if (display > 0) {
		days = Math.floor (display / 86400);
		display_left = display - (days * 86400);

		hours = Math.floor (display_left / 3600);
		display_left = display_left - (hours * 3600);
		
		minutes = Math.floor (display_left / 60);
		secs = display_left - (minutes * 60);
	
		time_field = '';
		if (days > 0) { time_field = days + ' ' + names[0] + ' '; }
		if (hours > 0) { time_field += hours + ' ' + names[1] + ' '; }
		if (minutes > 0) { time_field += minutes + ' ' + names[2] + ' '; }
		if ((days == 0) && (hours == 0) && (minutes == 0)) {
			document.getElementById("clock").innerHTML = time_left_close; 
		}
		document.form.test.value = time_field;
		theTime = window.setTimeout("runClockEN('" + time_left_close + "')", 1000);
	} else {
		document.form.test.value = 'The auction is closed';
		document.getElementById("clock").innerHTML = ' ';
		if (display == 0) {
			document.location = redirect_url;
		}
	}
}

function PopWindow(mypage,myname,w,h,scroll){
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';

	window.open(mypage,myname,settings);
}
function expMenu(id) {
	var itm = null;
	if (document.getElementById) {
		itm = document.getElementById(id);
	} else if (document.all) {
		itm = document.all[id];
	} else if (document.layers) {
		itm = document.layers[id];
	}
	if (!itm) {
		// do nothing
	} else if (itm.style) {
		if (itm.style.display == "none") { itm.style.display = ""; }
		else { itm.style.display = "none"; }
	} else { itm.visibility = "show"; }
}
//-->