// Example:
// simplePreload( '01.gif', '02.gif' ); 
function simplePreload() { 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++) {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

function initImages() {
	simplePreload( 'images/topnav/topnav_bb_on.gif', 'images/topnav/topnav_kib_on.gif', 'images/topnav/topnav_overpgb_on.gif', 'images/topnav/topnav_venv_on.gif', 'images/topnav/topnav_zv_on.gif', 'images/topnav/topnav_wzw_on.gif' );
}

function showDiv( myid ) {
	if ( myid ) {
		var myObj = document.getElementById( myid );
		if ( myObj ) {
			myObj.style.display = 'block';
		}
	}
}

function hideDiv( myid ) {
	if ( myid ) {
		var myObj = document.getElementById( myid );
		if ( myObj ) {
			myObj.style.display = 'none';
		}
	}
}
window.onload = initImages;

function emailvalidation(entered) {
with (entered) {
	apos=value.indexOf("@"); 
	dotpos=value.lastIndexOf(".");
	lastpos=value.length-1;
	if (apos<1 || dotpos-apos<2 || (lastpos-dotpos>3 && value.toLowerCase().substring(dotpos+1)!="info") || lastpos-dotpos<2) {
		return false;
	} else {
		return true;
	}
}
}
