  function   high(which){   
  theobject=which ; 
   
  highlighting=setInterval("highlightit(theobject)",50);   
  }   
  function   low(which){   
   theobject=which ; 
   
  lowlighting=setInterval("lowlightit(theobject)",50);   
  } 
  function lowlightit(cur){
   if   (cur.filters.alpha.opacity>10)   
  cur.filters.alpha.opacity-=10   
  else   if   (window.lowlighting)   
  clearInterval(lowlighting)   
  }  
  function   highlightit(cur){   
  if   (cur.filters.alpha.opacity<100)   
  cur.filters.alpha.opacity+=10   
  else   if   (window.highlighting)   
  clearInterval(highlighting)   
  }   

function CheckStr(str){
	bool=true;
if ((str.indexOf("'")!=-1)||(str.indexOf("<")!=-1)||(str.indexOf("=")!=-1)||(str.indexOf(">")!=-1)||(str.indexOf("or")!=-1)||(str.indexOf("and")!=-1)||str==""){
bool=false;
}
return bool;
}

function setMyPicNew(y,x){
  for (i=1;i<6;i++){
	  if (i>y){
			
	document.getElementById("Pictd"+i).style.display="none";
	}else{
	  var obj=document.getElementById("pic"+i);
	  var objPic= document.getElementById("newsPic"+i);
	  var objText= document.getElementById("newstitle"+i);
		if (x==i){
			
	     obj.className="PICNUM1";
		objPic.style.display="";
		objText.style.display="";
		}else{
		obj.className="PICNUM";
		objPic.style.display="none";
		objText.style.display="none";
		}
	}
	}
}

