
             
function handleEnter (e) {
		var keycode = e.keyCode ? e.keyCode : (e.which ? e.which : e.charCode);
		if (keycode==13) 
			return false;
		else
			return true;
}      

function show(reference){
	toggleVisibility(reference, 'block', 'block', 'block')
}


function toggleVisibility(id, NNtype, IEtype, W3Ctype) {
	if (document.getElementById) {
		eval("document.getElementById(id).style.display = \"" + W3Ctype + "\"");
	} 
	else {
		if (document.layers) {
			document.layers[id].display = NNtype;
		} 
		else {
			if (document.all) {
				eval("document.all." + id + ".style.display = \"" + IEtype + "\"");
			}
		}
	}
}

function openAdmin(RSS, _w, _h){
	var AdminWin=window.open('http://www.awssoft.com/tickerAdminTry'+RSS+'/','adminWin','width='+_w+',height='+_h+',left=0,top=0,	toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); 
	 AdminWin.focus();	
	 void(0);
}

function openPopUp(url,name,_w,_h){
	var random_num = (Math.round((Math.random()*19)+1))
	var AdminWin=window.open(url,name+random_num,'width='+_w+',height='+_h+',left=0,top=0,	toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); 
	 AdminWin.focus();	
	 void(0);
}

function openStandardPopUp(url,name,_w,_h){
	var AdminWin=window.open(url,name,'width='+_w+',height='+_h+',left=0,top=0,	toolbar=No,location=No,scrollbars=Yes,status=No,resizable=No,fullscreen=No'); 
	 AdminWin.focus();	
	 void(0);
}

function voteWebSite(id){
	var f = confirm('Vote selected web site?');
	if(f==true){
		self.location = "showcase.php?action=vote&id="+id;
	}
}