/*var browser = new Object();
var win=false;

if (navigator.userAgent.indexOf("Win")!=-1) {
  win=true;
}

browser.version = parseInt(navigator.appVersion);

browser.isNavigator = false;
browser.isIE = false;

if (navigator.appName.indexOf("Netscape") != -1) {
  browser.isNavigator = true;
}
if (navigator.appName.indexOf("Microsoft") != -1) {
  browser.isIE = true;
}

if ((browser.isNavigator == true)&&win) {
	document.writeln('&nbsp;');
} else {
*/

if (! isFramePresent('<% =Application("FrameLock")%>'))
	{
		location="<% =Application("destination")%>";
	}


function isFramePresent(strFrameName)
{
	var boolFrameFound	= false;
	var intCounter			= 0;
	
	for (intCounter=0; intCounter < top.frames.length; intCounter++)
	{
		boolFrameFound = boolFrameFound || top.frames[intCounter].name == strFrameName;
	}
	
	
	return boolFrameFound;
}

if (navigator.appName.indexOf("Microsoft") != -1) //&&		(navigator.userAgent.indexOf("Win")!=-1))
 {
	document.writeln('<style type="text/css">');
	document.writeln('<!--');
	document.writeln('input.hoofdnav { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: bold; line-height:12px; width: 300; border:1 solid #333333 ;height: 18;}');
 	document.writeln('input.veld { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; border:1 solid #333333 ;height: 18;}');
	document.writeln('input.veldsmall { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 62; border:1 solid #333333 ;height: 18;}');
	document.writeln('input.veldmid { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 130; border:1 solid #333333 ;height: 18;}');
	document.writeln('input.maatwijzer { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:underline; font-size:11px; color:#616158; padding:2px; margin:1px;font-weight: bold; line-height:12px; width: 45px; border:0px; height: 16px;}');
	document.writeln('textarea.reporttxt { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 200; border:1 solid #333333}');
	document.writeln('textarea { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; border:1 solid #333333}');
	document.writeln('textarea.message { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; height: 150; border:1 solid #333333}');
	document.writeln('textarea.suggest { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; border:1 solid #333333}');
	document.writeln('input.send { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; margin:1;font-weight: normal; line-height:12px; width: 75; }');
	document.writeln('input.sendpass { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; margin:1;font-weight: normal; line-height:12px; width: 140; }');
	document.writeln('input.changeaccount { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; margin:1;font-weight: normal; line-height:12px; width: 170; }');
	document.writeln('select.hoofdnav { align:center; background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: bold; line-height:18px; width:180px; height:50px; border:1px solid #333333}');
	document.writeln('select { align:center; background-color:#9AE0F8; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: normal; line-height:12px; width:110px; height:13px; border:1px solid #333333}');
	document.writeln('select.userfav { align:center; background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: bold; line-height:12px; width:180px; height:13px; border:1px solid #333333}');
	//document.writeln('select.maatwijzer { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 60px;height: 13px; border:1px solid #333333}');
	document.writeln('select.numbernav { align:center; background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: bold; line-height:18px; width:43; height:20px; border:1px solid #333333}');
	document.writeln('\/\/ -->');
	document.writeln('</style>');
}

if (navigator.appName.indexOf("Netscape") != -1) //&&		(navigator.userAgent.indexOf("Win")!=-1))
 {
	document.writeln('<style type="text/css">');
	document.writeln('<!--');
	document.writeln('input.hoofdnav { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: bold; line-height:12px; width: 300; border:1 solid #333333 ;height: 18;}');
 	document.writeln('input.veld { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; border:1 solid #333333 ;height: 18;}');
	document.writeln('input.veldsmall { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 62; border:1 solid #333333 ;height: 18;}');
	document.writeln('input.veldmid { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 130; border:1 solid #333333 ;height: 18;}');
	document.writeln('input.maatwijzer { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:underline; font-size:11px; color:#616158; padding:2px; margin:1px;font-weight: bold; line-height:12px; width: 45px; border:0px; height: 16px;}');
	document.writeln('textarea.reporttxt { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 200; border:1 solid #333333}');
	document.writeln('textarea { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; border:1 solid #333333}');
	document.writeln('textarea.message { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; height: 150; border:1 solid #333333}');
	document.writeln('textarea.suggest { background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 250; border:1 solid #333333}');
	document.writeln('input.send { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; margin:1;font-weight: normal; line-height:12px; width: 75; }');
	document.writeln('input.sendpass { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; margin:1;font-weight: normal; line-height:12px; width: 140; }');
	document.writeln('input.changeaccount { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; margin:1;font-weight: normal; line-height:12px; width: 170; }');
	document.writeln('select.hoofdnav { align:center; background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: bold; line-height:18px; width:180px; height:20px; border:1px solid #333333}');
	document.writeln('select { align:center; background-color:#9AE0F8; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: normal; line-height:12px; width:110px; height:13px; border:1px solid #333333}');
	document.writeln('select.userfav { align:center; background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: bold; line-height:12px; width:180px; height:13px; border:1px solid #333333}');
	//document.writeln('select.maatwijzer { background-color:#ffffff; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2; margin:1;font-weight: normal; line-height:12px; width: 60px;height: 13px; border:1px solid #333333}');
	document.writeln('select.numbernav { align:center; background-color:#E3EEEC; font-family:verdana, geneva, arial; text-decoration:none; font-size:10px; color:#333333; padding:2px; margin:1px;font-weight: bold; line-height:18px; width:43; height:20px; border:1px solid #333333}');

	document.writeln('\/\/ -->');
	document.writeln('</style>');
}
