// JavaScript Document
function validation(){

 if(document.frm_search.search_report.value=='') {
  alert ("Please enter the text");
  document.frm_search.search_report.focus();
  return false;
 }
}

var newWindow;
function open_other_image(url)
{
leftVal = (800 - screen.width) / 2;
topVal = (500 - screen.height) / 2;

newWindow = window.open(url, 'WinName', 'scrollbars=1,resizable=1,left='+leftVal+',top='+topVal);
newWindow.focus();
}

function btnBuy_onclick(xcode,xtitle, xformat, xprice)
{ 
	x = "http://www.rncos.com/buy.php?Code="+xcode+"&Title="+xtitle+"&Format="+xformat+"&Price="+xprice;
	window.parent.open(x, "_parent");
}

function download_onclick(xid,xreport)
{
	x = "http://www.rncos.com/samp.htm#Code="+xid+"&Title="+xreport;
	window.parent.open(x, "_parent");
}