// JavaScript Document

function Go(url,tar){
	document.location=url;
}
function sIMG(w,img){ //change bg Default
	w.src = img;
	document.body.style.cursor = "pointer";
}
function sBGI(w,img){ //change bg Default
	w.style.backgroundImage = 'url('+img+')';
	document.body.style.cursor = "pointer";
}
function sBG(w,colorID){ //change bg Default
	if ( colorID== 0 || colorID=="undefind") w.style.backgroundColor='#D6FFDD';  //default bg color
	else w.style.backgroundColor=colorID;
}
function rBG(w){ //change bg to null
//	w.style.backgroundColor='';
//	w.style.backgroundImage=''; 
	w.style.background='';
	document.body.style.cursor = 'default';
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function trim(a) {
	return a.replace(/^s*(S*(s+S+)*)s*$/, "$1");
}
function isEmail(a) {
   return (a.indexOf(".") > 0) && (a.indexOf("@") > 0);
}