﻿// JScript 文件
function $t(id){
return document.getElementById(id)
}

function getSelectValue(obj)
{
var oi = obj.options[obj.selectedIndex].value;
//alert(oi);
var url ="Ajax_getRightProduct.aspx?productId="+oi;     
     $.get(url,function(data){

		data = eval('('+data+')');
	
		var opt = $t('rightSelect').options;
		opt.length = 0;
		for(var i=0, j=data.length-1; i<j; i++){
			opt.add(new Option(data[i].n, data[i].v));
		}
      })      
}

function getRightValue(obj)
{
var text1 = obj.options[obj.selectedIndex].value;
$t('txtRightList').value=text1;    
}


function finds()
{
var rlist=$t("txtRightList").value; 
if (rlist=="") {
alert("产品名称不能为空，请选择您要查找的产品！");
return;
}
window.location.href='self_download.aspx?type='+rlist;

}







