﻿// JavaScript Document

function nocache()
{
// Set to expire far in the past.
  res.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");

  // Set standard HTTP/1.1 no-cache headers.
  res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");

  // Set IE extended HTTP/1.1 no-cache headers (use addHeader).
  res.addHeader("Cache-Control", "post-check=0, pre-check=0");

  // Set standard HTTP/1.0 no-cache header.
  res.setHeader("Pragma", "no-cache");    
}

function bigscreen()
{
    X = screen.width;
    Y = screen.height;
    window.moveTo(0,0);
    window.resizeTo(X,Y)
}

function bigscreen2()
{
    window.moveTo(0,0);
    window.resizeTo(screen.width, screen.height);
}

function redpage()
{
	window.location('http://www.musschoot.be/start.html');
}

function goForTwoWiN()
{
	//javascript call from xhtml with onclick = (for win explorer without popup)
	if(navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Win") != -1){
		f = window.location('start.html');
		window.moveTo(0,0);
   	 	window.resizeTo(screen.width, screen.height);
	}else{
		f = window.open('start.html', 'Bart Musschoot','width = ' + screen.width + ', height = ' + screen.height + ', location = no, menubar = no, scrollbars = no, status = no, toolbar = no, top = 0, left = 0');
	}
}

function goForTwo(URLtoOpen, windowName)
{
	//flash call !!!
	if(navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Win") != -1){
		newWindow = window.open(URLtoOpen, windowName,'fullscreen=1');
	}else{
		newWindow = window.open(URLtoOpen, windowName,'width = ' + screen.width + ', height = ' + screen.height + ', location = no, menubar = no, scrollbars = no, status = no, toolbar = no, top = 0, left = 0');
	}
}

function goForTwoUniv()
{
	//xhtml 1.0 href call
	if(navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Win") != -1){
		newWindow = window.open('http://www.musschoot.be/start.html','mywindow','location = no, menubar = no, scrollbars = no, status = no, toolbar = no, top = 0, left = 0,');
	}else{
		newWindow = window.open('start.html', 'Bart Musschoot', 'width = ' + screen.width + ', height = ' + screen.height + ', location = no, menubar = no, scrollbars = no, status = no, toolbar = no, top = 0, left = 0');
	}
}


function openNewWindow(URLtoOpen, windowName, windowFeatures) 
{ 
  newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}


function bstart()
{
function openNewWindow(URLtoOpen, windowName, windowFeatures) 
{ 
  newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}	
}
