function _gel(a){return document.getElementById(a)}
function trim(s){return s.replace(/^\s+/,'').replace(/\s+$/,'');}
function get_random(){var ranNum= Math.round(Math.random()*98929);return ranNum;}
function ColorInput(Obj,CellColor){Obj.style.backgroundColor=CellColor}
function isEmail(string){if(string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) return true; else return false;}
function doClear(tx){if(tx.value==tx.defaultValue)tx.value=""}
function donothing(){}
function outFlash(str){document.write(str);}

function vs(f){
	//return false
	var ftxt=trim(f.elements['q'].value)
	if (ftxt.length < 2) {
		ColorInput(f.elements['q'],'#E7EBE5')
	    document.frms.q.focus();		
		alert('Please supply search trem');
		return false
	}
	ColorInput(f.elements['q'],'#FFFFFF')
	document.forms.frms.submit()
	return true
	
}

function vs1(f){
	var aidI = f.elements['aid'].selectedIndex
	if(aidI==0){
		alert('Choose artist');
	    document.frms.aid.focus();
		return false		
	}
	return true
}

var mxxz = ''
function xma(iid,p){
	return
	var d=_gel(iid+'')
	if(!d)return
	d.style.color='#000000'
	d.style.fontWeight='bold'
	d.style.backgroundColor = '#ffffff';
}
