<!--
function new_window(theURL,winName,features,myWidth,myHeight,isCenter) {
  if(window.screen)if(isCenter)if(isCenter == 'true') {
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function new_imagepopup(theURL,winName,altName,colorSchema,features,width,height,isCenter) {
	var myWidth = width*1+20;
	var myHeight = height*1+20;
	if (winName!="") {
		myHeight+=15;
	}
	
	if(window.screen)if(isCenter)if(isCenter == 'true') {
	    var myLeft = (screen.width-myWidth)/2;
	    var myTop = (screen.height-myHeight)/2;
	    features+=(features!='')?',':'';
	    features+=',left='+myLeft+',top='+myTop;
	 }
	
	imagepopup = window.open('','',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	with (imagepopup) {
		document.open();
		document.write('<title>'+winName+'</title>');
		document.write('<meta http-equiv="imagetoolbar" content="no">');
		document.write('<link rel="stylesheet" type="text/css" href="/css/layout.css" />');
		document.write('<link rel="stylesheet" type="text/css" href="/css/'+colorSchema+'.css" media="screen" />');
		document.write('<style type="text/css">body{margin: 0px; overflow:hidden;width:'+myWidth+'px; height: '+myHeight+'px;background-color:#FFFFFF;}</style>');
		document.write('<body>');
		document.write('<h3 class="PopupHeadline">'+winName+'</h3>');
		document.write('<a href="javascript:self.close()">');
		document.write('<img src="'+theURL+'" border="0" alt="'+altName+'" title="'+altName+'">');
		document.write('</a></body>');
		document.close();
	}
}

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    for (var i=0; i<preloadImages.arguments.length; i++) {
      rslt = newImage(preloadImages.arguments[i]);
    }
    preloadFlag = true;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

function myfunc01(arg){
	location.replace('mailto:'+arg);
}
function BorderOn(id){
	var myobj = document.getElementById(id);
	var test = findPos(myobj);
	if(!document.getElementById('div_'+id)){
		var mydiv = document.createElement("div");
		mydiv.className = 'ElementHint';
		mydiv.id = 'div_'+id;
		document.getElementById(id).appendChild(mydiv);
	}
	document.getElementById('div_'+id).style.top = test[1]+"px";
	document.getElementById('div_'+id).style.left = test[0]+"px";
	document.getElementById('div_'+ id).style.display = 'block';


}
function BorderOff(id){
	document.getElementById('div_'+ id).style.display = 'none';
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

//-->