/** Show the current date
 * 	Format: Dayname day month year */
function printCurrentDate()
{
	date = new Date();
	
	daynames = new Array("Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag");
	monthnames = new Array("januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december");
	
	document.write(daynames[date.getDay()] + " " + date.getDate() + " " + monthnames[date.getMonth()] + " " + date.getFullYear() + " ");
}


/**
 * Dit mooi stukje javascript mag er voor gaan zorgen dat mensen die vanaf de nieuwsbrief komen goed doorgestuurd worden.
 */

function linkReferentie()
{

	//contentframe.location.replace("WEBURL");
	
	//var linknaam = getURLParam("id");

	var url = window.location.href;
	
	//var linkNaam = "lol";
	// Het getal 42 is gerekend vanaf begin t/m id=
	var linkNaam = url.substring(42,document.URL.length);
	
	//contentframe.location.replace("http://www.google.nl");
	
	if(linkNaam == "NENkab2009")
	{
    		contentframe.location.replace("frames/NENkab2009.html");
	}
	else if(linkNaam == "demo")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/kabelber-demo.html");
	}
	else if(linkNaam == "proefberekening")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/kabelber-proefberekening.html");
	}
	else if(linkNaam == "abonnement")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/kabelber-abonnement.html");
	}
	else if(linkNaam == "prepaid")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/kabelber-prepaid.html");
	}
	else if(linkNaam == "uitbesteden")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/uitbesteden.html");
	}
	else if(linkNaam == "iVoordelen")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/Install-Voordelen.html");
	}
	else if(linkNaam == "iAanvragen")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/Install-Aanvragen.html");
	}
	else if(linkNaam == "vVoordelen")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/verdeelk-voordelen.html");
	}
	else if(linkNaam == "vAanvragen")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/verdeelk-aanvragen.html");
	}
	else if(linkNaam == "kabelberekening(alg)")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-kabelber.html");
	}
	else if(linkNaam == "beveiligingstoestellen")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-beveiligingen.html");
	}
	else if(linkNaam == "installatiemethoden")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-installmethoden.html");
	}
	else if(linkNaam == "correctiefactoren")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-correctiefactoren.html");
	}
	else if(linkNaam == "maximaleLengte")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-maxlengte.html");
	}
	else if(linkNaam == "spanningsverlies")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-spanningsverlies.html");
	}
	else if(linkNaam == "parallelleKabels")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-parallellekabels.html");
	}
	else if(linkNaam == "selectiviteit")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-selectiviteit.html");
	}
	else if(linkNaam == "gelijktijdigheid")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/cursus-gelijktijdigheid.html");
	}
	else if(linkNaam == "home")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/coreview-home.html");
	}
	else if(linkNaam == "hetBedrijf")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/coreview-hetbedrijf.html");
	}
	else if(linkNaam == "Algvoorw")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/coreview-Algvoorw.html");
	}
	else if(linkNaam == "PrivPol")
	{
		contentframe.location.replace("http://www.coreview.nl/frames/coreview-Privpol.html");
	}
	else if(linkNaam == "contact")

	{
		contentframe.location.replace("http://www.coreview.nl/frames/coreview-contact.html");
	}
	//else if(url == "http://www.coreview.nl/wwwthomastest/index.html")
	//{
	//	contentframe.location.replace("http://www.desteviadrogist.nl/frames/home.html");
	//}
	else
	{
		contentframe.location.replace("frames/Home.html");
	}
	
}

