	var ASL_HTTPLOCAL, ASL_PATHLIB, ASL_PATHSKIN, ASL_PATHIMAGE, ASL_PATHSCRIPT;
	var DateFormat = 'dmy', DateSep = '/';	
	var FlagChange = false;
	var MonthCheck = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
	var SelectCalendarObj = null, SpinYearTag = '';
	var tID_FV = 0, FrameLink;
	
	if (isIE()) window.opener = false;	
	if (window.event) document.captureEvents(event.MouseUp);
	
	function nocontextmenu() {
		event.cancelBubble = true;
		event.returnValue = false;
		return false;
	}
	function norightclick(e) {
		if (event.button == 2 || event.button == 3) {
			event.cancelBubble = true;
			event.returnValue = false;
			return false;
		}
	}
	//if (document.layers) document.captureEvents(event.MouseDown);
	//document.oncontextmenu = nocontextmenu;
	//document.onmousedown = norightclick;
	//document.onmouseup = norightclick;
	window.focus();

/* PUBLIC FUNCTIONS */
function CreateID() 		{ var cid = new Date(); return(parseFloat(cid.valueOf())); }
function ScriptText(vName)	{ if (NotNull(vName)) return("'" + vName + "'"); else return(''); }
function NotNull(vName) 	{ return(IfNull(vName) ? false: true); }
function ChangeControl() 	{ FlagChange = true; }
function Zero(v, c) {
	var z = '000000000000000000000000000000', tmp = String(v);
	if (tmp.length < c) return z.substr(0, c - tmp.length) + tmp; else return tmp;
}
function IfNull(vName) 		{
	if (!vName) return(true);
	if (vName == null) return(true);
	if (typeof(vName) == 'number') if (isNaN(vName)) return(true);
	if (typeof(vName) == 'undefined') return(true);
	if (typeof(vName) == 'string') if (vName == '') return(true);
	return(false);
}

/* STRING FUNCTIONS */
function StrUpper(s) {
	var r = s, re;
	re = /i/gi; r = r.replace(re, "Ý");
	re = /ý/gi; r = r.replace(re, "I");
	return(r.toUpperCase());
}

function StrLower(s) {
	var r = s, re;
	re = /Ý/gi; r = r.replace(re, "i");
	re = /I/gi; r = r.replace(re, "ý");
	return(r.toLowerCase());
}

function SQLStrGet(s) {
	var r = s, re;
	re = /é/gi; r = r.replace(re, '"');
	re = /~/gi; r = r.replace(re, ",");
	return(r);		
}
/* IMAGE FUNCTIONS */
function SkinIconSrc(img, size) 	{ return(ASL_PATHSKIN + '/Icons/' + size.toString() + 'x' + size.toString() + '/' + ImageType(img)); }
function SkinImageSrc(img)			{ return(ASL_PATHSKIN + '/Images/' + ImageType(img)); }
function PublicImageSrc(img)		{ return(ASL_PATHIMAGE + '/' + ImageType(img)); }
function LocalImageSrc(img, path)	{ if (NotNull(path)) return(ASL_HTTPLOCAL + path + '/' + ImageType(img)); else return(ASL_HTTPLOCAL + '/Images/' + ImageType(img)); }
function TagAlt(Value)				{ if (NotNull(Value)) return(' alt="' + Value + '"'); else return(''); }
function TagTitle(Value)			{ if (NotNull(Value)) return(' title="' + Value + '"'); else return(''); }
function TagStyle(Value)			{ if (NotNull(Value)) return(' style="' + Value + '"'); else return(''); }
function TagParam(Value)			{ if (NotNull(Value)) return(' ' + Value); else return(''); }
function ImageType(iName) {
	if ((iName.toLowerCase().indexOf('.jpg') == -1) && (iName.toLowerCase().indexOf('.jpeg') == -1) && (iName.toLowerCase().indexOf('.gif') == -1) && (iName.toLowerCase().indexOf('.png') == -1)) return(iName + '.png'); else return(iName);
}
function PngImageName(img) {
	if ((img.toLowerCase().indexOf('.png') > -1) && (isIE() == true))
		return(' style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + ScriptText(img) + ');"');
	else return('');
}
function PngImageSrc(img) {
	if ((img.toLowerCase().indexOf('.png') > -1) && (isIE() == true))
		return(ASL_PATHIMAGE + '/spacer.gif');
	else return(img);
}
function SkinIcon(img, size, desc, param) {
	var imgSrc = ASL_PATHSKIN + '/Icons/' + size.toString() + 'x' + size.toString() + '/' + ImageType(img);
	var pngImg = PngImageName(imgSrc);
	return('<img src="' + PngImageSrc(imgSrc) + '" width="' + size.toString() + '" height="' + size.toString() + '" border="0"' + pngImg + TagAlt(desc) + TagParam(param) + ' />');	
}

function SkinImage(img, width, height, desc, param) {
	var imgSrc = ASL_PATHSKIN + '/Images/' + ImageType(img);
	var pngImg = PngImageName(imgSrc);
	return('<img src="' + PngImageSrc(imgSrc) + '" width="' + width.toString() + '" height="' + height.toString() + '" border="0"' + pngImg + TagAlt(desc) + TagParam(param) + ' />');	
}

function PublicImage(img, width, height, desc, param) {
	var imgSrc = ASL_PATHIMAGE + '/' + ImageType(img);
	var pngImg = PngImageName(imgSrc);
	return('<img src="' + PngImageSrc(imgSrc) + '" width="' + width.toString() + '" height="' + height.toString() + '" border="0"' + pngImg + TagAlt(desc) + TagParam(param) + ' />');	
}

function LocalImage(img, path, width, height, desc, param) {
	if (NotNull(path)) var xpath = path + '/'; else var xpath = '/Images/';
	var imgSrc = ASL_HTTPLOCAL + xpath + ImageType(img);
	var pngImg = PngImageName(imgSrc);
	return('<img src="' + PngImageSrc(imgSrc) + '" width="' + width.toString() + '" height="' + height.toString() + '" border="0"' + pngImg + TagAlt(desc) + TagParam(param) + ' />');	
}

function Spacer(w, h) {
	return('<img src="' + ASL_PATHIMAGE + '/spacer.gif" width="' + w + '" height="' + h + '" border="0">');
}

/* WINDOW & BROWSER FUNCTIONS */
function GetWindowWidth(pWin) 	{ if (isIE()) return pWin.document.body.clientWidth; else return pWin.outerWidth; }
function GetWindowHeight(pWin) 	{ if (isIE()) return pWin.document.body.clientHeight; else return pWin.outerHeight; }
function GetScreenWidth() 		{ return screen.availWidth - 10; }
function GetScreenHeight() 		{ return screen.availHeight - 35; }
function isIE() 				{ if ((navigator.userAgent.indexOf("MSIE") != -1) && isOpera() == false) return true; else return false; }
function isNetscape() 			{ if (navigator.userAgent.indexOf("Netscape") != -1) return true; else return false; }
function isFirefox() 			{ if (navigator.userAgent.indexOf("Firefox") != -1) return true; else return false; }
function isOpera() 				{ if (navigator.userAgent.indexOf("Opera") != -1) return true; else return false; }
function isSafari() 			{ if (navigator.userAgent.indexOf("Safari") != -1) return true; else return false; }
function isCamino() 			{ if (navigator.userAgent.indexOf("Camino") != -1) return true; else return false; }
function WindowOpen(wLocation, wName, wParam, wCenter, wMax) {
	if (wParam == "") {
		wParam = "toolbar=no, location=no, directories= no, status= yes, menubar=no, resizable=yes, scrollbars=yes";
		if (wMax && wMax == true) 
			wParam += ", width=" + GetScreenWidth() + ", height=" + GetScreenHeight(this) + ", left=0, top=0";
		else wParam += ", width=790, height=520";
	} else {
		if (wParam.indexOf("scrollbars=") == -1) wParam += ", scrollbars=yes"
		if (wParam.indexOf("toolbar=") == -1) wParam += ", toolbar=no"
		if (wParam.indexOf("directories=") == -1) wParam += ", directories=no"
		if (wParam.indexOf("status=") == -1) wParam += ", status=no"
		if (wParam.indexOf("resizable=") == -1) wParam += ", resizable=yes"
		if (wParam.indexOf("center=") == -1) wParam += ", center=yes"
		if (wParam.indexOf("menubar=") == -1) wParam += ", menubar=no"
		if (wParam.indexOf("width=") == -1) wParam += ", width=790"
		if (wParam.indexOf("height=") == -1) wParam += ", height=520"
	}
	//alert(wParam);
	if (wMax == false) {
	if (wCenter || wCenter == true) {
	
		var w1, w2, wwidth, wheight, wleft, wtop
		w1 = wParam.indexOf('width=');
		if (w1 > -1) {
			w2 = wParam.indexOf(',', w1);
			if (w2 <= 0) w2 = wParam.length;
			wwidth = wParam.substring(w1 + 6, w2)
		}
		w1 = wParam.indexOf('height=');
		if (w1 > -1) {
			w2 = wParam.indexOf(',', w1);
			if (w2 <= 0) w2 = wParam.length;
			wheight = wParam.substring(w1 + 7, w2)
		}
		wleft = parseInt((GetScreenWidth() - parseInt(wwidth)) / 2);
		wtop = parseInt((GetScreenHeight() - parseInt(wheight)) / 2);		
		wParam += ", left=" + wleft + ', top=' + wtop;		
	}
	}

	var pWindow = window.open(wLocation, wName, wParam);
	if (pWindow) pWindow.focus();
	return(pWindow);
}

function UseDefaultSize(pWindow) {
	var	lWidth = GetWindowWidth(pWindow);
	var lHeight = GetWindowHeight(pWindow);
	var strFeature, lLeft, lTop;

	if (isIE())
	{	// IE case
		lTop = '0'; //pWindow.screenTop;
		lLeft = '0'; //pWindow.screenLeft;
		strFeature = "left=" + lLeft + ",top=" + lTop + ",width=" + lWidth + ",height=" + lHeight + ",resizable,scrollbars,status=yes";
	}
	else
	{	// Netscape case	
		lTop = '0';//pWindow.screenY;
		lLeft = '0';//pWindow.screenX;
		strFeature = "screenX=" + lLeft + ",screenY=" + lTop + ",outerWidth=" + lWidth + ",outerHeight=" + lHeight + ",resizable,scrollbars,status=yes";
	}
	alert(lTop);
	return strFeature;
}

function WindowModal(wLocation, wArgument, wWidth, wHeight) {
	var sFeatures = 'center:1;status:0;help:0;dialogWidth:' + wWidth.toString() + 'px;dialogHeight:' + wHeight.toString() + 'px;';
	var result = window.showModalDialog(wLocation, wArgument, sFeatures);
	if (result && result != '') return(result); else result = '';
}

function GetBrowserVersion() {
	var strVer = navigator.appVersion, p = strVer.indexOf(" ");
	if (p != -1) return strVer.substring(0, p); else return "undefined";
}

function BrowserVersionMajor() {
	var bver = GetBrowserVersion(); if (bver == "undefined") return 0;
	var p = bver.indexOf("."); if (p != -1) return parseInt(bver.substring(0, p)); else return 0;
}

function BrowserVersionMinor() {
	var bver = GetBrowserVersion(); if (bver == "undefined") return 0;
	var p = bver.indexOf("."); if (p != -1) return parseInt(bver.substring(p + 1, bver.length)); else return 0;	
}

/* FORM FUNCTIONS */
function FindObj(item) {
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}

function hideElement(elmID) {
	for (i = 0; i < document.all.tags(elmID).length; i++) {
		obj = document.all.tags(elmID)[i];
		if (! obj || ! obj.offsetParent)
			continue;
		obj.style.visibility = "hidden";
	}
}

function showElement(elmID) {
	for (i = 0; i < document.all.tags(elmID).length; i++) {
		obj = document.all.tags(elmID)[i];
		if (! obj || ! obj.offsetParent)
			continue;
		obj.style.visibility = "";
	}
}

function MouseOverControl(obj) {
	var ol, ot, ow, oh;	
	ol = ParentLeft(obj) + obj.offsetLeft;
	ot = ParentTop(obj) + obj.offsetTop;
	ow = ol + obj.offsetWidth;
	oh = ot + obj.offsetHeight;
	if (eventx < ol || eventx > ow || eventy < ot || eventy > oh) return(false); else return(true);
}

function ParentLeft(idname) {
	var result = 0, ownObj = idname.offsetParent;
	while (ownObj != null) {
		result += ownObj.offsetLeft;
		ownObj = ownObj.offsetParent;
	}
	return(result);
}

function ParentTop(idname) {
	var result = 0, ownObj = idname.offsetParent;
	while (ownObj != null) {
		result += ownObj.offsetTop;
		ownObj = ownObj.offsetParent;
	}
	return(result);
}

function MouseTrack() {	
	eventx = event.x; eventy = event.y;
}

/* COOKIE FUNCTIONS */
function getCookie(name) {
  	var search;

  	search = name + "=";
  	offset = document.cookie.indexOf(search) ;
  	if (offset != -1) {
    	offset += search.length;
    	end = document.cookie.indexOf(";", offset);
    	if (end == -1)
      		end = document.cookie.length;
    	return unescape(document.cookie.substring(offset, end));
  	}
  	else
    	return "";
}

function setCookie (name, value, expires) {
  document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() +  "; path=/";
}

function deleteCookie(name) {
  var expdate = new Date();
  expdate.setTime(expdate.getTime() - (86400 * 1000 * 1));
  setCookie(name, "", expdate);
}

/* CONTROL FUNCTIONS */
function KeyControl(kcontrol) {
	var ltrk = 'ÖÇÞÝÐÜöçþðüý', leng = 'OCSIGUocsgui', ecode = this.event.keyCode, c = (kcontrol.substr(0, 1)).toLowerCase();
	if (ecode == 13) this.event.srcElement.onchange();
	if (c == 'n') { if ((ecode < 43 || ecode > 57) && ecode != 47) this.event.keyCode = 0; }
	if (c == 'f') { if (ecode < 43 || ecode > 46) this.event.keyCode = 0; }
	if (c == 'd') { if (ecode < 46 || ecode > 57) this.event.keyCode = 0; }
	if (c == 't') { if (ecode < 48 || ecode > 58) this.event.keyCode = 0; }
	if (c == 'p') { if (ecode < 48 || ecode > 122) this.event.keyCode = 0; }
	if (c == 'e') { for (var i = 0; i < 12; i++) if (ltrk.charCodeAt(i) == this.event.keyCode) this.event.keyCode = leng.charCodeAt(i); }
}

function SpinControl(obj, mn, mx, c) {
	var cobj = FindObj(obj), cval = Math.floor(cobj.value);
	if (IfNull(cval)) cval = 0;
	cval = cval + c
	if (cval < mn) cval = mn;
	if (mx > 0 && cval > mx) cval = mx;
	cobj.value = cval.toString();
	FlagChange = true;
}

function SpinYearControl(obj, mn, mx, c) {
	var cobj = FindObj(obj), cval = Math.floor(cobj.value), d = new Date();
	if (IfNull(cval)) cval = d.getDate();
	cval = cval + c
	if (cval < mn) cval = mn;
	if (cval > mx) cval = mx;
	cobj.value = cval.toString();
	CreateCalendar();
	FlagChange = true;
}

function DateControl(dv) {
	var dateNow = new Date(), rDay = dateNow.getDate(), rMonth = dateNow.getMonth + 1, rYear = dateNow.getYear(), re;
	var rd = DateFormat.indexOf('d'), rm = DateFormat.indexOf('m'), ry = DateFormat.indexOf('y');
	if (dv) var dateValue = FindObj(dv).value; else var dateValue = this.event.srcElement.value; 
	re = /\./gi; dateValue = dateValue.replace(re, ''); re = /\//gi; dateValue = dateValue.replace(re, '');
	rd = rd * 2; rm = rm * 2; ry = ry * 2;

	if ((dateValue.length == 4) || (dateValue.length == 6) || (dateValue.length == 8))	{ rDay = parseFloat(dateValue.substr(rd, 2)); rMonth = parseFloat(dateValue.substr(rm, 2)); rYear = dateNow.getYear(); }
	if (dateValue.length == 2) 	{ rDay = parseFloat(dateValue.substr(rd, 2)); rMonth = dateNow.getMonth() + 1; rYear = dateNow.getYear(); }
	if (dateValue.length == 6) 	{ rYear = parseFloat(String(dateNow.getYear()).substr(0, 2) + dateValue.substr(ry, 2)); }
	if (dateValue.length == 8) 	{ rYear = parseFloat(dateValue.substr(ry, 4)); }
	if ((rDay > 31) || (rDay < 1) || isNaN(rDay)) rDay = dateNow.getDate();
	if ((rMonth > 12) || (rMonth < 1) || isNaN(rMonth)) rMonth = dateNow.getMonth() + 1;
	if ((rYear < 1900) || isNaN(rYear)) { rYear = dateNow.getYear(); if (rYear < 1000) rYear = 1900 + rYear; }

	var tmp = DateFormat;
	re = /d/gi; tmp = tmp.replace(re, Zero(rDay.toString(), 2) + DateSep);
	re = /m/gi; tmp = tmp.replace(re, Zero(rMonth.toString(), 2) + DateSep);
	re = /y/gi; tmp = tmp.replace(re, rYear.toString() + DateSep);
	if (dv) FindObj(dv).value = tmp.substr(0, tmp.length-1); else this.event.srcElement.value = tmp.substr(0, tmp.length-1);
}

function TimeControl() {
	var timeNow = new Date(), re, rHour = timeNow.getHours(), rMinute = timeNow.getMinutes(), rSecond = timeNow.getSeconds();
	var timeValue = this.event.srcElement.value; re = /\:/gi; timeValue = timeValue.replace(re, '');
	if (timeValue.length == 2) { rHour = parseFloat(timeValue.substr(0, 2)); rMinute = timeNow.getMinutes(); rSecond = timeNow.getSeconds(); }
	if (timeValue.length == 4) { rHour = parseFloat(timeValue.substr(0, 2)); rMinute = parseFloat(timeValue.substr(2, 2)); rSecond = timeNow.getSeconds(); }
	if (timeValue.length == 6) { rHour = parseFloat(timeValue.substr(0, 2)); rMinute = parseFloat(timeValue.substr(2, 2)); rSecond = parseFloat(timeValue.substr(4, 2)); }
	
	if ((rHour > 23) || isNaN(rHour)) rHour = timeNow.getHours();	
	if ((rMinute > 59) || isNaN(rMinute)) rMinute = timeNow.getMinutes();	
	if ((rSecond > 59) || isNaN(rSecond)) rSecond = timeNow.getSeconds();
	this.event.srcElement.value = Zero(rHour.toString(), 2) + ':' + Zero(rMinute.toString(), 2) + ':' + Zero(rSecond.toString(), 2);
}

function CurrencyFormat(num) {
	var nokta, isaret;
	num = num.toString().replace(/\$|\,/g,'');
	if(isNaN(num)) num = "0";
	if (num.substring(0, 1) == "-")	{
		isaret = num.substring(0, 1);
		num = num.substr(1, num.length - 1);
	} else isaret = "";

	cents = Math.floor((num*100+0.5)%100);
	
	num = Math.floor((num*100+0.5)/100).toString();
	//if(cents < 10) cents = "0" + cents;
	for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
	num = num.substring(0,num.length-(4*i+3))+','+num.substring(num.length-(4*i+3));		
	if (cents != "0") nokta = "." + cents; else nokta = "";
	return (isaret + num + nokta);
}

function CurrencyControl() {
	var cKey = this.event.keyCode
	var cValue = this.event.srcElement.value;

	if (this.event.keyCode < 43 || this.event.keyCode > 57)  this.event.keyCode = 0;
	if (this.event.keyCode == 47) this.event.keyCode = 0;
	if (this.event.keyCode == 9) this.event.keyCode = 0;
	
	if (this.event.keyCode != 0) {		
		cValue = cValue + String.fromCharCode(cKey);
		if (cKey == 46) cValue = CurrencyFormat(cValue) + '.'; else cValue = CurrencyFormat(cValue);
		if (cKey == 45) cValue = '-' + CurrencyFormat(cValue);
		//if ((cKey >= 48) && (cKey <= 57)) cValue = CurrencyFormat(cValue);
		this.event.srcElement.value = cValue;
		this.event.keyCode = 0;
	}
	this.focus;
	FlagChange = true;
}

function CurrencyChange(v) {
	var cValue = FindObj(v).value;
	FindObj(v).value = CurrencyFormat(cValue);
	this.focus;
}

function FormControl(fname) {
	var obj, msg = '';
	for (var i = 0; i < fname.length; i++) {
		obj = fname.elements[i];
		if ((obj.title == null) || (obj.title == '')) obj.title = obj.name
		if ((obj.must) && (obj.must == true) && (obj.value == '')) msg += obj.title + ', ';
	}
	if (msg != '') { FormMessageView('alert', '<b>' + WarnText[0] + '</b><br><br>' + msg); return false; } else return true;
}

function PageControl(pindex) {
	var fname = document.forms(0)
	if (fname.PageSaveControl.value == '0') {
		alert(WarnText[1]); return;
	}
	if (FlagChange) {
		if (confirm(WarnText[2])) {
			//fname.SelectPage.value = fname.ActivePage.value;
			fname.FormAction.value = 'recUpdate';
			//if (fname.onsubmit()) fname.submit(); return;
		}
	}
	fname.SelectPage.value = pindex.toString();
	if (fname.onsubmit()) fname.submit();
}

function EMailControl(email, denied) {
	var w = email.indexOf('@');
	if (w == -1) return false;
	var tmp = email.substr(w);
	if (denied) if (denied.indexOf(tmp) != -1) return false;
	return true;
}

function DateText(value) {
	var toDate = new Date(), tDay, tMonth, tYear;
	if (value && value != null) toDate = value;
	tDay = toDate.getDate();
	tMonth = toDate.getMonth();
	tYear = toDate.getYear(); if (tYear < 1000) tYear = 1900 + tYear;
	return(Zero(tDay, 2) + ' ' + MonthLongName[tMonth] + ' ' + tYear + ', ' + DayLongName[toDate.getDay()]);
}
function FormMessageCreate() {
	var tmp = '<iframe id="ID_MessageFrame" frameborder="0" style="position:absolute; width:450; height:150; top:-150; left:300; visibility:hidden; z-index:5;"></iframe>' +
				'<table id="ID_MessageWindow" cellpadding="0" cellspacing="0" border="0" width="450" height="150" bgcolor="#f9f9f9" style="display:block; position:absolute; top:-150; left:300; visibility:hidden; border:1px solid #cccccc; border-top:none; z-index:999;"><tr>' +
				'<td id="ID_MessageIcon" align="left" valign="top" style="padding:10px 10px 10px 10px;"></td>' +
				'<td id="ID_MessageText" width="100%" valign="top" style="padding:10px 10px 10px 10px; font-size:13px;"></td>' +
				'</tr><tr><td align="right" height="28" colspan="2" style="padding-right:10px; border-top:1px solid #cccccc;"><a href="javascript:FormMessageUp();"><b>Kapat&nbsp;' + SkinIcon('close', 16, null, ' align="absmiddle"') + '</b></a></td>' +
				'</tr></table>';
	document.write(tmp);
}

function FormMessageView(mIcon, mText) {
	var msgWin = FindObj('ID_MessageWindow'); var msgFrm = FindObj('ID_MessageFrame');
	var l = parseInt(GetWindowWidth(this)) - 450; l = parseInt(l / 2);
	msgWin.style.left = l.toString() + 'px'; msgFrm.style.left = msgWin.style.left;
	msgWin.style.visibility = 'inherit'; msgFrm.style.visibility = 'inherit';
	FindObj('ID_MessageIcon').innerHTML = LocalImage(mIcon, null, 64, 64);
	FindObj('ID_MessageText').innerHTML = mText;
	FormMessageDown();
}
function FormMessageDown() {
	var msgWin = FindObj('ID_MessageWindow'), msgFrm = FindObj('ID_MessageFrame'), t = parseFloat(msgWin.style.top);
	if (t < 0 + document.body.scrollTop) { t = t + 10; msgWin.style.top = t.toString() + 'px'; msgFrm.style.top = msgWin.style.top; tID_FV = setTimeout("FormMessageDown();", 1); } else { msgWin.style.top = document.body.scrollTop + 'px'; tID_FV = setTimeout("FormMessageUp();", 4000); }
}
function FormMessageUp() {
	var msgWin = FindObj('ID_MessageWindow'), msgFrm = FindObj('ID_MessageFrame'), t = parseFloat(msgWin.style.top);
	if (t > -150) { t = t - 10; msgWin.style.top = t.toString() + 'px'; msgFrm.style.top = msgWin.style.top; tID_FV = setTimeout("FormMessageUp();", 1); } else { 
		//document.body.scroll = 'yes'; 
		clearTimeout(tID_FV); 
	}
}
function FrameShow(obj, lnk) {
	var fobj = FindObj('IDFrame'); if (!fobj) return;
	FrameLink = lnk; //document.FrameView.location = lnk;
	fobj.style.top = (fobj.offsetHeight*-1)+'px';
	fobj.style.visibility = 'inherit';
	fobj.style.top = (fobj.offsetHeight*-1)+'px';
	FrameDown(obj);
}
function FrameDown() {
	var fobj = FindObj('IDFrame'); if (!fobj) return;
	var t = parseFloat(fobj.style.top), h = fobj.offsetHeight*-1;
	if (t < 0 + document.body.scrollTop) { t = t + 25; fobj.style.top = t.toString() + 'px'; tID_FV = setTimeout("FrameDown();", 1); } else { fobj.style.top = document.body.scrollTop + 'px'; FindObj('IDFrame').src = FrameLink; }
}
function FrameUp() {
	var fobj = FindObj('IDFrame'); if (!fobj) { fobj = window.parent.FindObj('IDFrame'); if (!fobj) return; }
	var t = parseFloat(fobj.style.top), h = fobj.offsetHeight*-1;
	if (t > h) { t = t - 25; fobj.style.top = t.toString() + 'px'; tID_FV = setTimeout("FrameUp();", 1); } else { 
		clearTimeout(tID_FV); fobj.style.visibility = 'hidden'; this.location = 'PleaseWait.htm'; 
	}
}