function SvStar(obj) {
for(var i=0;i<5;i++)
if(FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i)) FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i).src="Custom/"+obj.cmp+"/star02.gif";
for(var i=0;i<eval(obj.Iid)+1;i++)
if(FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i)) FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i).src="Custom/"+obj.cmp+"/star01.gif";
}
function RsStar(obj) {
for(var i=0;i<5;i++)
if (FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i))FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i).src=FindObject("XStar"+obj.prd+"_"+obj.vta+"_"+i).df;
}
function VtStar(obj) {
LCP(false,'','_SysVote,'+obj.vta+obj.prd+obj.cmp+','+obj.Vote);
}
function _V1Script(Vote_CT,Vote_Total,Vote_Voted,Vote_Vote,prd,cmp,vta) {
var html="";
var overscript="";
if(!Vote_Voted) 
overscript=" style='cursor:hand;' onmouseover=SvStar(this) onmouseout=RsStar(this) onclick=VtStar(this) ";
for(var i=0;i<5;i++)
if(Vote_CT!=0 && Vote_CT>i*20)
html+="<img "+overscript+" Vote="+((i+1)*20)+" Iid="+i+" id=XStar"+prd+"_"+vta+"_"+i+" src='Custom/"+cmp+"/star01.gif' df='Custom/"+cmp+"/star01.gif' prd='"+prd+"' cmp='"+cmp+"' vta='"+vta+"'>";
else
html+="<img "+overscript+" Vote="+((i+1)*20)+" Iid="+i+" id=XStar"+prd+"_"+vta+"_"+i+" src='Custom/"+cmp+"/star02.gif' df='Custom/"+cmp+"/star02.gif' prd='"+prd+"' cmp='"+cmp+"' vta='"+vta+"'>";
document.write(html);

}


function LCPostBack(wnd,eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
	theform = wnd.document.Form1;
}
else {
	theform = wnd.document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}

//Background Content
var SetLoaded=false;
var LastFrames=new Array();

function LCP(tobj,eName,eArg) {
if(!tobj || tobj=="") tobj="OC";
SetOContent(FindObject("OLoading"),tobj);
if(LastFrames[tobj]) {
/*
if(LastFrames[tobj].__doPostBack) 
   LastFrames[tobj].__doPostBack(eName, eArg);
else
*/
   LastFrames[tobj].LCPostBack(LastFrames[tobj],eName, eArg);
}
else __doPostBack(eName, eArg);
}



function LC(url,frameID,tobj) {
	SetOContent(FindObject("OLoading"),tobj);
	if(!frameID || frameID=="") frameID=1;
	frameID="OCF"+frameID;
	if(FindObject(frameID)) 
		FindObject(frameID).src=url+"&ISSL=true&rnd="+new Date().toString();
	else if(window.parent.LC) window.parent.LC(url,frameID,tobj);
}


function SetParentContent(tobj) {
if(SetLoaded) return;
SetLoaded=true;
if(FindObject("ActiveContent") && window.parent.SetOContent)
	window.parent.SetOContent(FindObject("ActiveContent"),tobj,window);
}

function SetOContent(fobj,tobj,wElement,etObj,eaObj) {
if(!tobj || tobj=="") tobj="OC";
if(wElement)  {
LastFrames[tobj]=wElement;
}
var obj=FindObject(tobj);
if(obj.innerHTML) {
	if(document.body==fobj) return;
	obj.innerHTML=fobj.innerHTML;
                 var ls=document.getElementsByTagName("IMG");
	for(var i=0;i<ls.length;i++)	ls[i].src=ls[i].src;
}
else {
	for (var i=obj.childNodes.length-1;i>-1;i--) 
		obj.removeChild(obj.childNodes[i]);
	var nnode=fobj.cloneNode(true);
	obj.appendChild(nnode);
}
}


function KeyDownHandler(btn)
{
if (event.keyCode == 13)
{
event.returnValue=false;
event.cancel = true;
btn.click();
}
}


function kelimeAra()
{
 

var kelime= FindObject('kwrd').value.replace(/,/g,"||");

 
 
var url0="psearch,,"+kelime+",,,,";
//document.location.href="?_Args="+url0;
__doPostBack('',url0);
 
}

