// --------------------------------------------------------------------------------------------- //
// Force content to load in iFrame on main page:                                                 //
// --------------------------------------------------------------------------------------------- //
//                                                                                               //
// Inlude this file in the MAIN PAGE header, containing the iFrame:                              //
//                                                                                               //
// <head>                                                                                        //
// <script src="js/common/load_frame.js" language="JavaScript" type="text/javascript"> </script> //
// </head>                                                                                       //
//                                                                                               //
// Add onload="load_frame()" to the opening BODY tag of the MAIN PAGE, containing the iFrame:    //
//                                                                                               //
// <body onload="load_frame">                                                                    //
//                                                                                               //
// </body>                                                                                       //
//                                                                                               //
// --------------------------------------------------------------------------------------------- //

var loc = "./content/index.php?section=frontpage&content=start&type=text"; // optional default page loading into the iframe

var str = location.search;
	if(str != ""){
	loc = str.substring(1, str.length)
}

function load_frame(){
	document.getElementById('iframe01').src= loc;
}
