function senden(formname){
	document.forms[formname].submit();
	return false;
}


if (document.layers) {
	firstBit='document.layers["';
	secondBit='"]';
	styleRef='';
	leftVar='.left';
	topVar='.top';
	heightVar='.clip.height';
	widthVar='.clip.width';
	function checksize() {
				if (maxheadroom != window.innerHeight || wideload != window.innerWidth) {
					document.location=document.location;
					}
				}
	var maxheadroom = window.innerHeight;
	var wideload = window.innerWidth;
	window.captureEvents(Event.RESIZE);
	window.onresize = checksize;
} else if (document.all) {
	firstBit='document.all["';
	secondBit='"]';
	styleRef='.style';
	leftVar='.posLeft';
	topVar='.posTop';
	heightVar='.clientHeight';
	widthVar='.clientWidth';
} else if (document.getElementById) {
	firstBit='document.getElementById("';
	secondBit='")';
	styleRef='.style';
	leftVar='.left';
	topVar='.top';
	heightVar='.offsetHeight';
	widthVar='.offsetWidth';
}

function showLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.visibility="visible"');
	}
}
function hideLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.visibility="hidden"');
	}
}

function boldLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.fontWeight="bold"');
	}
}
function normLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.fontWeight="normal"');
	}
}

function anioffLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.backgroundImage="url(images/blind.gif)"');
	}
}
function anionLayer(layerName){
	if ( eval(firstBit+layerName+secondBit) ) {
		eval(firstBit+layerName+secondBit+styleRef+'.backgroundImage="url(images/anigif.gif)"');
	}
}




function getXpos(layerName) {
	return eval(firstBit+layerName+secondBit+styleRef+leftVar);
}

function getYpos(layerName) {
	return eval(firstBit+layerName+secondBit+styleRef+topVar);
}

function getHeight(layerName) {
	return eval(firstBit+layerName+secondBit+heightVar);
 }

 function getWidth(layerName) {
	return eval(firstBit+layerName+secondBit+widthVar);
 }
	
function moveLayer(layerName,whereToX,whereToY) {
	eval(firstBit+layerName+secondBit+styleRef+leftVar+'='+whereToX);
	eval(firstBit+layerName+secondBit+styleRef+topVar+'='+whereToY);
}

var activeLayerNumber="0";
var scrolling = 0;

function display(LayerNumber) {
	if (activeLayerNumber != LayerNumber) {
	        showLayer("vc_"+LayerNumber);
	        hideLayer("vc_"+activeLayerNumber);
		activeLayerNumber=LayerNumber;
	}
}





