function DoLogin()
{
	code=document.getElementById("code").value;
	usr=document.getElementById("username").value;
	pwd=document.getElementById("password").value;



var url = '/ValidarB2B.FerLogin?code=' + code + '&usr=' + usr +'&pwd=' + pwd;
ajaxCaller.getPlainText(url, function(json){
	var data = eval("(" + json + ")");

	if(data[0].status== 0)
	{
		location.href=data[0].url;
	}else{
		var obj=document.getElementById("err");
		obj.innerHTML="";
		obj.innerHTML='Login Incorrect';
	}
	;
	});
}

