﻿// JScript File

function cc()
{	
    try
	{
		if(document.form1.cookiesenable != null)
		{
			document.form1.cookiesenable.value =  navigator.cookieEnabled;	
		}		
	}
	catch(ignore)
	{
	}
}

<!--
// popup window script
var usragent = navigator.userAgent.toLowerCase();
var is_ie  = (usragent.indexOf("msie") != -1);
var is_nav = ((usragent.indexOf('mozilla')!=-1) && (usragent.indexOf('spoofer')==-1)
		&& (usragent.indexOf('compatible') == -1) && (usragent.indexOf('opera')==-1)
		&& (usragent.indexOf('webtv')==-1));
var PrintWindow;
var oldWin;
function popUpWin(url, newTool, newLocation, newStatus, newMenubar, newResizable, newScrollbars, newWidth, newHeight, newLeft, newTop)
{
	if (is_ie ||  is_nav)
	{
		if (PrintWindow != null && !PrintWindow.closed)
		{
			oldWin = PrintWindow;
			oldWin.name = "oldWin";
			oldWin.close();
		}
	}
	PrintWindow=window.open(url,"newWin","toolbar=" + newTool + ",location=" + newLocation + ",status=" + newStatus + ",menubar=" + newMenubar + ",resizable=" + newResizable + ",scrollbars=" + newScrollbars + ",width=" + newWidth + ",height=" + newHeight + ",left=" + newLeft + ",top=" + newTop);
	if (PrintWindow.opener == null)
	{
		PrintWindow.opener = popupWin;
	}
	PrintWindow.opener.name = "origWin";
	PrintWindow.focus();
}
// -->

var winDocument;
function PopUpDocument(url)
{
	if (is_ie ||  is_nav)
	{
		if (winDocument != null && !winDocument.closed)
		{
			oldWin = winDocument;
			oldWin.name = "oldWin";
			oldWin.close();
		}
	}
	winDocument = window.open(url,"winDocument","toolbar=" + false + ",location=" + false + ",status=" + true + ",menubar=" + false + ",resizable=" + true + ",scrollbars=" + true + ",width=" + 900 + ",height=" + 670 + ",left=" + 10 + ",top=" + 10);
	if (winDocument.opener == null)
	{
		winDocument.opener = PopUpDocument;
	}
	winDocument.opener.name = "origWin";
	winDocument.focus();
}

function RedirectURLDelay(href, delayMiliseconde) {
    window.setTimeout("RedirectURL('" + href + "')", delayMiliseconde);
}
function RedirectURL(href) {
    window.location.href = href;
}

function HtmlEncode(clientID) 
{
     var element = document.getElementById(clientID);
     if(element)
     {
       var value = element.value;

        value = value.replace(/</g,"&lt;");
        value = value.replace(/>/g,"&gt;");

         element.value = value;
     }
} 

