var _ev;
function hide_form (f,a)
{
var el = get_by_idl (f);
if (el) el.style.visibility = 'hidden';
if (a) afaname = '';
}
function hr3(w) {
return '
';
}
function hr2(w) {
document.write(hr3(w));
}
function shlen (w,l)
{
var el = get_by_idl (w);
if (el) {
var alen = el.value.length;
el = get_by_idl ('c_'+w);
var cl = alen <= l ? '' : '';
if (el) el.innerHTML = '[ '+cl+alen+'/'+l+' ]';
}
}
function s_hint (c,wd) {
if (!c) return;
var el = get_by_idl ('shint');
if (!el) return;
if ((c != '') && (el.style.visibility != 'visible')) el.innerHTML = start_bord_t('h',0,3,3,4,3,'#f2f2f2')+c+close_bord_t('h',0,4);
if (wd > 0) el.style.width = wd+"px";
else el.style.width = "";
if (document.all) _ev = window.event;
var x = document.body.scrollLeft + 4;
var y = document.body.scrollTop + 8;
if (_ev)
if (document.all) { x += _ev.clientX; y += _ev.clientY; }
else { x = _ev.pageX + 4; y = _ev.pageY + 16; }
y -= document.body.clientHeight - (_ev ? _ev.clientY : 0) < 2 * el.clientHeight ? el.clientHeight + 22 : 0;
if (document.body.clientWidth > el.clientWidth * 1.5) {
if (x + el.clientWidth + (document.all ? 21 : 5) >= document.body.clientWidth) x -= el.clientWidth;
if (x < 0) x += el.clientWidth / 2;
} else if (document.body.clientWidth >= el.clientWidth) {
if (x - el.clientWidth < 0) x = 1;
else if (x + el.clientWidth > document.body.clientWidth) x -= el.clientWidth;
} else {
x = 1;
// el.clientWidth /= 1.5;
}
el.style.left = x + "px";
el.style.top = y + "px";
if (el.style.visibility != "visible") el.style.visibility = "visible";
}
function h_hint () {
var el = get_by_idl ('shint');
if (el) el.style.visibility = 'hidden';
}
function confgotoloc (loc)
{
var el = get_by_idl ('confcode');
if (el) loc += '&cc=' + el.value;
window.location = loc;
}
function confirm2 (txt,cdr,loc)
{
var el = get_by_idl ('confirmd');
if (el) {
var ihtml = start_bord_t('d',400,4,4,5)+''+close_bord_t('d',400,6);
el.innerHTML = ihtml;
var x = document.body.scrollLeft - 50;
var y = document.body.scrollTop - 60;
if (document.all) {
_ev = window.event;
x += _ev.clientX;
y += _ev.clientY;
} else {
x += 400;
y += 180;
}
el.style.left = x+'px';
el.style.top = y+'px';
if (el.style.visibility != "visible") el.style.visibility = "visible";
el = get_by_idl ('confcode');
if (el) el.focus();
}
}
function _m (e)
{
if (document.all) return;
if (!e) e = window.event;
_ev = e;
}
function set_hint () {
// var _ev;
errtrap();
// document.write ('');
document.write ('');
if (!document.all) document.captureEvents (Event.MOUSEMOVE); // not IE
document.onmousemove=_m;
}
function set_qtalk ()
{
document.write ('');
}
function NewErrorTrap() { return true; }
function errtrap()
{
var OldErrorTrap = window.onerror;
window.onerror = NewErrorTrap;
document.onmousemove=_m;
window.onerror = OldErrorTrap;
}
function set_lform (t) {
document.write ('');
}
function wopen (w,h,s,r)
{
var w = window.open(w,h,s);
if (w && r) {
w.moveTo (0, 0);
w.resizeTo (screen.availWidth - 1, screen.availHeight - 1);
// eval ('window.opener = window');
// window.close();
}
}
function draw_c (t)
{
}
function draw_rl ()
{
}
function draw_l ()
{
document.write ('
');
}
function draw_cp ()
{
document.write ('Published by Ainmarh Entertainment © 2008');
}