function loadScript(scriptname) {  
  var snode = document.createElement('script');  
  snode.setAttribute('type','text/javascript');  
  snode.setAttribute('src',scriptname);  
  document.getElementsByTagName('head')[0].appendChild(snode);  
}  
loadScript('http://www.holidaysgermany.de/plugins/include/prototype.js'); 
loadScript('http://www.holidaysgermany.de/plugins/include/scriptaculous.js'); 
loadScript('http://www.holidaysgermany.de/plugins/include/unittest.js'); 


function evalScript(scripts)
{	try
	{	if(scripts != '')	
		{	var script = "";
			scripts = scripts.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(){
	       	                         if (scripts !== null) script += arguments[1] + '\n';
 	        	                        return '';});
			if(script) (window.execScript) ? window.execScript(script) : window.setTimeout(script, 0);
		}
		return false;
	}
	catch(e)
	{	alert(e)
	}
}



function createXMLHttpRequest() {

    var ua;

    if(window.XMLHttpRequest) {
        try {
          ua = new XMLHttpRequest();
        } catch(e) {
          ua = false;
        }
      } else if(window.ActiveXObject) {
        try {
          ua = new ActiveXObject("Msxml2.XMLHTTP");
        } catch(e) {
          ua = false;
        }
		try {
          ua = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {
          ua = false;
        }
      }
      return ua;
}

var req = createXMLHttpRequest();


window.name = 'main';
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

function anzeigen(das){
 if(document.getElementById(das).style.display=='none') 
 document.getElementById(das).style.display='block'; 
 else document.getElementById(das).style.display='none';
 }