function formular(language,location) {
 Fenster =  window.open("http://marathon.soft.uni-linz.ac.at/" + language + "/current/" + location + "/entry.pdf","NEWFORM","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=600");
 Fenster.focus();
 }

function view_hinweise(language,bewerb) {
 Fenster =  window.open("http://marathon.soft.uni-linz.ac.at/IMAGES/" + bewerb + "_" + language + ".pdf","NEWFORM","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=600");
 Fenster.focus();
 }



/*function anmeldung(language,location) {
 Fenster =  window.open("https://vcm.ani.univie.ac.at/" + language + "/entry/" + location + "/index.html","SECURE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=600");
 Fenster.focus();
 }*/

//https://maxfun.at/online3/sportpayment.php

function anmeldungMaxFun(getPara) {
 Fenster =  window.open("https://sportpayment.com/online3/sportpayment.php?" + getPara,"SECURE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=600");
 Fenster.focus();
 }




   function startPagelocal(location) {

      time = new Date();
	  secs = time.getSeconds();
	  
	  if((secs % 10) == 0) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
	  if((secs % 10) == 1) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
	  if((secs % 10) == 2) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
	  if((secs % 10) == 3) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    	  if((secs % 10) == 4) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    	  if((secs % 10) == 5) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    	  if((secs % 10) == 6) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    	  if((secs % 10) == 7) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    	  if((secs % 10) == 8) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    	  if((secs % 10) == 9) {  Fenster=window.open("http://snoopy.ani.univie.ac.at/"+ location,"DISTRIBUTE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus(); };
    }
    
    
function startSecurePage(location) {
 Fenster =  window.open("https://vcm.ani.univie.ac.at:443" + location,"SECURE","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=800,height=540");
 Fenster.focus();
 }
    
function printPage(location) {
 Fenster = window.open("/cgi-bin/print.pl?filename=" + location,"PRINT","resizable=yes,toolbar=no,status=yes,scrollbars=yes,width=640,height=480");
 Fenster.moveTo(10,10);
 Fenster.focus();
 }

function viewPage(location) {
  Fenster = window.open(location,"INTERNAL","resizable=yes,toolbar=no,status=no,scrollbars=yes,width=1016,height=680");
 Fenster.focus();
}


function viewPicture(location) {
  Fenster = window.open(location,"PICTURE","resizable=yes,toolbar=no,status=no,scrollbars=yes,width=640,height=480");
 Fenster.focus();
}


function loadframes(navigation_file,content_file)   {
parent.topnavigation.location.href = navigation_file;
parent.content.location.href = content_file;
}

function viewQueryPage2(location) {
// alert("--");
//  Fenster = window.open("http://vcm.ani.univie.ac.at:8080" + location,"INTERNAL","resizable=yes,toolbar=no,status=no,scrollbars=yes,width=720,height=540");
  Fenster = window.open("http://marathon.soft.uni-linz.ac.at" + location,"INTERNAL","resizable=yes,toolbar=yes,status=no,scrollbars=yes,width=720,height=540");
 Fenster.focus();
}

function startPage(location) {
  Fenster = window.open(location,"EXTERNAL","resizable=yes,toolbar=yes,status=yes,scrollbars=yes,width=640,height=480");
 Fenster.focus();
}





function checkBrowser(){
        this.ver=navigator.appVersion
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
        return this
}

bw=new checkBrowser()

timSpeed=50

contHeight=210

function makeScrollObj(obj,nest){
        nest=(!nest) ? '':'document.'+nest+'.'
        this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
        this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
        this.height=bw.ns4?this.css.document.height:this.el.offsetHeight
        this.top=b_gettop
        return this
}

function b_gettop(){
        var gleft=(bw.ns4 || bw.ns5) ? parseInt(this.css.top):eval(this.css.pixelTop);
        return gleft;
}

var scrollTim;
var active=0;

function blascroll(speed){
        clearTimeout(scrollTim)
        way=speed>0?1:0
        if((!way && oScroll[active].top()>-oScroll[active].height+contHeight) || (oScroll[active].top()<0 && way)){
                oScroll[active].css.top=oScroll[active].top()+speed
                scrollTim=setTimeout("blascroll("+speed+")",timSpeed)
        }
}

function scroll(speed,destination){
        speed=destination>oScroll[active].top()?speed*1:speed*-1
        if (speed < 0) {
                moveUp(speed,destination)
        } else {
                moveDown(speed,destination)
        }
}

function moveUp(speed,destination) {
        clearTimeout(scrollTim)
        if (oScroll[active].top() > destination) {
                oScroll[active].css.top=oScroll[active].top()+speed
                scrollTim=setTimeout("moveUp("+speed+","+destination+")",timSpeed)
        }
}

function moveDown(speed,destination) {
        clearTimeout(scrollTim)
        if (oScroll[active].top() < destination) {
                oScroll[active].css.top=oScroll[active].top()+speed
                scrollTim=setTimeout("moveDown("+speed+","+destination+")",timSpeed)
        }
}

function noScroll(){
        clearTimeout(scrollTim)
}

function changeActive(num){
        oScroll[active].css.visibility='hidden'
        active=num
        oScroll[active].css.top=0
        oScroll[active].css.visibility='visible'
}

function scrollInit(){
        oScroll=new Array()
        oScroll[0]=new  makeScrollObj('divScroll01','divCont')
        oScroll[0].css.visibility='visible'
        changeActive(0)
        oControl=new makeScrollObj('divControl')
        oControl.css.visibility='visible'
}



