/* versie 0 dd.11-07-2005 */

function kies(){
    goRouting();
}

function goRouting(){
var herkomst = parent.window.location.href.split('?')[1];
    if ((parent.window.location.href.search(/C:/) == -1)
       &&(parent.window.location.href.search(/D:/) == -1)
       &&(parent.window.location.href.search(/W:/) == -1)
       &&(parent.window.location.href.search(/pbn-computer/) == -1)
       ){
    	switch (herkomst){
    	    case 'EEB'   :
           	    		  location.replace('http://www.pszoetermeer.nl/testTXI/index.html');
                    break;
    	    case 'beheer':
           	    		  location.replace('http://www.pszoetermeer.nl/testTXI/li/beheer.html');
                    break;
    	    case 'undefined':
            			  parent.window.location.replace();
                   		  parent.window.location.href = 'http://www.pszoetermeer.nl';
    	}
    }else{
    	switch (herkomst){
    	    case 'EEB'   :
                          if (parent.window.location.href.search(/Bouw/)>-1){parent.window.location.replace('http://pbn-computer/Taxidiscounter.nl/-Bouw_v2-/index.html');}
                          if (parent.window.location.href.search(/Web/)>-1){parent.window.location.replace('http://pbn-computer/Taxidiscounter.nl/-Web_v2-/index.html');}
                    break;
    	    case 'beheer':
                          if (parent.window.location.href.search(/Bouw/)>-1){parent.window.location.replace('http://pbn-computer/Taxidiscounter.nl/-Bouw_v2-/pages/li/beheer.html');}
                          if (parent.window.location.href.search(/Web/)>-1){parent.window.location.replace('http://pbn-computer/Taxidiscounter.nl/-Web_v2-/pages/li/beheer.html');}
                    break;
        }
    }
}
