function $() {
    var elements = new Array();
    for (var i = 0; i < arguments.length; i++) {
        var element = arguments[i];
        if (typeof element == 'string')
            element = document.getElementById(element);
        if (arguments.length == 1)
            return element;
        elements.push(element);
    }
    return elements;
}

function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}

function setCookie(c_name, value, expiredays, path, domain, secure) {
    var exdate = new Date();
    exdate.setDate(exdate.getDate() + expiredays);
    document.cookie = c_name + "=" + escape(value) +
    ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()) +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}

function getCookie(c_name) {
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=");
        if (c_start != -1) {
            c_start = c_start + c_name.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1) c_end = document.cookie.length;
            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}

//////////////////////////////////////
function object2String(obj) {
    var val, output = "";
    if (obj) {
        output += "{";
        for (var i in obj) {
            val = obj[i];
            switch (typeof val) {
                case ("object"):
                    if (val[0]) {
                        output += i + ":" + array2String(val) + ",";
                    } else {
                        output += i + ":" + object2String(val) + ",";
                    }
                    break;
                case ("string"):
                    output += i + ":'" + escape(val) + "',";
                    break;
                case ("function"):
                   	break;
                default:
                    output += i + ":" + val + ",";
            }
        }
        output = output.substring(0, output.length - 1) + "}";
    }
    return output;
}

function array2String(array) {
    var output = "";
    if (array) {
        output += "[";
        for (var i in array) {
            val = array[i];
            switch (typeof val) {
                case ("object"):
                    if (val[0]) {
                        output += array2String(val) + ",";
                    } else {
                        output += object2String(val) + ",";
                    }
                    break;
                case ("string"):
                    output += "'" + escape(val) + "',";
                    break;
					 case ("function"):
                		break;
                default:
                    output += val + ",";
            }
        }
        output = output.substring(0, output.length - 1) + "]";
    }
    return output;
}

function string2Object(string) {
    eval("var result = " + string);
    return result;
}

function string2Array(string) {
    eval("var result = " + string);
    return result;
}

//////////////////////////////////////



/*
jeroen.hogendoorn@planet.nl:
plaatst deze content in top indien dat niet het geval is.
*/
function assertTopFrame(){
	if(top!=self)
		top.location.href = location.href;
}

/*
	jeroen hogendoorn@planet.nl
	toon of verberg een div
*/	
function toggleLayer( layer )
{  
	var obj = $(layer);

	// if the style.display value is blank we try to figure it out here  
	if(obj.style.display==''&&obj.offsetWidth!=undefined&&obj.offsetHeight!=undefined)    
		obj.style.display = (obj.offsetWidth!=0&&obj.offsetHeight!=0)?'block':'none';  

	obj.style.display = (obj.style.display==''||obj.style.display=='block')?'none':'block';
}

function showLayerByCheckState(layer, checkbox)
{  
	var obj = $(checkbox);
	if(obj)
		showLayer(layer,obj.checked);
}

function showLayer(layer, show)
{
    var obj = $(layer);

    // if the style.display value is blank we try to figure it out here  
    //if (obj.style.display == '' && obj.offsetWidth != undefined && obj.offsetHeight != undefined)
      //  obj.style.display = show ? 'block' : 'none';

    if (obj && obj.style)
        if (obj.style.display != (show ? 'block' : 'none'))
            obj.style.display = show ? 'block' : 'none';
/*
	//alert('show ' + layer + ' ' + show );
	var obj=$(layer);
	if (obj && obj.style) 	    obj.style.display=show?'block':'none'; 
*/	    
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function scaleInnerWindow(width, height, maxWidth, maxHeight)
{
	//alert (window.outerWidth);
	//alert (window.innerWidth);
	//alert (document.height);
	
	var w = (typeof window.innerWidth == 'undefined')?document.body.clientWidth:window.innerWidth;
	var h = (typeof window.innerHeight == 'undefined')?document.body.clientHeight:window.innerHeight;
	
	//alert (w);
	
	if(typeof window.outerWidth != 'undefined')
		w = window.outerWidth - w ;
	else
		w = 20;
	//alert (w);
	if(typeof window.outerHeight != 'undefined')
		h = window.outerHeight - h;
	else
		h = 80;
	
	w = Math.min(w+width,maxWidth);
	h = Math.min(h+height,maxHeight);

	return window.resizeTo(w,h);
}

function removeEvent(e)
{
	if (!e) var e = window.event;
	
	e.cancelBubble = true;

	if (e.stopPropagation) e.stopPropagation();

}

function openWindow(url, name, features) {
	if (features == null)
		features = 'toolbar=1;menubar=1,scrollbars=1,resizable=1,location=1,status=1';
	window.open(url, name, features);
}

function navigateContent(target, elem, name, features) {
	navigateContentStyleDiv(target, elem, name, features);
}

function navigateContentStyleDiv(target, elem, name, features) {
	var val;

	val = getStyle(elem, 'cursor');
	
	if(val != "pointer")
		return;	
	
	if (window.getComputedStyle)
		val = getStyle(elem, 'list-style-image');
	else
		val = getStyle(elem, 'listStyleImage');
	
	
	if (val != null) {
		var url = val.toString();
		
		url = url.substring(4, url.length - 1);
		url = url.replace(/"/g, "");
		//alert(url);
		
		var pos = url.indexOf("target=");

		if (pos > 0) {
			var t = url.substring(pos);
			t = t.substring(7);
			//alert("target: " + t);

			//overrule:
			target = t;
			
			url = url.substring(0,pos);

			if ((url.lastIndexOf("?") == (url.length - 1)) || (url.lastIndexOf("&") == (url.length - 1)))
				url = url.substring(0, pos - 1);

			//alert("url: " + url);
		}
		
		if (target != 'blank')
			eval(target + ".location.href='" + url + "'");
		else
			openWindow(url, name, features);
	}
}

function navigateUrl(target, url) {
	eval(target + ".location.href='" + url + "'");
}

function getStyle(elem, styleProp) {
	var curStyle;
	if (window.getComputedStyle) 
		curStyle = window.getComputedStyle(elem, "").getPropertyValue(styleProp);
	else 
		curStyle = elem.currentStyle[styleProp];
	return curStyle;
}

//this function inserts text in a textarea at specified position
function insertAtCaret(obj, text) {
    if (document.selection) {
        obj.focus();
        var orig = obj.value.replace(/\r\n/g, "\n");
        var range = document.selection.createRange();

        if (range.parentElement() != obj) {
            return false;
        }

        range.text = text;

        var actual = tmp = obj.value.replace(/\r\n/g, "\n");

        for (var diff = 0; diff < orig.length; diff++) {
            if (orig.charAt(diff) != actual.charAt(diff)) break;
        }

        for (var index = 0, start = 0;
				tmp.match(text)
					&& (tmp = tmp.replace(text, ""))
					&& index <= diff;
				index = start + text.length
			) {
            start = actual.indexOf(text, index);
        }
    } else if (obj.selectionStart) {
        var start = obj.selectionStart;
        var end = obj.selectionEnd;

        obj.value = obj.value.substr(0, start)
				+ text
				+ obj.value.substr(end, obj.value.length);
    }

    if (start != null) {
        setCaretTo(obj, start + text.length);
    } else {
        obj.value += text;
    }
}

function setCaretTo(obj, pos) {
    if (obj.createTextRange) {
        var range = obj.createTextRange();
        range.move('character', pos);
        range.select();
    } else if (obj.selectionStart) {
        obj.focus();
        obj.setSelectionRange(pos, pos);
    }
}



/********************************************************
wat ouwe MM meuk
********************************************************/
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
    if (init == true) with (navigator) {
        if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
            document.MM_pgW = innerWidth; document.MM_pgH = innerHeight; onresize = MM_reloadPage;
        } 
    }
    else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_goToURL() { //v3.0
    var i, args = MM_goToURL.arguments; document.MM_returnValue = false;
    for (i = 0; i < (args.length - 1); i += 2) eval(args[i] + ".location='" + args[i + 1] + "'");
}
function MM_findObj(n, d) { //v4.01
    var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n); return x;
}
function tmt_regExpValidator(f, re, eMsg, ru, r) {
    var myErr = ""; var fv = MM_findObj(f).value; var rex = new RegExp(unescape(re));
    var t = eval(ru + rex.test(fv)); if (r) { if (fv.length <= 0 || !t) { alert(unescape(eMsg)); myErr += "eMsg"; } }
    else if (fv.length > 0 && !t) { alert(unescape(eMsg)); myErr += "eMsg"; } document.MM_returnValue = (myErr == "");
}
function flevToggleCheckboxes() { // v1.1
    var sF = arguments[0], bT = arguments[1], bC = arguments[2], oF = MM_findObj(sF);
    for (var i = 0; i < oF.length; i++) {
        if (oF[i].type == "checkbox") { if (bT) { oF[i].checked = !oF[i].checked; } else { oF[i].checked = bC; } } 
    }
}
function MM_showHideLayers() { //v6.0
    var i, p, v, obj, args = MM_showHideLayers.arguments;
    for (i = 0; i < (args.length - 2); i += 3) if ((obj = MM_findObj(args[i])) != null) {
        v = args[i + 2];
        if (obj.style) { obj = obj.style; v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden' : v; }
        obj.visibility = v;
    }
}
function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
    }
}
function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}
function MM_swapImage() { //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
}
function MM_openBrWindow(theURL, winName, features) { //v2.0
    window.open(theURL, winName, features);
}
function displayWindow(theURL, winName, width, height, features) {
    var top = (screen.height - height) / 2;
    var left = (screen.width - width) / 2;
    var w = window.open(theURL, winName, 'width=' + width + ', height=' + height + ', top=' + top + ', left=' + left + ', features=' + features);
    w.focus();
}

function GP_AdvOpenWindow(theURL, winName, ft, pw, ph, wa, il, aoT, acT, bl, tr, trT, slT, pu) { //v3.09
    // Copyright(c) George Petrov, www.dmxzone.com member of www.DynamicZones.com
    var rph = ph, rpw = pw, nlp, ntp, lp = 0, tp = 0, acH, otH, slH, w = 480, h = 340, d = document, OP = (navigator.userAgent.indexOf("Opera") != -1), IE = d.all && !OP, IE5 = IE && window.print, NS4 = d.layers, NS6 = d.getElementById && !IE && !OP, NS7 = NS6 && (navigator.userAgent.indexOf("Netscape/7") != -1), b4p = IE || NS4 || NS6 || OP, bdyn = IE || NS4 || NS6, olf = "", sRes = "";
    imgs = theURL.split('|'), isSL = imgs.length > 1; aoT = aoT && aoT != "" ? true : false;
    var tSWF = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ##size##><param name=movie value="##file##"><param name=quality value=high><embed src="##file##" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" ##size##></embed></object>'
    var tQT = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" ##size##><param name="src" value="##file##"><param name="autoplay" value="true"><param name="controller" value="true"><embed src="##file##" ##size## autoplay="true" controller="true" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>'
    var tIMG = (!IE ? '<a href="javascript:' + (isSL ? 'nImg()' : 'window.close()') + '">' : '') + '<img id=oImg name=oImg ' + ((NS4 || NS6 || NS7) ? 'onload="if(isImg){nW=pImg.width;nH=pImg.height}window.onload();" ' : '') + 'src="##file##" border="0" ' + (IE ? (isSL ? 'onClick="nImg()"' : 'onClick="window.close()"') : '') + (IE && isSL ? ' style="cursor:pointer"' : '') + (!NS4 && isSL ? ' onload="show(\\\'##file##\\\',true)"' : '') + '>' + (!IE ? '</a>' : '')
    var tMPG = '<OBJECT classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" ##size## type="application/x-oleobject"><PARAM NAME="FileName" VALUE="##file##"><PARAM NAME="animationatStart" VALUE="true"><PARAM NAME="transparentatStart" VALUE="true"><PARAM NAME="autoStart" VALUE="true"><PARAM NAME="showControls" VALUE="true"><EMBED type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" SRC="##file##" ##size## AutoStart=true></EMBED></OBJECT>'
    omw = aoT && IE5; bl = bl && bl != "" ? true : false; tr = IE && tr && isSL ? tr : 0; trT = trT ? trT : 1; ph = ph > 0 ? ph : 100; pw = pw > 0 ? pw : 100;
    re = /\.(swf)/i; isSwf = re.test(theURL); re = /\.(gif|jpg|png|bmp|jpeg)/i; isImg = re.test(theURL); re = /\.(avi|mov|rm|rma|wav|asf|asx|mpg|mpeg|wmv)/i; isMov = re.test(theURL); isEmb = isImg || isMov || isSwf;
    if (isImg && NS4) ft = ft.replace(/resizable=no/i, 'resizable=yes'); if (b4p) { w = screen.availWidth; h = screen.availHeight; }
    if (wa && wa != "") {
        if (wa.indexOf("center") != -1) { tp = (h - ph) / 2; lp = (w - pw) / 2; ntp = '(' + h + '-nWh)/2'; nlp = '(' + w + '-nWw)/2' } if (wa.indexOf("bottom") != -1) { tp = h - ph; ntp = h + '-nWh' } if (wa.indexOf("right") != -1) { lp = w - pw; nlp = w + '-nWw' }
        if (wa.indexOf("left") != -1) { lp = 0; nlp = 0 } if (wa.indexOf("top") != -1) { tp = 0; ntp = 0 } if (wa.indexOf("fitscreen") != -1) { lp = 0; tp = 0; ntp = 0; nlp = 0; pw = w; ph = h }
        ft += (ft.length > 0 ? ',' : '') + 'width=' + pw; ft += (ft.length > 0 ? ',' : '') + 'height=' + ph; ft += (ft.length > 0 ? ',' : '') + 'top=' + tp + ',left=' + lp;
    } if (IE && bl && ft.indexOf("fullscreen") != -1 && !aoT) ft += ",fullscreen=1";
    if (omw) { ft = 'center:no;' + ft.replace(/lbars=/i, 'l=').replace(/(top|width|left|height)=(\d+)/gi, 'dialog$1=$2px').replace(/=/gi, ':').replace(/,/gi, ';') }
    if (window["pWin"] == null) window["pWin"] = new Array(); var wp = pWin.length; pWin[wp] = (omw) ? window.showModelessDialog(imgs[0], window, ft) : window.open('', winName, ft);
    if (pWin[wp].opener == null) pWin[wp].opener = self; window.focus();
    if (b4p) {
        if (bl || wa.indexOf("fitscreen") != -1) { pWin[wp].resizeTo(pw, ph); pWin[wp].moveTo(lp, tp); }
        if (aoT && !IE5) { otH = pWin[wp].setInterval("window.focus();", 50); olf = 'window.setInterval("window.focus();",50);' }
    } sRes = '\nvar nWw,nWh,d=document,w=window;' + (bdyn ? ';dw=parseInt(nW);dh=parseInt(nH);' : 'if(d.images.length == 1){var di=d.images[0];dw=di.width;dh=di.height;\n') +
'if(dw>0&&dh>0){nWw=dw+' + (IE ? 12 : NS7 ? 15 : NS6 ? 14 : 0) + ';nWh=dh+' + (IE ? 32 : NS7 ? 50 : NS6 ? 1 : 0) + ';' + (OP ? 'w.resizeTo(nWw,nWh);w.moveTo(' + nlp + ',' + ntp + ')' : (NS4 || NS6 ? 'w.innerWidth=nWw;w.innerHeight=nWh;' + (NS6 ? 'w.outerWidth-=14;' : '') : (!omw ? 'w.resizeTo(nWw,nWh)' : 'w.dialogWidth=nWw+"px";w.dialogHeight=nWh+"px"') + ';eh=dh-d.body.clientHeight;ew=dw-d.body.clientWidth;if(eh!=0||ew!=0)\n' +
(!omw ? 'w.resizeTo(nWw+ew,nWh+eh);' : '{\nw.dialogWidth=(nWw+ew)+"px";\nw.dialogHeight=(nWh+eh)+"px"}')) + (!omw ? 'w.moveTo(' + nlp + ',' + ntp + ')' + (!(bdyn) ? '}' : '') : '\nw.dialogLeft=' + nlp + '+"px";w.dialogTop=' + ntp + '+"px"\n')) + '}';
    var iwh = "", dwh = "", sscr = "", sChgImg = ""; tRep = ".replace(/##file##/gi,cf).replace(/##size##/gi,(nW>0&&nH>0?'width=\\''+nW+'\\' height=\\''+nH+'\\'':''))";
    var chkType = 're=/\\.(swf)/i;isSwf=re.test(cf);re=/\\.(mov)/i;isQT=re.test(cf);re=/\\.(gif|jpg|png|bmp|jpeg)/i;isImg=re.test(cf);re=/\.(avi|rm|rma|wav|asf|asx|mpg|mpeg|wmv)/i;isMov=re.test(cf);';
    var sSize = 'tSWF=\'' + tSWF + '\';\ntQT=\'' + tQT + '\';tIMG=\'' + tIMG + '\';tMPG=\'' + tMPG + '\'\n' + "if (cf.substr(cf.length-1,1)==']'){var bd=cf.lastIndexOf('[');if(bd>0){var di=cf.substring(bd+1,cf.length-1);var da=di.split('x');nW=da[0];nH=da[1];cf=cf.substring(0,bd)}}" + chkType;
    if (isEmb) {
        if (isSL) {
            sChgImg = (NS4 ? 'var l = document.layers[\'slide\'];ld=l.document;ld.open();ld.write(nHtml);ld.close();' : IE ? 'document.all[\'slide\'].innerHTML = nHtml;' : NS6 ? 'var l=document.getElementById(\'slide\');while (l.hasChildNodes()) l.removeChild(l.lastChild);var range=document.createRange();range.setStartAfter(l);var docFrag=range.createContextualFragment(nHtml);l.appendChild(docFrag);' : '');
            sscr = 'var pImg=new Image(),slH,ci=0,simg="' + theURL + '".split("|");' +
'function show(cf,same){if(same){di=document.images[0];nW=di.width;nH=di.height}' + sRes + '}\n' +
'function nImg(){if(slH)window.clearInterval(slH);nW=0;nH=0;cf=simg[ci];' + sSize + 'document.title=cf;' +
(tr != 0 ? ';var fi=IElem.filters[0];fi.Apply();IElem.style.visibility="visible";fi.transition=' + (tr - 1) + ';fi.Play();' : '') +
'if (nW==0&&nH==0){if(isImg){nW=pImg.width;nH=pImg.height}else{nW=' + pw + ';nH=' + ph + '}}' +
(bdyn ? 'nHtml=(isSwf?tSWF' + tRep + ':isQT?tQT' + tRep + ':isImg?tIMG' + tRep + ':isMov?tMPG' + tRep + ':\'\');' + sChgImg + ';' : 'if(document.images)document["oImg"].src=simg[ci];') +
sRes + ';ci=ci==simg.length-1?0:ci+1;cf=simg[ci];re=/\\.(gif|jpg|png|bmp|jpeg)/i;isImg=re.test(cf);if(isImg)pImg.src=cf;' +
(isSL ? (!NS4 ? 'if(ci>1)' : '') + 'slH=window.setTimeout("nImg()",' + slT * 1000 + ')}' : '');
        } else {
            sscr = 'var re,pImg=new Image(),nW=0,nH=0,nHtml="",cf="' + theURL + '";' + chkType + 'if(isImg)pImg.src=cf;\n' +
'function show(){' + sSize + ';if (nW==0&&nH==0){if(isImg){;nW=pImg.width;nH=pImg.height;if (nW==0&&nH==0){nW=' + pw + ';nH=' + ph + '}}else{nW=' + pw + ';nH=' + ph +
'}};nHtml=(isSwf?tSWF' + tRep + ':isQT?tQT' + tRep + ':isImg?tIMG' + tRep + ':isMov?tMPG' + tRep + ':\'\');document.write(nHtml)};'
        }
        pd = pWin[wp].document; pd.open(); pd.write('<html><' + 'head><title>' + imgs[0] + '</title><' + 'script' + '>' + sscr + '</' + 'script>' + (!NS4 ? '<STYLE TYPE="text/css">BODY {margin:0;border:none;padding:0;}</STYLE>' : '') + '</head><body ' + (NS4 && isSL ? 'onresize=\'ci--;nImg()\' ' : '') + 'onload=\'' + olf + (isSL ? ';nImg()' : sRes) + '\' bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">');
        if (rpw > 0) { iwh = 'width="' + rpw + '" '; dwh = 'width:' + rpw } if (rph > 0) { iwh += 'height="' + rph + '"'; dwh += 'height:' + rph }
        if (tr != 0) pd.write('<span id=IElem Style="Visibility:hidden;Filter:revealTrans(duration=' + trT + ');width:100%;height=100%">');
        if (isSL && bdyn) { pd.write(NS4 ? '<layer id=slide></layer>' : '<span id=slide></span>') } else { pd.write('<' + 'script>show()' + '</' + 'script>') }
        if (tr != 0) pd.write('</span>'); pd.write('</body></html>'); pd.close();
    } else { if (!omw) pWin[wp].location.href = imgs[0]; }
    if ((acT && acT > 0) || (slT && slT > 0 && isSL)) { if (pWin[wp].document.body) pWin[wp].document.body.onunload = function() { if (acH) window.clearInterval(acH); if (slH) window.clearInterval(slH) } }
    if (acT && acT > 0) acH = window.setTimeout("pWin[" + wp + "].close()", acT * 1000); if (slT && slT > 0 && isSL) slH = window.setTimeout("if(pWin[" + wp + "].nImg)pWin[" + wp + "].nImg()", slT * 1000);
    if (pu && pu != "") { pWin[wp].blur(); window.focus() } else pWin[wp].focus(); document.MM_returnValue = (il && il != "") ? false : true;
   }

   function checkEmail(email) {
   	if (email != '') {
   		rx = new RegExp("^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$");
   		if (!rx.test(email))
   			return false;
   		return true;
   	}
   	else
   		return false;
   }


