/* created 2010-12-19 16:38:01 by NOEO Template Editor 1.0 */ 
var selectlist =new Array();
var counter=0;
var sucesscounter=1;
var sucesslist=new Array(); 
function in_array(item,arr) {
for(p=0;p<arr.length;p++) if (item == arr[p]) return true;
return false;
} 
function vtg_action(obj,areaid,pic,act) { 

var roptslist=get_objects_id('roptions').value.split(','); 
if(act) { 
 
if(in_array(areaid,roptslist)) { 

if(sucesscounter<=roptslist.length) { 
if(!in_array(areaid,sucesslist)) {
sucesslist[sucesslist.length]=areaid;
} else {
obj.style.cursor='wait';
return false;
} 
}
} 
if(sucesslist.length>=roptslist.length) {
get_objects_id("success_result").value=1;
sucesscounter=1;
sucesslist=new Array();
 get_objects_id("vtg_form").submit();
} else if(sucesscounter>=roptslist.length) {
get_objects_id("success_result").value=0;
sucesscounter=1;
sucesslist=new Array();
get_objects_id("vtg_form").submit();
} else { 
sucesscounter=sucesscounter+1;
} 
 
 
selectlist[counter]=obj; 
counter=counter+1; 
for(i=0;selectlist.length>i;i++) { 
//mouseclick(get_objects_id(selectlist[i]));
}
}
} 
function markerbox(objectid) { 
if(get_objects_id(objectid)) { 
get_objects_id(objectid).checked=true; 

get_objects_id("vtg_form").submit();
}
 
} 
 
 
 
var tempcontent=''; 
var laststartrow=0; 
var section; 
var param, addurl,curelement; 
function updatesection(thissection,param2,url) { 
section=thissection; 
 
 
 
if(laststartrow<=0) 
laststartrow=0; 
 
if(param2.indexOf('?')<0) 
addurl='?'+param2; 
else if(param2) 
addurl='&'+param2; 
else 
addurl=''; 
url=url+addurl; 
 
if(get_objects_id('updatesection_'+section)) { 
 get_objects_id('updatesection_'+section).style.display='block'; 
/* 
get_objects_id('updatesection_'+section).style.opacity='0.3'; 
get_objects_id('updatesection_'+section).style.filter='Alpha(opacity=30)'; 
*/ 
tempcontent=get_objects_id('updatesection_'+section).scrollHeight+'px'; 
 
 
if(get_objects_id('loadstatus_'+section)) 
get_objects_id('updatesection_'+section).innerHTML=get_objects_id('loadstatus_'+section).innerHTML; 
else if(get_objects_id('loadstatus')) 
get_objects_id('updatesection_'+section).innerHTML=get_objects_id('loadstatus').innerHTML; 
get_objects_id('updatesection_'+section).style.height=tempcontent; 
// get_objects_id('updatesection_'+section).style.backgroundColor='#fcfbfb'; 
 
 
} 
 
http_request = false; 
if (window.XMLHttpRequest) { // Mozilla, Safari,... 
http_request = new XMLHttpRequest(); 
if (http_request.overrideMimeType) { 
// zu dieser Zeile siehe weiter unten 
} 
} else if (window.ActiveXObject) { // IE 
try { 
http_request = new ActiveXObject("Msxml2.XMLHTTP"); 
} catch (e) { 
try { 
http_request = new ActiveXObject("Microsoft.XMLHTTP"); 
} catch (e) {} 
} 
} 
if (!http_request) { 
// alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); 
return false; 
} 
 
 
http_request.onreadystatechange = alertFeedback_updatesection; 
http_request.open('GET', url, true); 
http_request.send(url); 
 
} 
function alertFeedback_updatesection() { 
if (http_request.readyState == 4) { 
if (http_request.status == 200) { 
 
get_objects_id('updatesection_'+section).innerHTML=http_request.responseText; 
if(get_objects_id('updatesection_'+section)) { 
 
get_objects_id('updatesection_'+section).style.height="auto"; 
 
} 
 
} else { 
// error
} 
} 
}
