<!--
	function popup(url,wname,params) {
	PopWin = window.open(url,wname,params);PopWin.focus();
	}
	
	function popupImg(id, img, adID, w, h) {
		if (id.length > 0) {document.getElementById("image"+id).className='imgFrameviewed'}
		(adID.length > 0)? idstr="&id="+adID: idstr="";
		url = "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';
	}

// -->
