function HTML(text)
{
 text = text.replace(/&/g, "&amp;") ;
 text = text.replace(/"/g, "&quot;") ;
 text = text.replace(/</g, "&lt;") ;
 text = text.replace(/>/g, "&gt;") ;
 text = text.replace(/'/g, "&#146;") ;
 return text ;
}
function ReHTML(text)
{
 text = text.replace(/&amp;/g, "&") ;
 text = text.replace(/&quot;/g, '"') ;
 text = text.replace(/&lt;/g, "<") ;
 text = text.replace(/&gt;/g, ">") ;
 text = text.replace(/&#146;/g, "'") ;
 return text ;
}

///////////////////////////////////////
function StrReplace(titleTemp,findStr,ReplaceStr)
{


while (titleTemp.search(findStr)>0)//
{

titleTemp=titleTemp.replace(findStr,ReplaceStr);


}
return titleTemp;

}

var keyword=document.all.nowPos.innerText;
var TitleStr=document.all.newsTitle.innerText;
var a =keyword.split(">>")

keyword=a[a.length-1]

TitleStr=StrReplace(TitleStr,"'","")
TitleStr=StrReplace(TitleStr,"\"","")
document.write ("<iframe width='144'  height='490' scrolling='NO' frameborder='0' src='http://syd.openv.tv/suggesttv_h.php?text=" + TitleStr + "&category=" +  keyword + "'></iframe>")

