var IPadr = ""
function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  
  return remote;
}
function MyAddress(IP){
IPadr=IP
}
function launchRemote(addr) {
var regExp = /^10\.0\.\d{1,3}\.\d{1,3}$/ 
if( regExp.test( IPadr ) ) { 

  myRemote = launch("http://mailhost.contiexpedan.be/telefoon.nsf/LineList_PORTLOOKUP_ACSA_NEW?SearchView&Query=field+JobTitle="+addr+"&searchOrder=4", "Search", "height=300,width=750,screenX=25,left=25,screenY=50,top=50,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0", "");
}
else {
  myRemote = launch("http://mailhost.contiexpedan.be/telefoon.nsf/LineList_PORTLOOKUP_ACSA_NEW?SearchView&Query=field+JobTitle="+addr+"&searchOrder=4", "Search", "height=300,width=750,screenX=25,left=25,screenY=50,top=50,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0", "");
}
}
function launchPort(portaddr) {
  myRemote = launch("http://mailhost.contiexpedan.be/Ports.nsf/LineList?SearchView&Query=field+Line="+portaddr+"&searchOrder=4", "ContiInfo", "height=600,width=800,screenX=50,left=50,screenY=50,top=50,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0", "");
}
function LaunchFlash() {
  height = (screen.height/2)-300
  width = (screen.width/2)-400
  myRemote = launch("http://www.acsa.be/Movie1.html", "", "height=550,width=800,screenX="+width+",left="+width+",screenY="+height+",top="+height+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=1,toolbar=0", "");
}
function go(url,w,h) {
	var dim = eval('"width=' + w + ',height=' + h + ',toolbar=0, location=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0"');
	Npop = window.open(url,"instruct",dim);
	Npop.focus();
	oldWin = Npop.opener;
}
if (window.Event)   
  document.captureEvents(Event.MOUSEUP);   
 function nocontextmenu()    
{  
 event.cancelBubble = true  
 event.returnValue = false;  
  return false;  
}  
 function norightclick(e)   
{  
 if (window.Event)   
 {  
  if (e.which == 2 || e.which == 3)  
   return false;  
 }  
 else  
  if (event.button == 2 || event.button == 3)  
  {  
   event.cancelBubble = true  
   event.returnValue = false;  
   return false;  
  }  
 }  
 document.oncontextmenu = nocontextmenu;   
document.onmousedown = norightclick;   
 function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
function loadNewsletter(){
    if (document.newsletterform.Newsletters.options[document.newsletterform.Newsletters.selectedIndex].value != "none") {
    goto = document.newsletterform.Newsletters.options[document.newsletterform.Newsletters.selectedIndex].value
    window.open(goto, 'Newsletter','toolbar=no,status=no,menubar=no,resizable=yes');
    }                       
}
