var onloadstring='';
function onloadFunction(){
	IE_7_object_activation_fix();
	eval(onloadstring);
}

function focus_text(){
	if((document.all || document.getElementsByTagName) && document.getElementById){
		var alltags3=document.all? document.all : document.getElementsByTagName("*");
		for (i=0; i<alltags3.length; i++){
			if(alltags3[i].tagName=="INPUT" && alltags3[i].className.indexOf("text")!=-1){
				alltags3[i].onfocus=function(){ this.className='text active';};
				alltags3[i].onblur=function(){ this.className='text';};
			};
			if(alltags3[i].tagName=="SELECT"){
				alltags3[i].onfocus=function(){ this.className='active';};
				alltags3[i].onblur=function(){ this.className='';};
			};
			if(alltags3[i].tagName=="TEXTAREA"){
				alltags3[i].onfocus=function(){ this.className='active';};
				alltags3[i].onblur=function(){ this.className='';};
			};
			/*if(alltags3[i].tagName=="INPUT" && alltags3[i].className.indexOf("checkbox")!=-1){
				alltags3[i].onfocus=function(){ this.className='checkbox active';};
				alltags3[i].onblur=function(){ this.className='checkbox';};
			};*/
		};
	};
}


var targettopnummer=0;
function gettargetblank(aobject){
	window.open(aobject,'targettop'+targettopnummer,'location=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes,menubar=yes,resizable=yes');
	w.focus();
	targettopnummer++;
	return false;
}
function opennewwindow(aobject){
	w = window.open(aobject,'targettop'+targettopnummer,'location=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes,menubar=yes,resizable=yes');
	w.focus();
	targettopnummer++;
	return false;
}

function IE_7_object_activation_fix(){
	if (navigator.userAgent.toLowerCase().indexOf("msie") != -1 && document.all){
		objects = document.getElementsByTagName("object");
		for (var i = 0; i < objects.length; i++){
			var closedTagIndex = objects[i].outerHTML.toLowerCase().indexOf('>')
			var contents = objects[i].outerHTML.substring(0, closedTagIndex + 1);
			for (var j = 0; j < objects[i].childNodes.length; j++){
				contents += objects[i].childNodes[j].outerHTML;
			}
			contents += '</object>';
			objects[i].outerHTML = contents;
		}
	}
}