<!--

	function sd(id,sdir) {
		(sdir)? xdir = "up": xdir = "down";
		document.forms["fsdir"+id].sdir.value = xdir;
	}

	function popup(url,wname,params) {
	PopWin = window.open(url,wname,params);
	if (window.focus) {PopWin.focus()}
	}
	
	function popupImg(id, img, adID, w, h, ap) {
		if (id.length > 0) {document.getElementById("image"+id).className='imgFrameviewed'}
		(adID.length > 0)? idstr="&id="+adID: idstr="";
		url = ap+"picprev.asp?image="+img+idstr;
		wname = "photoslider";
		params = ",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h+",left=0,top=0";
		popup(url,wname,params);
	}
	
	function searchAds() {
	var oform = document.search; var sTarget = oform.SH3.options[oform.SH3.selectedIndex].text;oform.categoryName.value = sTarget;
	var searchStr = oform.SH1.value;var searchStr = searchStr.toLowerCase();
	oform.SH1.value = searchStr;oform.action = "search.asp";oform.submit();
	}

	function uploadImage(){
		var selFile = document.iprev.selpic.value;
		var ext_re = new RegExp("\.(jpg|gif|jpeg|png)$", "ig"); 
		if (!ext_re.test(selFile)) {document.getElementById("nai").style.visibility="visible";return false}
		document.iprev.submit();
		setTimeout('showLoader()', 400);
	}
	function showLoader(){
		if (document.getElementById("uplimg"))
			document.getElementById("uplimg").style.display='block';
	}

	function startticker(){
		if (document.getElementById) {
			if(startPoint=="100%") startPoint = document.body.clientWidth;
			var tick = '<div style="position:relative;width:100%;height:16px;overflow:hidden;" onmouseover="cps=0" onmouseout="cps=tSpeed">';
			tick+='<div id="mq" style="position:absolute;left:0px;top:0px;white-space:nowrap;"><\/div><\/div>';
			document.getElementById('ticker').innerHTML = tick; 
			mq=document.getElementById("mq"); 
			mq.style.left=startPoint+"px";
			mq.innerHTML='<div id="mc" style="display:block">'+content+'<\/div>';
			aw = document.getElementById("mc").offsetWidth;
			lefttime=setInterval("scrollticker()",25);
		} 
	}

	function scrollticker(){
		mq.style.left = (parseInt(mq.style.left)>(-10 - aw))?parseInt(mq.style.left)-cps+"px" : startPoint+"px";
	}

	function uauth(seclog, urs) {
	if (seclog) {
	var lg = document.userlogon.email.value;
	(lg.indexOf("@") == -1)? 
	document.userlogon.isemail.value="0": 
	(lg = encode64(lg), document.userlogon.isemail.value="1");
	var password = document.userlogon.password.value;
	var hash_auth = MD5(password);
	var hash = MD5(urs+hash_auth);
	document.userlogon.hash.value = hash;
	document.userlogon.ehash.value = lg;
	document.userlogon.password.value = '';
	document.userlogon.email.value = '';
	return true;
	}}
	function ulogon(){
	var lg=document.userlogon.email.value.toLowerCase();
	lg=lg.replace(/\s*/g,"");
	document.userlogon.email.value = lg;
	(lg.indexOf("@") == -1)? document.userlogon.isemail.value="0": document.userlogon.isemail.value="1";
	if (lg == "") {return false;}return true;}

// -->
