function sdexec(num)
{
var thediv = document.getElementById('showships' + num);
if (thediv.style.display=='block'){
thediv.style.display='none'
}else{
thediv.style.display='block'
}
}
function createXMLHttpRequest1(responseFunction, url) {    
	if (window.ActiveXObject) {
		xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlReq = new XMLHttpRequest();
	}	
	xmlReq.open("GET", url);
	xmlReq.onreadystatechange = eval(responseFunction);
	xmlReq.send(null);
}
function createXMLHttpRequest2(responseFunction, url) {    
	if (window.ActiveXObject) {
		xmlReq2 = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlReq2 = new XMLHttpRequest();
	}	
	xmlReq2.open("GET", url);
	xmlReq2.onreadystatechange = eval(responseFunction);
	xmlReq2.send(null);
}
function createXMLHttpRequest3(responseFunction, url) {    
	if (window.ActiveXObject) {
		xmlReq3 = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlReq3 = new XMLHttpRequest();
	}	
	xmlReq3.open("GET", url);
	xmlReq3.onreadystatechange = eval(responseFunction);
	xmlReq3.send(null);
}
function createXMLHttpRequest4(responseFunction, url) {    
	if (window.ActiveXObject) {
		xmlReq4 = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlReq4 = new XMLHttpRequest();
	}	
	xmlReq4.open("GET", url);
	xmlReq4.onreadystatechange = eval(responseFunction);
	xmlReq4.send(null);
}
function createXMLHttpRequest5(responseFunction, url) {    
	if (window.ActiveXObject) {
		xmlReq5 = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlReq5 = new XMLHttpRequest();
	}	
	xmlReq5.open("GET", url);
	xmlReq5.onreadystatechange = eval(responseFunction);
	xmlReq5.send(null);
}
function createXMLHttpRequest6(responseFunction, url) {    
	if (window.ActiveXObject) {
		xmlReq6 = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest) {
		xmlReq6 = new XMLHttpRequest();
	}	
	xmlReq6.open("GET", url);
	xmlReq6.onreadystatechange = eval(responseFunction);
	xmlReq6.send(null);
}
function callback1() {
	if (xmlReq.readyState == 4){
		if (xmlReq.status == 200) {								        
		    parseResponse1(xmlReq,1);		
		}
	}
}
function callback2() {
	if (xmlReq2.readyState == 4){
		if (xmlReq2.status == 200) {								        
		    parseResponse1(xmlReq2,2);		
		}
	}
}
function callback3() {
	if (xmlReq3.readyState == 4){
		if (xmlReq3.status == 200) {								        
		    parseResponse1(xmlReq3,3);		
		}
	}
}
function callback4() {
	if (xmlReq4.readyState == 4){
		if (xmlReq4.status == 200) {								        
		    parseResponse1(xmlReq4,4);		
		}
	}
}
function callback5() {
	if (xmlReq5.readyState == 4){
		if (xmlReq5.status == 200) {								        
		    parseResponse1(xmlReq5,5);		
		}
	}
}
function callback6() {
	if (xmlReq6.readyState == 4){
		if (xmlReq6.status == 200) {								        
		    parseResponse1(xmlReq6,6);		
		}
	}
}
function execAjaxCall(){
var ind = location.pathname.indexOf('pages');
var ur = location.pathname.substring(0,ind+6);
//var ur = "http://db.abcnett.no/kunder/wilson/wilsonweb.nsf/pages/";
createXMLHttpRequest1("callback1", ur + "NRL.htm?open&qm=wcm_2,6,4,0");   
createXMLHttpRequest2("callback2", ur + "selfdischargers.htm?open&qm=wcm_2,6,5,0");   
createXMLHttpRequest3("callback3", ur + "Container_service.htm?open&qm=wcm_2,6,6,0");   
createXMLHttpRequest4("callback4", ur + "System_vessels.htm?open&qm=wcm_2,6,7,0");
createXMLHttpRequest5("callback5", ur + "3500_4500.html?open&qm=wcm_2,6,8,0");   
createXMLHttpRequest6("callback6", ur + "6000_10000.htm?open&qm=wcm_2,6,9,0");
}
function parseResponse1(xmlreqobj, nr){
var thediv = document.getElementById('ajaxdiv' + nr);
var ind = xmlreqobj.responseText.indexOf('<div class=cmsteaserheader>');
var rest = xmlreqobj.responseText.substring(ind);
thediv.innerHTML= rest.substring(27, rest.indexOf('</div>'));
}
