/*
	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	:: Naam             : String Functions                                     	::
	:: Programmeur      : Kees Boon 		                                    ::
	:: Laatst gewijzigd : 21 februari 2007                                      ::
	:: Omschrijving     : Navigate functies                    					::
	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	

	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	:: Overzicht functies                                                       ::
	::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	
	getSiteRoot()
	---------------
	Omschijving: geeft de root van de site terug, b.v http://test.webdev.didoc.local
	Invoer     : nvt
	Geeft terug: string

	escapeFrames()
	---------------
	Omschijving: laad url van pagina in buitenste document als pagina zich in frame bevind.
	Invoer     : nvt
	Geeft terug: nvt

*/

function getSiteRoot() {
	var ex = /^(https?:\/\/[^\/]+)/i;
	var match = ex.exec(document.location)
	return (match)? match[0]: null;
}

function escapeFrames() {
	if (top.location != self.location) {
	  top.location = self.location
	}
}
