
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function twoFrames(url1,url2) {
    parent.cncMenu.location.href=url1;
    parent.cncInhalt.location.href=url2;
}

function threeFrames(url1,url2,url3) {
    parent.cncMenu.location.href=url1;
    parent.cncInhalt.location.href=url2;
    parent.cncRight.location.href=url3;
}

function inhFrame(x,y) {
    var url1 = 'mnu'+x+'.htm';
    var url2 = 'inh'+y+'.htm';
    var url3 = 'rgt'+x+'.htm';
    parent.cncMenu.location.href=url1;
    parent.cncInhalt.location.href=url2;
    parent.cncRight.location.href=url3;
}

function inhSubFrame(x) {
    var url2 = '';
    if (x=='Gast') { url2 = 'http://www.cnc-workstation.de/cgi-bin/guestbook.php.cgi'; }
    else if ((x=='Firma')|(x=='Link')) { url2 = 'html/inh'+x+'.htm';}
    else if (x=='Email') { url2 = 'http://www.cnc-workstation.de/cgi-bin/formmanager.php.cgi?action=ext_preview&fid=1';x='Firma';}
    else { url2 = 'html/nfo'+x+'.htm';}

    var url1 = 'html/mnu'+x+'.htm';
    var url3 = 'html/rgt'+x+'.htm';
    parent.cncMenu.location.href=url1;
    parent.cncInhalt.location.href=url2;
    parent.cncRight.location.href=url3;
}

function popup(url,name,w,h,s){
    neu = window.open(url,name,w,h,s,'marginwidth=0,marginheight=0,resizable=0,status=0,toolbar=0,menubar=0,location=1');
}

function openPop(x,h,w){
    var url = 'html/inh'+x+'.htm';
    neu = window.open(url,"popDialog","height="+h+",width="+w+",scrollbars=no,resizable=1");
}

function openPage(url1) {

    parent.cncInhalt.location.href=url1;

}
