<!--

function confirmDelete(id, ask, url)
{
temp = window.confirm(ask);
if (temp) //delete
{
window.location=url+id;
}
}

function open_window(link,w,h)
{
var win = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes";
newWin = window.open(link,'newWin',win);
}
function movertimer(){
ee = document.getElementById('ordteb2').value;
if(ee == 0) {
document.getElementById('ordteb').style.backgroundColor = 'DDECFE';
document.getElementById('ordteb2').value = 1;
}else{
document.getElementById('ordteb').style.backgroundColor = 'FFD75E';
document.getElementById('ordteb2').value = 0;
}
setTimeout(movertimer, 500);
}
function mover(mId,set){
mId.style.backgroundColor=set;
}
function mout(mId,set){
mId.style.backgroundColor=set;
}
function moutt(id) {
if(window.document.getElementById(id).style.display == "none") {
document.getElementById(id).style.display = "";
}
else {
document.getElementById(id).style.display = "none";
}
}
function megamenu() {
var i1 = getCookie('menu1');
var i2 = getCookie('menu2');
var i3 = getCookie('menu3');
var i4 = getCookie('menu4');
var i5 = getCookie('menu5');
if ((i1 != null)&&(i1 != "")&&(i1 == "1")) {
moutt('menu11');
moutt('menu12');
moutt('menu13');
}
if ((i2 != null)&&(i2 != "")&&(i2 == "1")) {
moutt('menu21');
moutt('menu22');
moutt('menu23');
}
if ((i3 != null)&&(i3 != "")&&(i3 == "1")) {
moutt('menu31');
moutt('menu32');
moutt('menu33');
}
if ((i4 != null)&&(i4 != "")&&(i4 == "1")) {
moutt('menu41');
moutt('menu42');
moutt('menu43');
}
if ((i5 != null)&&(i5 != "")&&(i5 == "1")) {
moutt('menu51');
moutt('menu52');
moutt('menu53');
}
}
function menuresetit(ty) {
var it = getCookie(ty);
var menu1 = ty + '1';
var menu2 = ty + '2';
var menu3 = ty + '3';
if ((it != null)&&(it != "")&&(it == "1")) {
setCookie(ty,'2',"/");
moutt(menu1);
moutt(menu2);
moutt(menu3);
}
if ((it != null)&&(it != "")&&(it == "2")) {
setCookie(ty,'1',"/");
moutt(menu1);
moutt(menu2);
moutt(menu3);
}else{
if (it == null) {
setCookie(ty,'1',"/");
moutt(menu1);
moutt(menu2);
moutt(menu3);
}
if (it == "") {
setCookie(ty,'1',"/");
moutt(menu1);
moutt(menu2);
moutt(menu3);
}
}
}
function setCookie(name, value, expires, path, domain, secure)
{
        var exp = new Date();
        var oneMonthFromNow = exp.getTime() + (2*24*60*60*1000);
        exp.setTime (oneMonthFromNow);
        var curCookie = name + "=" + escape(value) +
                ((expires) ? "; expires=" + exp.toGMTString() : "") +
                ((path) ? "; path=" + path : "") +
                ((domain) ? "; domain=" + domain : "") +
                ((secure) ? "; secure" : "")

        if ( (name + "=" + escape(value)).length <= 4000)
                document.cookie = curCookie
}

// name - cookie name
function getCookie(name)
{
        var prefix = name + "="
        var cookieStartIndex = document.cookie.indexOf(prefix)
        if (cookieStartIndex == -1)
                return null
        var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
        if (cookieEndIndex == -1)
                cookieEndIndex = document.cookie.length
        return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}

function outText(text, textLimit) {
    if (text.length < textLimit) {
        document.write(text);
    }
    else {
        document.write(text.substring(0,textLimit) + '...');
    }
}

-->
