<!--
function flvFPW1(){//v1.44
	// Copyright 2002-2004, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
	var v1=arguments,v2=v1[2].split(","),v3=(v1.length>3)?v1[3]:false,v4=(v1.length>4)?parseInt(v1[4]):0,v5=(v1.length>5)?parseInt(v1[5]):0,v6,v7=0,v8,v9,v10,v11,v12,v13,v14,v15,v16;
	v11=new Array("width,left,"+v4,"height,top,"+v5);
	for (i=0;i<v11.length;i++)
	{
		v12=v11[i].split(",");
		l_iTarget=parseInt(v12[2]);
		if (l_iTarget>1||v1[2].indexOf("%")>-1)
		{
			v13=eval("screen."+v12[0]);
			for (v6=0;v6<v2.length;v6++)
			{
				v10=v2[v6].split("=");
				if (v10[0]==v12[0])
				{
					v14=parseInt(v10[1]);
					if (v10[1].indexOf("%")>-1)
					{
						v14=(v14/100)*v13;
						v2[v6]=v12[0]+"="+v14;
					}
				}
				if (v10[0]==v12[1])
				{
					v16=parseInt(v10[1]);
					v15=v6;
				}
			}
			if (l_iTarget==2)
			{
				v7=(v13-v14)/2;
				v15=v2.length;
			}
			else if (l_iTarget==3)
			{
				v7=v13-v14-v16;
			}
			v2[v15]=v12[1]+"="+v7;
		}
	}
	v8=v2.join(",");
	v9=window.open(v1[0],v1[1],v8);
	if (v3)
	{
		v9.focus();
	}
	document.MM_returnValue=false;
	return v9;
}

function shownewPop(lnk,width,height,title){
	if(title==undefined) title="";
	else title=" &gt; "+title;
	var win = new Window(Application.getNewId(), {className: "theme1", title: "ADR Resources"+title,
	width:width, height:height, minimizable: false, maximizable: false,
	resizable: false, url: lnk})
	win.showCenter();
}

function setCookie(name, value, expires, path, domain, secure) {
	document.cookie = name + "=" + escape(value) +
	((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
	((path == null) ? "" : "; path=" + path) +
	((domain == null) ? "" : "; domain=" + domain) +
	((secure == null) ? "" : "; secure");
}

function getCookie(name){
	var cname = name + "=";
	var dc = document.cookie;
	if (dc.length > 0) {
		begin = dc.indexOf(cname);
		if (begin != -1) {
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
			return unescape(dc.substring(begin, end));
		}
	}
	return null;
}

function delCookie(name)
{
	expires = new Date();
	expires.setYear(expires.getYear() - 1);

	document.cookie = name + '=' + '; expires='+expires;
}

function clearCookie(name,path,domain){

//	if(path==undefined) path="/aryme1/";
	if(getCookie(name)){
		expires = new Date();
		expires.setYear(expires.getYear() - 1);
		document.cookie=name+"=" +((path==null)?"":";path="+path) + ((domain==null)?"":";domain="+domain)+"; expires="+expires;
	}
}

function clearCookies()
{
	Cookies = document.cookie;
	Cookie = Cookies;
	expires = new Date();
	expires.setYear(expires.getYear() - 1);

	while(Cookie.length > 0)
	{
		//All cookie name-value pairs end with a semi-colon, except the last one.
		Cookie = Cookies.substr(0, Cookies.indexOf(';'));
		Cookies = Cookies.substr(Cookies.indexOf(';') + 1, Cookies.length);

		if(Cookie != '')
		document.cookie = Cookie + '; expires=' + expires;
		else
		document.cookie = Cookies + '; expires=' + expires;
	}
}

function infocookies(){
	formtest.textarea1.value=document.cookie;
	return false;
}

function gopage(win){
	pwin=win;
	pwin.close();
	top.location="/getpage.php?section=7";
}

function gocpanel(val,lang){
	var m;
	var cookieval = getCookie(val)
	if(lang!="" && lang!= null && lang!= "null") lang="&lang="+lang;
	else lang="";
	if ( cookieval== null) {
		try{
			flvFPW1('/p_zone_1.php?mode=1'+lang , 'securezone', 'width=364,height=250,left=0,top=0', 1, 1, 1);
		}
		catch(e){
			top.location="/getpage.php?section=7";
		}
	}else{
		top.location="/getpage.php?section=7";
	}
}

function activateCookie(val){
	if (val) {
		setCookie('valid',1);
	}else{
		clearCookie('valid');
	}
}

function userdisconnected(){
	shownewPop('/p_disconnect_03.php',323,223);
	//	flvFPW1('p_disconnect_03.php' , 'disconnected', 'width=323,height=223', 1, 2, 2);
}
function userexpired(){
	shownewPop('/p_expire_01.php',364,250,"Disconnection");
	//	flvFPW1('p_expire_01.php' , 'expire', 'width=364,height=250', 1, 2, 2);
	clearCookie('valid');
}
function userAccessAlert(val){
	shownewPop('/pop_access.php?mode='+val,323,223);
	//	flvFPW1('pop_access.php?mode='+val,'popupLink','width=323,height=223',1,2,2)
}
function userinvalid(){
	shownewPop('/p_invalid_01.php',364,250,"Unauthorized access");
	//	flvFPW1('p_invalid_01.php' , 'invalid', 'width=364,height=250', 1, 2, 2);
}
function gotoPage(section,page){
	top.location=	'/getpage.php?section='+section+'&page='+page;
}
//-->