									
// Global Variables
self.name = "mainwindow";

var ie4=document.all;
var ns6=document.getElementById&&!document.all;

// Check if website isn't run in other page
if(location.hash=='#forceoverwrite')
{
	t = 2;
	k = setTimeout('reloadWindow()',1000);
}

function reloadWindow()
{
	t = t - 1;
	if (t == 0)
	{	
		var str = self.location;
		str.replace(/#forceoverwrite/," ");
		top.location=str; 
	}
	else
	{	
		k = setTimeout('reloadWindow()',1000); 
	}
}

if (top.location.hostname!=self.location.hostname) 
	top.location=self.location;

// Cross-Browser Scripts
if (!document.getElementById && document.all) {
	document.getElementById = function(id) {
		return document.all[id];
	}
}
else if (document.layers) {
	document.getElementById = function(id) {
		return eval('document.'+id);
	}
}
else if (!document.getElementById && !document.all) {
	document.getElementById = function(id) {
		// Very old browser. We do this so that
		// object.style keeps working (but
		// without doing anything)
		return { style: {} };
	}
}

// Encoding functions
function encodePoint(value) {
	str=value;
	str=str.replace(/\./g,'%2E');
	return str;
}

function decodePoint(value) {
	str=element.value;
	str=str.replace(/%2E/g,'.');
	return str;
}

function encodePlus(value) {
	str=value;
	str=str.replace(/\+/g,'%2B');
	return str;
}

function decodePlus(value) {
	str=value;
	str=str.replace(/%2B/g,'+');
	return str;
}

function RCBLV_Verify(val)
{	
	var ctrl = document.getElementById(val.controltovalidate);
	var col = ctrl.all
	for (i = 0; i < col.length; i++)
	{
		if (col[i].tagName.toUpperCase() == 'INPUT')
		{
			if (col[i].checked)
			{ return true; }
		}
	}
	return false;
}