//prevent interactiemodel from being framed
if (top!=self) {
     top.location=self.location;
}

// script for webtrends
var referrer = document.referrer;
var target = '/webstats/';
document.write('<script language=\"JavaScript\" type=\"text/javascript\" src=\"' + target + '?referrer=' + escape(referrer) + '\"></script>');

var d = document;
var l = (d.layers)?1:0;// check for Netscape 4

// open popup window
var popup;
function openPopup_430(Url,w,h) {
	var popW = w ? w : 430;
	var popH = h ? h : 447;
	if (popup && !popup.closed) {popup.close();}
	popup = window.open(Url, "Popup","height=" + popH + ",width=" + popW + ",resizable=yes,status=yes,scrollbars=no,left=165,top=30");
	popup.focus();
}

// open popup window
var popup;
function openPopup_446(Url,w,h) {
	var popW = w ? w : 446;
	var popH = h ? h : 450;
	if (popup && !popup.closed) {popup.close();}
	popup = window.open(Url, "Popup","height=" + popH + ",width=" + popW + ",resizable=yes,status=yes,scrollbars=no,left=165,top=30");
	popup.focus();
}

function openPopup_636(Url,w,h) {
	var popW = w ? w : 636;
	var popH = h ? h : 450;
	if (popup && !popup.closed) {popup.close();}
	popup = window.open(Url, "Popup","height=" + popH + ",width=" + popW + ",resizable=yes,status=yes,scrollbars=yes");
	popup.focus();
}

// link from popup window opens in opener (if present)

function from_popup(url) 
{
	obj = window.opener.top;
	if (obj && !obj.closed)
	{
		obj.location.href=url;
		obj.focus();
	}
	else
	{
		window.open(url);
	}
}

function openPopup(Url,w,h,scroll) {
	var popScroll = scroll ? scroll : 'no';
	if (popup && !popup.closed) {popup.close();}
	popup = window.open(Url, "Popup","height=" + h + ",width=" + w + ",resizable=yes,status=yes,scrollbars=" + popScroll + ",left=165,top=30");
	popup.focus();
}

/*
     remove illegal characters     
 */
var splChar = [ '<' , '>', ':' , '^','{','}','(',')']; 

var charFound = false; 

var tempQueryString = unescape(location.search.replace(/\+/g,  " ")); 

for ( var i=0 ;  i<splChar.length; i++)  { 
        var regex = new RegExp("\\"+splChar[i],"gi");                 
        if (tempQueryString.search(regex)!=-1) 
        { 
                charFound = true; 
                tempQueryString = tempQueryString.replace(regex,""); 
        } 
} 

if(charFound)        { 
        location.search = tempQueryString; 
}
