
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
	idxArray[i] = i;
CSAction2(CSInit, idxArray);}
CSStopExecution=false;
function CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;

function CSActionGroup (action) {
	for(var i=1;i<action.length;i++) { CSAction(new Array(action[i])); }
}

function CSCenterNewWindow(action) {
	var wf = "";	
	wf = wf + "width=" + action[3];
	wf = wf + ",height=" + action[4];
	wf = wf + ",resizable=" + (action[5] ? "yes" : "no");
	wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");
	wf = wf + ",menubar=" + (action[7] ? "yes" : "no");
	wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");
	wf = wf + ",directories=" + (action[9] ? "yes" : "no");
	wf = wf + ",location=" + (action[10] ? "yes" : "no");
	wf = wf + ",status=" + (action[11] ? "yes" : "no");		
	


var ecranL=screen.width;
var ecranH=screen.height;

var hauteur = action[4];
var largeur= action[3];

var deplaceL=((ecranL/2)-(largeur/2));
var deplaceH=((ecranH/2)-(hauteur/2));

nouveau=window.open(action[1],action[2],wf);

if (action[12]) {if (navigator.appName == "Netscape"){var deplaceH = (deplaceH - 40);};

nouveau.moveTo(deplaceL, deplaceH);
nouveau.focus();}

}


/*


    function setCookie (name, value, expires, path, 
      domain, secure) {
			    
      if (value != null && value != "") {
                
        document.cookie = name + "=" + escape (value)
          + ((expires != null && expires != "") ? 
            (";expires=" + expires.toGMTString ()) : "")
          + ((path != null && path != "") ? 
            (";path=" + path) : "")
          + ((domain != null && domain != "") ? 
            (";domain=" + domain) : "")
          + ((secure == true) ? (";secure") : "");
       }
    }  


    function readCookie (name) {
	   	
      var trackCookies = document.cookie.split (";");
			
      for (var cnt = 0; cnt < trackCookies.length; cnt ++) {
	       			
	var nextVal = trackCookies [cnt].split ("=");
		 

        // cookie gefunden?

	if (nextVal [0] == name)	
          return unescape (nextVal [1]);
      }
             
      return "NOT_FOUND";
    }  

*/