var repro = {
	className : 'repro',
	author : 'inf',
	animSpeed : 500,
	url : 'ajax/reproducts.php',
	jqPopup : null,
	jqPreloader : null,
	debug : true,
	initObject : function()
	{
		chgCont();
	},
	aaaa:function()
	{
		alert('siski1');
	},
	chgCont : function ()
	{		
		var data,qwe,id;			
		//qwe = id;
		qwe = $('#prod_sel').val();
		data='qwe='+qwe;
			$.ajax({
				url : repro.url,
				data : data,
				success : repro.showOk,
				error : repro.ajaxError
			});		
		return false;
	},	
	showOk : function(xml)
	{
		var errorcode = jQuery('errorcode',xml).text();
		if(errorcode == '0')
		{
			var cena = jQuery('cena',xml).text();
			var gid = jQuery('gid',xml).text();
			var pro_cont = jQuery('pro_cont',xml).text();
			$('#cena').html(cena);
			$('#pro_cont').html(pro_cont);
			$('#gid').val(gid);			
		} 
		else if(repro.debug)
		{
			var errormessage = jQuery('errormessage',xml).text();
			alert(errormessage);			
		}
	},
	ajaxError : function(xml,text,oError)
	{
		if(oError)
		{
			var str = oError.name + ':' + oError.message + ' in file:' + oError.fileName + ' in line:'+oError.lineNumber;
			alert(str);
		}
		else alert(text);
	}	
}


